*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── iOS Design Tokens ─────────────────────────────────── */
:root {
    /* System Colors */
    --ios-blue:     #007AFF;
    --ios-blue-dark:#0051D5;
    --ios-red:      #FF3B30;
    --ios-green:    #34C759;
    --ios-orange:   #FF9500;
    --ios-teal:     #32ADE6;

    /* Backgrounds */
    --bg:           #F2F2F7;
    --bg-card:      #FFFFFF;
    --bg-inset:     #F2F2F7;

    /* Labels */
    --label:        #000000;
    --label-2:      rgba(60,60,67,.6);
    --label-3:      rgba(60,60,67,.3);

    /* Separators */
    --sep:          rgba(60,60,67,.18);
    --sep-opaque:   #C6C6C8;

    /* Fills */
    --fill:         rgba(120,120,128,.2);
    --fill-2:       rgba(120,120,128,.16);

    /* Sidebar */
    --sidebar-bg:   #1C1C1E;
    --sidebar-text: rgba(255,255,255,.75);
    --sidebar-hi:   #FFFFFF;
    --sidebar-act:  rgba(255,255,255,.14);

    /* Legacy aliases so older template classes still work */
    --white:        #FFFFFF;
    --text:         #000000;
    --muted:        rgba(60,60,67,.55);
    --ocean:        #007AFF;
    --ocean-mid:    #007AFF;
    --ocean-light:  #E8F2FF;
    --coral:        #FF9500;
    --coral-light:  #FFF4E0;
    --sand:         #F2F2F7;
    --sand-mid:     #E5E5EA;
    --sand-border:  #C6C6C8;
    --seafoam:      #34C759;
    --drift:        rgba(60,60,67,.55);
}

body {
    font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
    background: var(--bg);
    color: var(--label);
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ────────────────────────────────────────────── */
.layout { display: flex; height: 100vh; overflow: hidden; }

/* ── iOS-style dark sidebar ────────────────────────────── */
.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 0;
    /* Blurred glass */
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.sidebar .logo {
    padding: 1.25rem 1.25rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    padding: .5rem .75rem;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .625rem .875rem;
    border-radius: 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: .9375rem;
    transition: background .15s, color .15s;
}
.sidebar a:hover  { background: rgba(255,255,255,.07); color: #fff; }
.sidebar a.active { background: var(--sidebar-act);    color: #fff; font-weight: 600; }

.logout {
    margin: .75rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,.14);
    color: var(--sidebar-text);
    padding: .625rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: .875rem;
    text-align: left;
    transition: background .15s, color .15s;
}
.logout:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ── Main content area ─────────────────────────────────── */
.main-content { flex: 1; padding: 1.75rem 2rem; overflow-y: auto; }

.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.page-header h1 {
    flex: 1;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--label);
    letter-spacing: -.025em;
}
.back-link {
    color: var(--ios-blue);
    text-decoration: none;
    font-size: .9375rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.back-link::before { content: "‹"; font-size: 1.25rem; line-height: 1; }
.back-link:hover { opacity: .75; }

/* ── Auth ──────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
    padding: 1.5rem;
}
.auth-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,.35);
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* Blue header band */
.auth-card::before {
    content: "Book A Friend";
    display: block;
    background: var(--ios-blue);
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
    padding: 2rem 1.5rem 1.25rem;
    letter-spacing: .01em;
}
.auth-card h1 { display: none; } /* label baked into ::before */
.auth-card h2 {
    font-size: .9375rem;
    color: var(--label-2);
    text-align: center;
    padding: 1.25rem 1.5rem .5rem;
    font-weight: 500;
}
.auth-card form { padding: .5rem 1.5rem 1.5rem; }
.auth-card .error { margin: 0 1.5rem .5rem; }
.register-link {
    text-align: center;
    font-size: .875rem;
    color: var(--muted);
    padding: 0 1.5rem 1.5rem;
}
.register-link a { color: var(--ios-blue); text-decoration: none; }
.register-link a:hover { text-decoration: underline; }

/* ── Forms ─────────────────────────────────────────────── */
form { display: flex; flex-direction: column; gap: .875rem; }

label {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--label-2);
    text-transform: uppercase;
    letter-spacing: .03em;
}

input, select, textarea {
    padding: .6875rem .875rem;
    border: 1.5px solid var(--sep-opaque);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--label);
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 3px rgba(0,122,255,.15);
}
textarea { resize: vertical; min-height: 80px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
    background: var(--ios-blue);
    color: #fff;
    border: none;
    padding: .6875rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 600;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s, transform .1s;
}
.btn-primary:hover  { opacity: .9; }
.btn-primary:active { transform: scale(.97); }

