@font-face {
    font-family: Futura;
    src: url("../fonts/Futura.otf") format("opentype");
}

body.main {
    text-align: center;
    margin: 0px;
    padding: 0px;
    font-family: Futura, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    background-color: rgb(255, 255, 255);
    /*background-image: url('../img/house.jpg');
    background-repeat: no-repeat;
    background-position: right 25% top 250px;
    background-attachment: fixed;*//
}

div.main_border {
    width: 920px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

div.main_border_gr1 {
    width: 922px;
    padding-top: 0px;
    padding-bottom: 1px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

div.main_border_gr2 {
    width: 924px;
    padding-top: 0px;
    padding-bottom: 1px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

div.main_border_gr3 {
    width: 926px;
    padding-top: 0px;
    padding-bottom: 1px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

div.main {
    width: 900px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

div.main_header {
    line-height: 1.4;
    text-align: center;
}

h.main_header {
    font-family: 'Futura';
    letter-spacing: 0.4em;
    font-weight: 500;
    font-style: normal;
    font-size: 48px;
}

h.main_header_and {
    font-family: 'Futura';
    letter-spacing: 0.4em;
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
}

div.bottomnav_line {
    height: 25px;
    background-repeat: repeat-x;
    background: linear-gradient(to bottom, rgba(135, 180, 200, 0.3), rgba(80, 130, 210, 0.3));
}

div.topnav {
    text-align: right;
    letter-spacing: 0.4em;
    font-weight: 500;
    font-style: normal;
    word-spacing: 12px;
    position: relative;
    z-index: 100;
}

div.bottomnav {
    height: 27px;
    font-size: 12px;
}

div.header {
    min-height: 25px;
    background-repeat: repeat-x;
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 4px 8px;
    margin-bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(160, 190, 220, 0.5), rgba(135, 180, 200, 0.4));
    border-bottom: 1px solid rgba(80, 130, 210, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
}

div.body {
    width: 884px;
    text-align: left;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    box-sizing: border-box;
}

div.toolbody {
    width: 172px;
    background-repeat: repeat-x;
    padding: 8px;
    background: rgba(135, 180, 200, 0.2);
    border: 1px solid rgba(80, 130, 210, 0.3);
}

div.coll {
    height: 25px;
    text-align: left;
    float: left;
}

div.colr {
    height: 25px;
    text-align: right;
    float: right;
}

div.bar {
    width: 188px;
    text-align: left;
}

div.barcol {
    float: left;
    width: 122px;
}

div.barcolannot {
    float: right;
    width: 50px;
    font-size: 12px;
}

div.barmain {
    width: 900px;
    float: right;
}

div.barmaincol1 {
    width: 50px;
    float: left;
    padding: 8px;
}

div.barmaincol2 {
    width: 300px;
    float: left;
    padding: 8px;
}

div.barmaincoln {
    float: left;
    padding: 8px;
}

div.barmain4col {
    width: 171px;
    float: left;
}

div.barmain6col {
    width: 114px;
    float: left;
}

div.barmain6colspan5 {
    width: 570px;
    float: left;
}

div.barmainTVcol1 {
    width: 400px;
    float: left;
}

div.barmainTVcol2 {
    width: 20px;
    float: left;
}

div.barmainTVcol3 {
    width: 264px;
    float: left;
}

div.barmainctrcol {
    width: 500px;
    float: left;
}

div.barmainctrcolout {
    width: 150px;
    float: left;
}

div.barmaincol {
    width: 684px;
}

div.btw {
    clear: both;
}

div.err_msg {
    font-size: 12px;
    color: rgb(255, 0, 0);
    border-style: dotted;
    border-width: 1px;
    padding: 8px;
}

input.number {
    width: 300px;
}

input.file {
    width: 300px;
}

input.text {
    width: 300px;
    background-color: rgb(135, 180, 200);
    color: rgb(50, 50, 50);
    border: 1px solid rgb(80, 130, 210);
    padding: 4px;
}

input.button {
    width: 150px;
    background-color: rgb(100, 150, 180);
    color: rgb(30, 30, 30) !important;
    border: 1px solid rgb(80, 130, 210);
    padding: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: Futura, sans-serif;
}

input.tooltext {
    background-color: rgb(135, 180, 200);
    color: rgb(50, 50, 50);
    border: 1px solid rgb(80, 130, 210);
    padding: 4px;
}

img.image4 {
    width: 171px;
}

img.splash {
    display: block;
    margin: 0 auto;
    border: 0;
    width: 70%;
    height: auto;
}

select.text {
    width: 300px;
    margin-top: 1px;
    background-color: rgb(135, 180, 200);
    color: rgb(50, 50, 50);
    border: 1px solid rgb(80, 130, 210);
    padding: 4px;
}

textarea {
    width: 300px;
    background-color: rgb(255, 255, 255);
    color: rgb(50, 50, 50);
    border: 1px solid rgb(80, 130, 210);
    padding: 4px;
    font-family: Futura, sans-serif;
}

p.german, ol.german {
    color: grey;
}

a:link {
    color: rgb(100, 150, 180);
    text-decoration: none;
}

a:visited {
    color: rgb(100, 150, 180);
    text-decoration: none;
}

a:active {
    text-decoration: underline;
}

a:hover {
    color: rgb(60, 120, 180);
}

a {
    color: rgb(100, 150, 180);
    text-decoration: none;
}

/* Buttons manage their own text color per-variant; just kill link decoration */
a.btn, a.btn:link, a.btn:visited, a.btn:active, a.btn:hover,
button.btn {
    text-decoration: none;
}

a.topnava:link {
    color: rgb(150, 150, 150);
    font-family: 'Futura';
    font-size: 14px;
    text-decoration: none;
}

a.topnava:visited {
    color: rgb(150, 150, 150);
}

a.topnava:active {
    text-decoration: underline;
}

a.topnava:hover {
    color: rgb(135, 180, 200);
}

a.topnava {
    color: rgb(150, 150, 150);
    font-family: 'Futura';
    font-size: 14px;
    text-decoration: none;
    word-spacing: normal;
    position: relative;
    /* A two-word link wraps onto two lines in the bar's fixed height otherwise. */
    white-space: nowrap;
}

/* Beautiful dot separator between topnav links - only show if there are multiple links */
/* Use ::before on the second+ link to show dot before it (only appears when there's a preceding link) */
.topnav-links-container > a.topnava + a.topnava::before {
    content: '•';
    color: rgba(100, 150, 180, 0.6);
    margin-right: 0.9rem;
    margin-left: -0.45rem;
    font-size: 18px;
    font-weight: 300;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
    opacity: 0.7;
}

/* Top Navigation Links Container */
.topnav-links-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    background: rgba(230, 230, 230, 0.9);
    /* The right side leaves room for the round menu button that sits over the bar. */
    padding: 0.375rem 4.5rem 0.375rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    height: 24px; /* Half of the 48px circle diameter */
    width: 100%;
    position: relative;
    word-spacing: normal;
}

/* Hide desktop-only links on mobile */
@media (max-width: 768px) {
    .topnav-desktop-only {
        display: none !important;
    }
}

/* Show desktop-only links on larger screens */
@media (min-width: 769px) {
    .topnav-desktop-only {
        display: inline;
    }
}


/* User Status Indicator */
.user-status-container {
    position: absolute;
    right: 1rem;
    z-index: 1000;
    flex-shrink: 0;
}

.user-status-indicator {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(230, 230, 230, 0.9);
    background-color: #ffc107; /* Yellow for logged out */
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.user-status-indicator.logged-in {
    background-color: #28a745; /* Green for logged in */
}

.user-status-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-status-indicator svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    /* Fixed width: every menu label fits well inside it, and the account name
       in the header wraps rather than widening the box. */
    min-width: 240px;
    max-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(80, 130, 210, 0.2);
    overflow: hidden;
    word-spacing: normal;
}

.user-status-container.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1rem;
    background: linear-gradient(135deg, rgb(80, 130, 210) 0%, rgb(100, 150, 180) 100%);
    color: white;
}

.user-dropdown-header .user-name {
    font-weight: bold;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.user-dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}

.user-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: rgb(50, 50, 50);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: Futura, sans-serif;
    word-spacing: normal;
}

.user-dropdown-item:hover {
    background-color: rgb(240, 245, 250);
    color: rgb(80, 130, 210);
    padding-left: 1.25rem;
}

.user-dropdown-item.user-dropdown-logout {
    color: #dc3545;
    font-weight: 500;
}

.user-dropdown-item.user-dropdown-logout:hover {
    background-color: #fee;
    color: #c00;
}

/* Additional styles for rental site */
.container {
    text-align: center;
    margin: 0 auto;
    max-width: 1200px;
}

.page-header {
    margin-bottom: 20px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Futura';
    letter-spacing: 0.2em;
    font-weight: 500;
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 14px;
    color: rgb(100, 100, 100);
}

.form-container {
    width: 500px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border: 1px solid rgb(80, 130, 210);
    box-sizing: border-box;
}

.guest-hero {
    max-width: 820px;
    margin: 3rem auto 2.5rem auto;
    padding: 2.75rem 1.75rem 2.25rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(80, 130, 210, 0.07), rgba(135, 180, 200, 0.03));
    border: 1px solid rgba(80, 130, 210, 0.18);
    border-radius: 16px;
}

.guest-hero-eyebrow {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.9rem;
    background: rgba(80, 130, 210, 0.12);
    color: rgb(60, 110, 190);
    border-radius: 999px;
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guest-hero-title {
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(26px, 4.4vw, 40px);
    line-height: 1.22;
    font-weight: 500;
    letter-spacing: 0.005em;
    color: rgb(40, 45, 55);
    max-width: 700px;
    margin: 0 auto 1.25rem auto;
}

.guest-hero-accent {
    color: rgb(80, 130, 210);
    font-weight: 600;
    white-space: nowrap;
}

.guest-hero-mission {
    font-size: clamp(16px, 2.4vw, 20px);
    line-height: 1.55;
    color: rgb(60, 70, 85);
    max-width: 640px;
    margin: 0 auto 1rem auto;
}

.guest-hero-subtitle {
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.7;
    color: rgb(105, 110, 120);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.guest-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Where Zillow ends and Vinren begins, just under the hero */
.guest-complement {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto 2.5rem auto;
    padding: 0 0.5rem;
    text-align: left;
}

.guest-complement-col {
    border-left: 3px solid rgba(80, 130, 210, 0.35);
    padding: 0.25rem 0 0.25rem 1rem;
}

.guest-complement-col h3 {
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: rgb(45, 50, 60);
    margin: 0 0 0.35rem 0;
}

.guest-complement-col p {
    font-size: 14px;
    line-height: 1.6;
    color: rgb(110, 115, 125);
    margin: 0;
}

/* What the AI does with Vinren Pro, between the Zillow split and the lifecycle */
.guest-ai {
    max-width: 960px;
    margin: 0 auto 2.75rem auto;
    padding: 1.75rem 1.5rem;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(135deg, #f3f7ff 0%, #f6f1ff 100%);
    border: 1px solid rgba(124, 77, 255, 0.18);
    border-radius: 16px;
}

.guest-ai-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.85rem;
    background: rgba(124, 77, 255, 0.1);
    color: #6a3de8;
    border-radius: 999px;
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guest-ai-title {
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(22px, 3.2vw, 28px);
    font-weight: 500;
    color: rgb(40, 45, 55);
    margin: 0 0 1.25rem 0;
}

.guest-ai-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    text-align: left;
}

.guest-ai-col {
    border-left: 3px solid rgba(124, 77, 255, 0.35);
    padding: 0.25rem 0 0.25rem 1rem;
}

.guest-ai-col h3 {
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: rgb(45, 50, 60);
    margin: 0 0 0.35rem 0;
}

.guest-ai-col p {
    font-size: 14px;
    line-height: 1.6;
    color: rgb(90, 95, 110);
    margin: 0;
}

/* The management lifecycle in order, between the hero and the feature cards */
.guest-flow {
    max-width: 960px;
    margin: 0 auto 2.75rem auto;
    padding: 0 0.5rem;
}

.guest-flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1.2rem 1.6rem;
}

.guest-flow-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.guest-flow-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(80, 130, 210, 0.12);
    color: rgb(60, 110, 190);
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.guest-flow-step h4 {
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgb(45, 50, 60);
    margin: 0.2rem 0 0.3rem 0;
}

.guest-flow-step p {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgb(110, 115, 125);
    margin: 0;
}

/* Feature cards beneath the hero */
.guest-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto 2.5rem auto;
    padding: 0 0.5rem;
}

.guest-feature {
    background: #fff;
    border: 1px solid rgba(80, 130, 210, 0.18);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guest-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(80, 130, 210, 0.45);
    box-shadow: 0 8px 24px rgba(80, 130, 210, 0.12);
}

.guest-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(80, 130, 210, 0.1);
    color: rgb(80, 130, 210);
    margin-bottom: 1rem;
}

.guest-feature-title {
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: rgb(45, 50, 60);
    margin: 0 0 0.5rem 0;
}

.guest-feature-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgb(110, 115, 125);
    margin: 0;
}

@media (max-width: 760px) {
    .guest-features {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .guest-flow-steps {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
    }

    .guest-complement {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .guest-ai-cols {
        grid-template-columns: 1fr;
    }

    .guest-hero-accent {
        white-space: normal;
    }
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgb(50, 50, 50);
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* Unified button system: rounded, always-bordered, lights up on hover */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 1.15rem;
    background-color: #fff;
    color: rgb(70, 110, 175) !important;
    border: 1.5px solid rgba(80, 130, 210, 0.45);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    text-decoration: none;
    font-family: Futura, sans-serif;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    background-color: rgba(80, 130, 210, 0.08);
    border-color: rgb(80, 130, 210);
    color: rgb(60, 110, 190) !important;
    box-shadow: 0 2px 10px rgba(80, 130, 210, 0.18);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(80, 130, 210, 0.18);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(80, 130, 210, 0.25);
}

/* Primary: solid filled call-to-action */
.btn-primary {
    background-color: rgb(80, 130, 210);
    border-color: rgb(80, 130, 210);
    color: #fff !important;
}

.btn-primary:hover {
    background-color: rgb(95, 148, 228);
    border-color: rgb(95, 148, 228);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(80, 130, 210, 0.35);
}

/* Secondary: neutral outline (replaces the dull gray box) */
.btn-secondary {
    background-color: #fff;
    border-color: rgba(80, 130, 210, 0.45);
    color: rgb(70, 110, 175) !important;
}

.btn-secondary:hover {
    background-color: rgba(80, 130, 210, 0.1);
    border-color: rgb(80, 130, 210);
    color: rgb(60, 110, 190) !important;
}

/* Success: green outline */
.btn-success {
    background-color: rgba(56, 168, 108, 0.12);
    border-color: rgba(56, 168, 108, 0.55);
    color: rgb(34, 120, 76) !important;
}

.btn-success:hover {
    background-color: rgba(56, 168, 108, 0.2);
    border-color: rgb(50, 160, 100);
    color: rgb(28, 105, 66) !important;
    box-shadow: 0 2px 10px rgba(56, 168, 108, 0.22);
}

/* Danger: red outline */
.btn-danger {
    background-color: rgba(216, 72, 72, 0.1);
    border-color: rgba(216, 72, 72, 0.5);
    color: rgb(188, 54, 54) !important;
}

.btn-danger:hover {
    background-color: rgba(216, 72, 72, 0.18);
    border-color: rgb(208, 64, 64);
    color: rgb(168, 44, 44) !important;
    box-shadow: 0 2px 10px rgba(216, 72, 72, 0.22);
}

/* Warning: amber outline */
.btn-warning {
    background-color: rgba(228, 158, 40, 0.14);
    border-color: rgba(228, 158, 40, 0.55);
    color: rgb(166, 108, 12) !important;
}

.btn-warning:hover {
    background-color: rgba(228, 158, 40, 0.24);
    border-color: rgb(222, 152, 34);
    color: rgb(146, 92, 6) !important;
    box-shadow: 0 2px 10px rgba(228, 158, 40, 0.25);
}

.btn-sm {
    padding: 0.28rem 0.75rem;
    font-size: 0.8rem;
}

/* Brief, elegant auto-save toast (appears only when something is saved) */
.save-toast {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%) translateY(0.75rem);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.1rem 0.6rem 0.7rem;
    background: #fff;
    border: 1px solid rgba(80, 130, 210, 0.2);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(40, 70, 120, 0.18);
    font-family: Futura, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgb(50, 50, 50);
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2000;
}

.save-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.save-toast__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: rgb(46, 150, 95);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex: none;
}