/* Full-width button variant (auth forms only) */
.auth-card form button[type="submit"],
.auth-card form .btn-primary {
    width: 100%;
    border-radius: 12px;
    padding: .8125rem;
}
/* Plain submit button in auth (no class) */
.auth-card button[type="submit"] {
    background: var(--ios-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .8125rem;
    width: 100%;
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 600;
    font-family: inherit;
}

.btn-secondary {
    background: var(--fill-2);
    color: var(--ios-blue);
    border: none;
    padding: .6875rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 500;
    font-family: inherit;
    transition: opacity .15s;
}
.btn-secondary:hover { opacity: .8; }

.btn-success {
    background: var(--ios-green);
    color: #fff;
    border: none;
    padding: .6875rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 600;
    font-family: inherit;
}
.btn-success:hover { opacity: .9; }

.btn-danger {
    background: var(--ios-red);
    color: #fff;
    border: none;
    padding: .6875rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 600;
    font-family: inherit;
}
.btn-danger:hover { opacity: .9; }

.btn-sm { padding: .375rem .75rem; font-size: .8125rem; border-radius: 8px; }

/* ── Cards ─────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.card h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--label);
    margin-bottom: .875rem;
    letter-spacing: -.01em;
}

/* ── Properties grid ───────────────────────────────────── */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .875rem;
}
.property-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: box-shadow .18s, transform .18s;
    -webkit-tap-highlight-color: transparent;
}
.property-card:hover  { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.property-card:active { transform: scale(.98); }
.property-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; color: var(--label); }
.property-card p  { font-size: .8125rem; color: var(--label-2); }
.property-sections { display: flex; flex-direction: column; }

/* ── Property page tabs ─────────────────────────────────── */
.tab-bar {
    display: flex;
    border-bottom: 1px solid var(--sep);
    margin-bottom: 1rem;
}
.tab-btn {
    flex: 1;
    padding: .625rem .5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: .9375rem;
    font-family: inherit;
    color: var(--label-2);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.tab-btn.tab-active {
    color: var(--ios-blue);
    border-bottom-color: var(--ios-blue);
    font-weight: 600;
}
.tab-panel { display: flex; flex-direction: column; }
.empty { color: var(--label-3); font-size: .875rem; padding: .5rem 0; }

/* ── Calendar ──────────────────────────────────────────── */
.calendar { margin: .625rem 0; }

.cal-months-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.cal-month-block {
    background: var(--bg-card);
    border: 1px solid var(--sep-opaque);
    border-radius: 14px;
    padding: .75rem;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.calendar-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
    font-weight: 700;
    font-size: .8125rem;
    color: var(--label);
}
.calendar-nav {
    background: var(--fill-2);
    border: none;
    padding: .25rem .5rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: .875rem;
    color: var(--ios-blue);
    font-family: inherit;
}
.calendar-nav:hover { background: var(--fill); }

.calendar-day-label {
    text-align: center;
    font-size: .625rem;
    font-weight: 700;
    color: var(--label-2);
    padding: .2rem 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: .6875rem;
    border-radius: 50%;         /* iOS circles */
    border: none;
    cursor: pointer;
    transition: background .1s;
    -webkit-tap-highlight-color: transparent;
}
.calendar-day:hover:not(.cal-day-past) { background: var(--fill-2); }
.cal-day-priced { justify-content: center; }
.cal-day-num  { font-size: .8125rem; line-height: 1.2; }
.cal-day-price {
    font-size: .55rem;
    line-height: 1;
    color: rgba(0,0,0,.5);
    font-weight: 500;
    letter-spacing: .01em;
}
.cal-day-past {
    opacity: .28;
    cursor: default !important;
    pointer-events: none;
}
.calendar-day.selected {
    background: var(--ios-blue) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 50%;
    z-index: 1;
}
.calendar-day.selected:hover {
    background: var(--ios-blue-dark) !important;
}
.calendar-day.in-range {
    background: rgba(0,122,255,.15) !important;
    border-radius: 0;
    color: var(--label);
}
.calendar-hint { font-size: .8125rem; color: var(--label-2); margin-bottom: .5rem; }

/* ── Legend ────────────────────────────────────────────── */
.legend { display: flex; flex-wrap: wrap; gap: .625rem; margin-bottom: .75rem; font-size: .8rem; }
.legend-item { display: flex; align-items: center; gap: .3rem; color: var(--label-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-available   { background: #30D158; }
.dot-pending     { background: #FF9F0A; }
.dot-unavailable { background: #FF453A; }

/* ── Bookings ──────────────────────────────────────────── */
.booking-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 0;
    border-bottom: 1px solid var(--sep);
    flex-wrap: wrap;
}
.booking-row:last-child { border-bottom: none; }
.booking-dates { font-size: .9375rem; flex: 1; }

.badge {
    padding: .25rem .625rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}
.badge-request   { background: rgba(255,69,58,.15);   color: #FF453A; }
.badge-request.overdue { background: rgba(255,69,58,.3); }
.badge-pending   { background: rgba(255,159,10,.15);  color: #FF9F0A; }
.badge-pending.overdue { background: rgba(255,159,10,.35); }
.badge-booked    { background: rgba(48,209,88,.15);   color: #248A3D; }
.badge-booked.overdue  { background: rgba(255,69,58,.2); color: #FF453A; }
.badge-close     { background: rgba(255,149,0,.15);   color: #b45309; }
.badge-close.overdue   { background: rgba(255,149,0,.35); }
.badge-complete  { background: rgba(120,120,128,.12); color: var(--label-2); }
.badge-accepted  { background: rgba(48,209,88,.15);   color: #248A3D; }
.badge-declined  { background: rgba(255,69,58,.15);   color: #FF453A; }
.badge-cancelled { background: rgba(120,120,128,.12); color: var(--label-2); }
.action-buttons  { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; }

/* ── Platforms ─────────────────────────────────────────── */
.platform-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--sep);
}
.platform-row-expanded { align-items: flex-start; }
.platform-row:last-child { border-bottom: none; }
.platform-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: .3rem; }
.ical-url { font-size: .8125rem; color: var(--label-2); }
.ical-url code {
    background: var(--fill-2);
    padding: .15rem .375rem;
    border-radius: 5px;
    font-size: .75rem;
}
.ical-section-label {
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--label-2);
    margin-top: .5rem;
    margin-bottom: .25rem;
}
.ical-feed-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--fill-2);
    border-radius: 8px;
    padding: .375rem .625rem;
}
.ical-feed-url {
    flex: 1;
    font-size: .75rem;
    word-break: break-all;
    color: var(--label);
    font-family: ui-monospace, monospace;
}
.ical-hint {
    font-size: .75rem;
    color: var(--label-2);
    margin-top: .3rem;
    line-height: 1.4;
}
.platform-sync-meta { font-size: .75rem; color: var(--label-2); margin-top: .15rem; }
.platform-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    color: inherit;
    font-size: 1rem;
}
.platform-toggle:hover strong { color: var(--ios-blue); }
.platform-chevron {
    font-size: 1.1rem;
    color: var(--label-2);
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform .15s ease;
}
.platform-detail {
    margin-top: .625rem;
    padding-top: .5rem;
    border-top: 1px solid var(--sep);
}
.platform-desc {
    font-size: .875rem;
    color: var(--label);
    margin: 0 0 .75rem;
    white-space: pre-wrap;
    line-height: 1.5;
}
.badge-error {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 600;
    color: #fff;
    background: #ef4444;
    border-radius: 6px;
    padding: .1rem .4rem;
    cursor: help;
}

/* ── Date selection ────────────────────────────────────── */
.date-selection {
    background: rgba(0,122,255,.07);
    border: 1px solid rgba(0,122,255,.2);
    border-radius: 12px;
    padding: .875rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    margin-top: .75rem;
}

/* ── Modal (bottom sheet on mobile, centered on desktop) ─ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.modal.hidden { display: none; }

.modal-content {
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    padding: 1.25rem 1.5rem;
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .875rem;
    /* Drag handle */
    padding-top: 1.75rem;
    position: relative;
    animation: sheetUp .28s cubic-bezier(.4,0,.2,1);
}
.modal-content::before {
    content: "";
    position: absolute;
    top: .5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--sep-opaque);
}
.modal-content h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--label);
    letter-spacing: -.015em;
}
.modal-actions {
    display: flex;
    gap: .625rem;
    justify-content: flex-end;
    margin-top: .375rem;
}
.confirm-content { text-align: center; gap: 1.5rem; }

@keyframes sheetUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* On larger screens, center the sheet */
@media (min-width: 680px) {
    .modal { align-items: center; }
    .modal-content {
        border-radius: 20px;
        padding: 1.75rem 2rem;
        max-height: 90vh;
    }
    .modal-content::before { display: none; }
}

/* ── Section header with inline action ─────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .875rem;
}
.section-header h2 { margin-bottom: 0; }

/* ── Owner photo gallery ───────────────────────────────── */
.photo-gallery-owner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: .625rem;
    margin-top: .5rem;
}
.owner-photo-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--fill-2);
    border: 1px solid var(--sep-opaque);
}
.owner-photo { width: 100%; height: 130px; object-fit: cover; display: block; }
.photo-caption { font-size: .75rem; color: var(--label-2); padding: .25rem .5rem; background: rgba(255,255,255,.9); }
.photo-delete {
    position: absolute;
    top: .375rem;
    right: .375rem;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: .7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-delete:hover { background: var(--ios-red); }
.upload-label { display: inline-flex; align-items: center; cursor: pointer; }

/* ── Address fieldset ──────────────────────────────────── */
.address-fieldset {
    border: 1.5px solid var(--sep-opaque);
    border-radius: 12px;
    padding: .75rem 1rem 1rem;
    background: var(--bg-inset);
}
.address-fieldset legend {
    padding: 0 .375rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--label-2);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.address-row { display: flex; gap: .625rem; }
.address-row label { flex: 1; }

/* ── Map link ──────────────────────────────────────────── */
.map-link {
    font-size: .8125rem;
    color: var(--ios-blue);
    text-decoration: none;
    margin-left: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
}
.map-link:hover { text-decoration: underline; }

/* ── Renter page ───────────────────────────────────────── */
.renter-page { max-width: 800px; margin: 0 auto; padding: 1.5rem 1rem; }
.renter-header {
    text-align: center;
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid var(--sep);
    margin-bottom: 1.5rem;
}
.renter-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--label);
    letter-spacing: -.04em;
}
.renter-header p { color: var(--label-2); font-size: .9375rem; margin-top: .375rem; }