.save-toast[data-state="error"] .save-toast__icon {
    background: rgb(208, 64, 64);
}

.btn-block {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

/* Lightweight back navigation link (replaces bulky secondary buttons) */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: auto;
    max-width: max-content;
    padding: 0.4rem 0.85rem 0.4rem 0.7rem;
    font-family: Futura, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    color: rgb(80, 130, 210) !important;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.back-link::before {
    content: "\2190";
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
    background-color: rgba(80, 130, 210, 0.1);
    border-color: rgba(80, 130, 210, 0.25);
    color: rgb(60, 110, 190) !important;
}

.back-link:hover::before {
    transform: translateX(-3px);
}

.back-link:focus-visible {
    outline: none;
}

.alert {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid;
    font-size: 14px;
}

.alert-success {
    background-color: rgba(200, 242, 200, 0.8);
    color: rgb(0, 100, 0);
    border-color: rgb(150, 200, 150);
}

/* Red, unlike the blue of informational alerts: an error has to read as one at
   a glance, since it usually explains why an action did not happen. */
.alert-error {
    background-color: rgba(250, 216, 216, 0.8);
    color: rgb(150, 40, 40);
    border-color: rgb(216, 72, 72);
}

.alert-info {
    background-color: rgba(200, 220, 242, 0.8);
    color: rgb(0, 50, 100);
    border-color: rgb(150, 180, 200);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
    justify-content: center;
}

.property-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgb(80, 130, 210);
    padding: 15px;
    margin-bottom: 15px;
}