.photo-gallery {
    display: flex;
    gap: .625rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    margin-bottom: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.photo-gallery::-webkit-scrollbar { display: none; }
.gallery-img {
    height: 210px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    scroll-snap-align: start;
}
.no-photos { color: var(--label-3); font-style: italic; }
.property-details { margin-bottom: 1.25rem; }
.address { color: var(--label-2); font-size: .875rem; margin-top: .25rem; }
.description { margin-top: .5rem; line-height: 1.65; color: var(--label); font-size: .9375rem; }

.property-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin: .875rem 0;
    background: var(--fill-2);
    border-radius: 12px;
    padding: .25rem;
}
.tab-btn {
    flex: 1;
    padding: .5rem .875rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    color: var(--label-2);
    font-size: .875rem;
    font-weight: 500;
    font-family: inherit;
    transition: background .15s, color .15s;
}
.tab-btn:hover { background: rgba(0,0,0,.05); color: var(--label); }
.tab-btn.active-tab {
    background: var(--bg-card);
    color: var(--label);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* ── Notification panel ────────────────────────────────── */
.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}
.notif-panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--label);
}
.notif-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: var(--bg-card);
    border-left: 3px solid var(--ios-orange);
    border-radius: 14px;
    padding: .875rem 1rem;
    margin-bottom: .5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.notif-icon { font-size: 1.125rem; flex-shrink: 0; margin-top: .05rem; }