.property-card-header {
    background: rgba(135, 180, 200, 0.3);
    padding: 10px;
    margin: -15px -15px 15px -15px;
    border-bottom: 1px solid rgb(80, 130, 210);
}

.property-card-header h3 {
    font-family: 'Futura';
    letter-spacing: 0.1em;
    font-size: 20px;
    margin-bottom: 5px;
    color: rgb(50, 50, 50);
}

.property-card-body {
    padding: 0;
}

/* My Rentals — left-aligned cards (container defaults to centered text) */
.rentals-list {
    display: grid;
    gap: 1.5rem;
    text-align: left;
    min-width: 0;
    max-width: 100%;
}

.rental-card-scroll {
    max-width: 100%;
    min-width: 0;
}

.rental-card {
    padding: 1.5rem;
    text-align: left;
    box-sizing: border-box;
}

.rental-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.rental-card-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.rental-card-title {
    margin: 0 0 0.25rem 0;
    text-align: left;
}

.rental-card-address {
    color: #666;
    font-size: 0.9rem;
    text-align: left;
}

.rental-card-requests {
    margin-top: 1.25rem;
    text-align: left;
    min-width: 0;
    max-width: 100%;
}

.rental-card-requests-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #555;
    text-align: left;
}

.rental-card-empty {
    color: #999;
    margin: 0;
    text-align: left;
}

.rental-requests-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rental-requests-table table {
    width: 100%;
}

.property-price {
    font-size: 24px;
    font-weight: 500;
    color: rgb(135, 180, 200);
    margin: 10px 0;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
    font-size: 14px;
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgb(100, 100, 100);
}

.property-description {
    color: rgb(100, 100, 100);
    margin: 15px 0;
    line-height: 1.6;
    font-size: 14px;
}

.property-address {
    color: rgb(100, 100, 100);
    font-size: 12px;
}

.table-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgb(80, 130, 210);
    padding: 15px;
    margin-top: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: rgba(135, 180, 200, 0.3);
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgb(80, 130, 210);
}

th {
    font-weight: 500;
    color: rgb(50, 50, 50);
}

tbody tr:hover {
    background-color: rgba(135, 180, 200, 0.1);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending {
    background-color: rgba(220, 220, 242, 0.8);
    color: rgb(50, 50, 150);
}

.badge-approved {
    background-color: rgba(200, 242, 200, 0.8);
    color: rgb(0, 100, 0);
}

.badge-rejected {
    background-color: rgba(200, 200, 242, 0.8);
    color: rgb(50, 50, 150);
}

.status-available {
    background-color: rgba(200, 242, 200, 0.8);
    color: rgb(0, 100, 0);
}

.status-unavailable {
    background-color: rgba(200, 200, 242, 0.8);
    color: rgb(50, 50, 150);
}

/* Mobile: stop iOS Safari auto-zoom (layout overflow + undersized fields) */
@media (max-width: 1000px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body.main {
        overflow-x: hidden;
        max-width: 100vw;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="image"]),
    textarea,
    select,
    input.text,
    input.number,
    input.tooltext {
        max-width: 100%;
        box-sizing: border-box;
    }

    input.text,
    input.number,
    input.file,
    textarea {
        width: 100%;
    }
}

/* Mobile responsive */
@media (max-width: 1000px) {
    div.main_border,
    div.main_border_gr1,
    div.main_border_gr2,
    div.main_border_gr3 {
        width: 100%;
        max-width: 926px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }
    
    div.main {
        width: 100%;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    div.barmain {
        width: 100%;
        float: none;
        margin: 0 auto;
    }
    
    div.body {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 8px;
    }
    
    .form-container {
        width: 90%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        text-align: center;
    }
    
    .page-header h1 {
        text-align: center;
    }
    
    div.header {
        min-height: auto;
        padding: 8px 10px;
        font-size: 14px;
        line-height: 1.4;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .table-container,
    .rental-card-scroll,
    .calendar-scroll,
    .review-tabs-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* The card itself fits the viewport (no full-card horizontal scroll). */
    .rental-card-scroll .rental-card {
        min-width: 0;
    }

    /* Stack the header so the property link/address get full width and the
       New Maintenance Request button drops underneath instead of squashing. */
    .rental-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    /* Only inner detail tables (payment history, maintenance) scroll sideways
       within their own box, so their columns stay readable on small screens. */
    .rental-requests-table table {
        min-width: 28rem;
    }

    .property-form-card {
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #propertyForm .property-form-body {
        padding: 0.5rem;
    }

    #propertyForm .property-form-label {
        width: 4.25rem;
        min-width: 4.25rem;
        max-width: 4.25rem;
        white-space: normal;
        font-size: 0.75rem;
        padding: 0.2rem 0.35rem 0.2rem 0;
    }

    #propertyForm .property-form-thumbnail-grid {
        grid-template-columns: 4.25rem minmax(0, 1fr);
    }

    #propertyForm .property-form-actions {
        flex-direction: column;
    }

    #propertyForm #imagePreviewGrid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    #propertyForm #fileListContainer .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 0;
    }

    #propertyForm #cancelFilesBtn {
        margin-left: 0 !important;
    }
}

/* Property edit form (landlord) */
.property-form-card {
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

#propertyForm .property-form-body {
    padding: 1rem;
    text-align: left;
    box-sizing: border-box;
}

/* Two-column table: labels (col 1) | inputs (col 2) */
#propertyForm .property-form-table {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    table-layout: fixed;
    box-sizing: border-box;
}

#propertyForm .property-form-label {
    width: 5.5rem;
    max-width: 5.5rem;
    padding: 0.2rem 0.35rem 0.2rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(50, 50, 50);
    text-align: right;
    vertical-align: middle;
    white-space: normal;
    line-height: 1.2;
    box-sizing: border-box;
}

#propertyForm .property-form-label label {
    margin: 0;
    font-weight: inherit;
}

#propertyForm .property-form-cell {
    width: auto;
    vertical-align: middle;
    box-sizing: border-box;
}

#propertyForm .property-form-row--textarea .property-form-label {
    vertical-align: top;
    padding-top: 0.4rem;
}

#propertyForm .property-form-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.3;
    font-family: Futura, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: rgb(50, 50, 50);
    background: white;
    border: 1px solid rgb(80, 130, 210);
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
}

#propertyForm .property-form-input--title {
    font-size: 0.9375rem;
    font-weight: 600;
}

#propertyForm .property-form-input--textarea {
    min-height: 5.5rem;
    resize: vertical;
}

#propertyForm .property-form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    justify-self: start;
    cursor: pointer;
}

#propertyForm .property-form-span {
    margin: 1.5rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#propertyForm .property-form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#propertyForm .property-form-actions .btn {
    flex: 1 1 8rem;
    min-width: 0;
}

/* Remove modern styles that don't fit - removed empty ruleset */

.user-info {
    color: rgb(100, 100, 100);
    font-size: 12px;
}