.notif-body { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.notif-msg  { font-size: .9rem; color: var(--label);   line-height: 1.45; }
.notif-meta { font-size: .75rem; color: var(--label-2); }
.notif-actions { display: flex; gap: .375rem; flex-shrink: 0; align-items: flex-start; }

/* ── Pending banner ────────────────────────────────────── */
.pending-banner {
    background: rgba(255,149,0,.1);
    border: 1px solid rgba(255,149,0,.3);
    border-left: 3px solid var(--ios-orange);
    border-radius: 14px;
    padding: .875rem 1rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    color: #7c3d00;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
}
.pending-badge {
    background: var(--ios-orange);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Add-on services (owner) ───────────────────────────── */
.addon-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--sep);
    flex-wrap: wrap;
}
.addon-row:last-child { border-bottom: none; }
.addon-info { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.addon-summary { font-size: .8125rem; color: var(--label-2); }
.addon-badge {
    font-size: .725rem;
    font-weight: 700;
    padding: .25rem .5rem;
    border-radius: 20px;
    white-space: nowrap;
}
.addon-badge-pet_policy       { background: rgba(255,149,0,.12); color: #7c3d00; }
.addon-badge-golf_cart_rental { background: rgba(0,122,255,.1);  color: var(--ios-blue-dark); }
.addon-type-fields { display: flex; flex-direction: column; gap: .75rem; }
.golf-model-row {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-bottom: .4rem;
}
.golf-model-row input { min-width: 0; }

/* ── Add-on summary (renter property page) ─────────────── */
.addon-summary-grid {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.addon-summary-card {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    background: var(--fill-2);
    border-radius: 10px;
    padding: .5rem .75rem;
}
.addon-summary-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--label);
}
.addon-summary-detail {
    font-size: .8125rem;
    color: var(--label-2);
}

/* ── Add-on sections (renter booking modal) ────────────── */
.addon-section {
    border: 1px solid var(--sep-opaque);
    border-radius: 12px;
    padding: .875rem 1rem;
    background: var(--bg-inset);
    margin-top: .5rem;
}
.addon-section-header {
    font-size: .9rem;
    font-weight: 700;
    color: var(--label);
    margin-bottom: .5rem;
}
.addon-provider { font-weight: 400; font-size: .8rem; color: var(--label-2); }
.pet-detail-row {
    border: 1px solid var(--sep-opaque);
    border-radius: 10px;
    padding: .625rem .875rem;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* ── Contact rows ──────────────────────────────────────── */
.contact-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .875rem 0;
    border-bottom: 1px solid var(--sep);
}
.contact-row:last-child { border-bottom: none; }
.contact-info { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.contact-info strong { font-size: .9375rem; font-weight: 600; }
.contact-sub { font-size: .8125rem; color: var(--label-2); }
.contact-sub a { color: var(--ios-blue); text-decoration: none; }
.contact-sub a:hover { text-decoration: underline; }

/* ── Link rows ─────────────────────────────────────────── */
.link-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 0;
    border-bottom: 1px solid var(--sep);
    flex-wrap: wrap;
}
.link-row:last-child { border-bottom: none; }
.link-expired { opacity: .4; }
.link-url {
    color: var(--ios-blue);
    font-size: .875rem;
    word-break: break-all;
    text-decoration: none;
}
.link-url:hover { text-decoration: underline; }

/* ── Share modal ───────────────────────────────────────── */
.share-divider {
    text-align: center;
    font-size: .75rem;
    color: #a8997a;
    margin: .75rem 0 .5rem;
    position: relative;
}
.share-divider::before, .share-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #e0cfa8;
}
.share-divider::before { left: 0; }
.share-divider::after  { right: 0; }
.share-tabs {
    display: flex;
    border-bottom: 2px solid #e0cfa8;
    margin: .75rem 0 .5rem;
}
.share-tab {
    background: none;
    border: none;
    padding: .4rem 1rem;
    font-size: .875rem;
    color: #78716c;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.share-tab.active {
    color: var(--ios-blue);
    border-bottom-color: var(--ios-blue);
    font-weight: 600;
}
.share-tab-panel { padding-top: .25rem; }
.share-status {
    font-size: .8125rem;
    margin: .25rem 0 0;
}