.mobile-menu-toggle {
    display: none;
}

.main-nav {
    display: block;
}

.main-nav a {
    color: rgb(150, 150, 150);
    font-family: 'Futura';
    font-size: 14px;
    text-decoration: none;
    margin: 0 10px;
}

.main-nav a:hover {
    color: rgb(135, 180, 200);
}

.logo a {
    font-family: 'Futura';
    letter-spacing: 0.3em;
    font-size: 24px;
    color: rgb(60, 120, 180);
    text-decoration: none;
}

.logo a:hover {
    color: rgb(50, 100, 160);
}

/* Stored images are served as <picture>: a WebP source with the uploaded master
   as the fallback. The wrapper generates no box of its own, so the <img> stays
   the grid/flex child it was and every existing layout rule keeps applying. */
picture {
    display: contents;
}

/* Image gallery and lightbox styles */
.image-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lightbox {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

#lightbox-image {
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Professional Select Dropdown Styling */
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 15px;
    font-family: Futura, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: rgb(50, 50, 50);
    background-color: white;
    border: 2px solid rgba(80, 130, 210, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23505050' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group select:hover {
    border-color: rgba(80, 130, 210, 0.6);
    box-shadow: 0 2px 8px rgba(80, 130, 210, 0.15);
}

.form-group select:focus {
    outline: none;
    border-color: rgb(80, 130, 210);
    box-shadow: 0 0 0 3px rgba(80, 130, 210, 0.1), 0 2px 8px rgba(80, 130, 210, 0.2);
    background-color: white;
}

.form-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group select option {
    padding: 0.75rem 1rem;
    background-color: white;
    color: rgb(50, 50, 50);
}

.form-group select option:hover {
    background-color: rgba(80, 130, 210, 0.1);
}

.form-group select option:checked {
    background-color: rgba(80, 130, 210, 0.15);
    color: rgb(80, 130, 210);
    font-weight: 500;
}

.form-group input[type="datetime-local"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 15px;
    font-family: Futura, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: rgb(50, 50, 50);
    background-color: white;
    border: 2px solid rgba(80, 130, 210, 0.3);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* A password field with a show/hide eye button inside its right edge. */
.password-field { position: relative; }
.form-group .password-field input { padding-right: 2.9rem; }
.password-toggle {
    position: absolute; right: 0.45rem; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    padding: 0.35rem; background: none; border: none; border-radius: 6px;
    color: #7a8699; cursor: pointer;
}
.password-toggle:hover { color: rgb(80, 130, 210); background: rgba(80, 130, 210, 0.08); }
.password-toggle:focus-visible { outline: 2px solid rgb(80, 130, 210); outline-offset: 1px; }
.password-toggle-hide { display: none; }
.password-toggle.is-showing .password-toggle-show { display: none; }
.password-toggle.is-showing .password-toggle-hide { display: block; }

.form-group input[type="datetime-local"]:hover,
.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group input[type="number"]:hover,
.form-group input[type="date"]:hover,
.form-group input[type="tel"]:hover,
.form-group input[type="password"]:hover {
    border-color: rgba(80, 130, 210, 0.6);
    box-shadow: 0 2px 8px rgba(80, 130, 210, 0.15);
}

.form-group input[type="datetime-local"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: rgb(80, 130, 210);
    box-shadow: 0 0 0 3px rgba(80, 130, 210, 0.1), 0 2px 8px rgba(80, 130, 210, 0.2);
}

/* Native date/time controls (notably on iOS Safari) size to their intrinsic
   content and ignore width:100%, so they overflow narrow/flex containers.
   Normalize their appearance and allow them to shrink to fit like text
   inputs (First/Last Name), keeping them within the box on mobile. */
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="time"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 0;
    max-width: 100%;
}

.schedule-visit-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.schedule-visit-form .form-group {
    margin-bottom: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.schedule-visit-field--contractor {
    flex: 1 1 12rem;
    min-width: 0;
    max-width: 100%;
}

.schedule-visit-field--datetime {
    flex: 0 1 240px;
    min-width: 240px;
}

.schedule-visit-submit {
    flex: 0 0 auto;
    padding-bottom: 2px;
}

.schedule-visit-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    flex: 1 1 0;
    align-items: end;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.schedule-visit-field--time {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Landlord/manager: Review Renter Requests tabs */
.review-tabs-scroll {
    margin-bottom: 1.5rem;
    max-width: 100%;
    min-width: 0;
}

.review-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    width: max-content;
    min-width: 100%;
}

.review-tab {
    padding: 0.75rem 1.5rem;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 4px 4px 0 0;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

.review-tab--active {
    background: #e8f0fc;
    color: rgb(35, 65, 120);
    font-weight: 600;
    box-shadow: inset 0 -3px 0 rgb(80, 130, 210);
}

/* Tax section tab bar: six steps that never need scrolling. One row on wide
   screens, an even 3 x 2 grid below 860px, compact with corner badges on phones.
   Wrapping stays on as a safety net for unusual widths. */
.tax-tabs-scroll,
.review-tabs-scroll.tax-tabs-scroll {
    overflow-x: visible;
}

.tax-tabs {
    flex-wrap: wrap;
    width: auto;
    min-width: 0;
    row-gap: 0.5rem;
}

.tax-tabs .review-tab {
    padding: 0.65rem 1rem;
}

/* Below the width where one row fits, an even 3 x 2 grid instead of a ragged
   wrap (which would leave one tab alone on the second row). */
@media (max-width: 860px) {
    .tax-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .tax-tabs .review-tab {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        border-radius: 6px;
    }
}

@media (max-width: 600px) {
    .tax-tabs .review-tab {
        position: relative;
        padding: 0.6rem 0.25rem;
        font-size: 0.8rem;
        border-radius: 6px;
        white-space: nowrap;
    }

    .tax-tabs .tax-tab-step {
        min-width: 1.1rem;
        height: 1.1rem;
        line-height: 1.1rem;
        margin-right: 0.25rem;
        font-size: 0.68rem;
    }

    /* The check mark or count sits as a corner badge so it takes no width. */
    .tax-tabs .tax-tab-mark {
        position: absolute;
        top: 2px;
        right: 3px;
        margin-left: 0;
        font-size: 0.65rem;
        line-height: 1;
    }

    .tax-tabs .tax-tab-mark--count {
        min-width: 0.9rem;
        padding: 0.1rem 0.25rem;
    }
}

/* Tax section: step number and status mark inside a review tab */
.tax-tab-step {
    display: inline-block;
    min-width: 1.35rem;
    height: 1.35rem;
    line-height: 1.35rem;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: #dfe6f1;
    color: rgb(35, 65, 120);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.review-tab--active .tax-tab-step {
    background: rgb(80, 130, 210);
    color: #fff;
}

.tax-tab-mark {
    display: inline-block;
    margin-left: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.tax-tab-mark--done {
    color: #2e7d32;
}

.tax-tab-mark--count {
    min-width: 1.2rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #fdecea;
    color: #b3261e;
    text-align: center;
}

/* Calendar day picker (showings, maintenance availability) */
.calendar-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0.6rem;
    scroll-padding: 0.5rem 0.6rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.calendar-day-btn {
    min-width: 90px;
    padding: 1rem 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s;
    flex-shrink: 0;
    background: white;
    color: rgb(50, 50, 50);
    font-family: inherit;
    line-height: 1.2;
}

.calendar-day-btn.available {
    border-color: #4caf50;
    background: #e8f5e9;
    color: #2e7d32;
    cursor: pointer;
}

.calendar-day-btn.available:hover {
    border-color: rgb(80, 130, 210);
    box-shadow: 0 2px 8px rgba(80, 130, 210, 0.2);
}

.calendar-day-btn.available.selected {
    border-color: rgb(80, 130, 210);
    background: rgb(80, 130, 210);
    color: white;
    transform: scale(1.05);
}

.calendar-day-btn.unavailable {
    border-color: #ccc;
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.calendar-day-btn .calendar-day-short {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.calendar-day-btn .calendar-day-num {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.calendar-day-btn .calendar-day-month {
    font-size: 0.75rem;
}

.calendar-day-btn .calendar-day-today {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    color: rgb(80, 130, 210);
}

.calendar-day-btn.available.selected .calendar-day-today {
    color: rgba(255, 255, 255, 0.9);
}

.calendar-legend {
    color: #666;
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.calendar-legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.calendar-legend-swatch--available {
    background: #4caf50;
}

.calendar-legend-swatch--neutral {
    background: white;
    border: 1px solid #ddd;
}

.calendar-legend-swatch--selected {
    background: rgb(80, 130, 210);
    margin-left: 1rem;
}

.calendar-legend-swatch--selected-green {
    background: #4caf50;
    margin-left: 1rem;
}

/* Renter maintenance availability: neutral until selected, then green */
.renter-date-btn.available {
    border-color: #ddd;
    background: white;
    color: rgb(50, 50, 50);
}

.renter-date-btn.available:hover {
    border-color: rgba(80, 130, 210, 0.6);
    box-shadow: 0 2px 8px rgba(80, 130, 210, 0.15);
}

.renter-date-btn.available.selected {
    border-color: #4caf50;
    background: #e8f5e9;
    color: #2e7d32;
    transform: scale(1.05);
}

.renter-date-btn.available.selected .calendar-day-today {
    color: #2e7d32;
}

/* Read-only submitted days: no scale (avoids left-edge clipping in scroll row) */
.renter-submitted-day.selected {
    transform: none;
}

.form-group input[type="time"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 15px;
    font-family: Futura, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: rgb(50, 50, 50);
    background-color: white;
    border: 2px solid rgba(80, 130, 210, 0.3);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input[type="time"]:hover {
    border-color: rgba(80, 130, 210, 0.6);
    box-shadow: 0 2px 8px rgba(80, 130, 210, 0.15);
}

.form-group input[type="time"]:focus {
    outline: none;
    border-color: rgb(80, 130, 210);
    box-shadow: 0 0 0 3px rgba(80, 130, 210, 0.1), 0 2px 8px rgba(80, 130, 210, 0.2);
}

#staffScheduleForm,
.schedule-visit-card {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Wrapper holds the border; native time controls clip inside without losing the edge */
.schedule-time-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    border: 2px solid rgba(80, 130, 210, 0.3);
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.schedule-time-input:focus-within {
    border-color: rgb(80, 130, 210);
    box-shadow: 0 0 0 3px rgba(80, 130, 210, 0.1), 0 2px 8px rgba(80, 130, 210, 0.2);
}

.schedule-time-input:hover {
    border-color: rgba(80, 130, 210, 0.6);
    box-shadow: 0 2px 8px rgba(80, 130, 210, 0.15);
}

.schedule-visit-form .schedule-time-input input[type="time"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 15px;
    font-family: Futura, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: rgb(50, 50, 50);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.schedule-visit-form .schedule-time-input input[type="time"]:focus {
    outline: none;
    box-shadow: none;
}

/* Schedule visit form — mobile (must follow base rules) */
@media (max-width: 1000px) {
    .schedule-visit-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        align-items: stretch;
    }

    .schedule-visit-field--contractor {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    .schedule-visit-times {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
    }

    .schedule-visit-submit {
        flex: none;
        width: 100%;
        padding-bottom: 0;
        margin-top: 0;
    }
}

/* Account settings */
.settings-page {
    max-width: 560px;
    margin: 0 auto 2rem;
    text-align: left;
}

.settings-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(80, 130, 210, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(80, 130, 210, 0.08);
}

.settings-profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(80, 130, 210, 0.1), rgba(135, 180, 200, 0.08));
    border-bottom: 1px solid rgba(80, 130, 210, 0.15);
}

.settings-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgb(80, 130, 210);
    color: #fff;
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(80, 130, 210, 0.25);
}

.settings-profile-meta {
    min-width: 0;
}

.settings-profile-name {
    margin: 0 0 0.35rem 0;
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgb(40, 45, 55);
}

.settings-profile-username {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: rgb(100, 105, 115);
}

.settings-account-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(80, 130, 210, 0.14);
    color: rgb(60, 110, 190);
}

.settings-section {
    padding: 1.25rem 1.5rem;
}

.settings-section + .settings-section {
    border-top: 1px solid rgba(80, 130, 210, 0.12);
}

.settings-section-title {
    margin: 0 0 1rem 0;
    font-family: 'Futura', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(100, 105, 115);
}

.settings-detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.settings-detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(80, 130, 210, 0.08);
    font-size: 0.95rem;
}

.settings-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-detail-row:first-child {
    padding-top: 0;
}

.settings-detail-label {
    flex-shrink: 0;
    color: rgb(100, 105, 115);
    font-size: 0.88rem;
}

.settings-detail-value {
    margin: 0;
    text-align: right;
    color: rgb(40, 45, 55);
    word-break: break-word;
}

.settings-security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.settings-security-info strong {
    display: block;
    font-size: 0.95rem;
    color: rgb(40, 45, 55);
    margin-bottom: 0.2rem;
}

.settings-security-info span {
    font-size: 0.85rem;
    color: rgb(100, 105, 115);
}

.settings-password-panel {
    display: none;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(80, 130, 210, 0.12);
}

.settings-password-panel.is-open {
    display: block;
}

.settings-password-panel .form-group:last-of-type {
    margin-bottom: 1rem;
}

.settings-password-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.settings-password-actions .btn {
    flex: 1;
    min-width: 120px;
}

.settings-danger-section {
    background: rgba(211, 47, 47, 0.04);
}

.settings-danger-title {
    color: rgb(168, 44, 44);
}

.settings-danger-copy {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgb(100, 105, 115);
}

.settings-danger-panel {
    border-top-color: rgba(211, 47, 47, 0.15);
}

.settings-danger-btn {
    color: rgb(188, 54, 54) !important;
    border-color: rgba(188, 54, 54, 0.45) !important;
}

.settings-danger-btn:hover {
    background: rgba(211, 47, 47, 0.08) !important;
}

.property-deleted-badge {
    background: #9e9e9e !important;
    color: #fff !important;
    font-size: 0.72rem;
    vertical-align: middle;
}

.property-deleted-notice {
    margin: 0 0 1rem 0;
    padding: 0.85rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* "New request" property picker on the maintenance list. The panel hangs off the
   right edge of the button, which only has room while the button sits at the
   right of the page header. Once that header wraps the button to its own line at
   the left margin, a right-anchored panel would extend past the left edge of the
   screen, so below that width it becomes an ordinary block under the button. */
.mr-new-wrap {
    position: relative;
}

.mr-new-panel {
    position: absolute;
    right: 0;
    z-index: 30;
    min-width: 260px;
    margin-top: 0.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    text-align: left;
}

@media (max-width: 768px) {
    .mr-new-wrap {
        width: 100%;
    }

    .mr-new-panel {
        position: static;
        min-width: 0;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .settings-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .settings-detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .settings-detail-value {
        text-align: left;
    }

    .settings-security-row {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-security-row .btn {
        width: 100%;
    }
}