/* ── Error ─────────────────────────────────────────────── */
.error {
    background: rgba(255,59,48,.08);
    color: var(--ios-red);
    border: 1px solid rgba(255,59,48,.2);
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .875rem;
}
.error-card {
    text-align: center;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem;
    max-width: 400px;
    margin: 4rem auto;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.error-card h2 { margin-bottom: .75rem; color: var(--ios-red); }

/* ── Method picker buttons ─────────────────────────────── */
.method-btn { transition: background .12s, color .12s; }
.method-btn:disabled { opacity: .35; cursor: not-allowed; }
.method-btn.btn-primary { color: #fff; } /* selected state */

/* ── Renter price estimate ──────────────────────────────── */
.price-estimate-box {
    background: var(--fill-2);
    border-radius: 10px;
    padding: .625rem .875rem;
    margin: .5rem 0;
}
.price-estimate-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ios-blue);
}
.price-estimate-detail {
    font-size: .8125rem;
    color: var(--label-2);
    margin-top: .2rem;
}

/* ── Pricing ────────────────────────────────────────────── */
.pricing-rule-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--sep);
    font-size: .875rem;
    flex-wrap: wrap;
}
.pricing-rule-row:last-child { border-bottom: none; }
.pricing-rule-type {
    font-weight: 600;
    color: var(--label);
    min-width: 10rem;
}
.pricing-rule-label {
    color: var(--label-2);
    font-size: .8125rem;
    flex: 1;
}
.pricing-rule-value {
    color: var(--ios-blue);
    font-weight: 600;
    margin-left: auto;
}
.pricing-override-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .3rem 0;
    font-size: .8125rem;
    color: var(--label-2);
}

/* ── Admin panel ────────────────────────────────────────── */
.admin-section { }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.admin-table th {
    text-align: left;
    padding: .625rem 1rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--label-2);
    border-bottom: 1px solid var(--sep);
    background: var(--fill-2);
}
.admin-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--sep);
    vertical-align: middle;
    color: var(--label);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--fill-2); }
.admin-row-dim td { opacity: .5; }
.admin-empty {
    text-align: center;
    color: var(--label-2);
    padding: 2rem !important;
}
.admin-sub {
    font-size: .75rem;
    color: var(--label-2);
}
.admin-actions { white-space: nowrap; text-align: right; }

/* Toggle switch */
.toggle-wrap {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 36px;
    height: 20px;
}
.toggle-wrap input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--sep-opaque);
    border-radius: 20px;
    transition: background .2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-wrap input:checked + .toggle-slider { background: var(--ios-green); }
.toggle-wrap input:checked + .toggle-slider::before { transform: translateX(16px); }

.admin-nav { color: var(--sidebar-text) !important; }
.admin-nav.active { color: var(--sidebar-hi) !important; background: var(--sidebar-act); border-radius: 8px; }

/* ── Utilities ─────────────────────────────────────────── */
.hidden { display: none !important; }
.loading { color: var(--label-2); font-size: .9375rem; padding: 1rem 0; }
