/* ── Fonts & global tokens ─────────────────────────────────── */
:root {
    --default-font: "Titillium Web", system-ui, sans-serif;
    --heading-font: "Titillium Web", system-ui, sans-serif;
    --nav-font:     "Titillium Web", system-ui, sans-serif;

    --default-color:  #3d4348;
    --heading-color:  #3e5055;
    --surface-color:  #ffffff;
    --background-color: #ffffff;
    --contrast-color: #ffffff;

    /* --brand, --brand-dark, --brand-light injected per-tenant in _Layout */
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--default-font);
    color: var(--default-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--heading-color);
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .3s;
}

a:hover {
    color: var(--brand-dark);
}

/* ── Brand utilities ───────────────────────────────────────── */
.text-brand  { color: var(--brand) !important; }
.link-brand  { color: var(--brand); }
.link-brand:hover { color: var(--brand-dark); }

.btn-brand {
    background-color: var(--brand);
    border-color: var(--brand);
    color: var(--contrast-color);
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: .02em;
    transition: background-color .3s, border-color .3s;
}
.btn-brand:hover, .btn-brand:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--contrast-color);
}
.btn-brand:focus-visible {
    box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--brand), transparent 60%);
}

/* ── Preloader ─────────────────────────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--background-color);
    transition: opacity .4s ease-out, visibility .4s;
}

#preloader::before,
#preloader::after {
    content: "";
    position: absolute;
    border: 4px solid var(--brand);
    border-radius: 50%;
    animation: preloader-spin 2s cubic-bezier(0, .2, .8, 1) infinite;
}

#preloader::after {
    animation-delay: -.5s;
}

@keyframes preloader-spin {
    0%   { width: 10px; height: 10px; top: calc(50% - 5px);  left: calc(50% - 5px);  opacity: 1; }
    100% { width: 72px; height: 72px; top: calc(50% - 36px); left: calc(50% - 36px); opacity: 0; }
}

/* ── Scroll-top button ─────────────────────────────────────── */
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: -15px;
    z-index: 99999;
    background-color: var(--brand);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    transition: all .4s;
    color: var(--contrast-color);
}

.scroll-top i { font-size: 24px; line-height: 0; }

.scroll-top:hover {
    background-color: var(--brand-dark);
    color: var(--contrast-color);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
    bottom: 15px;
}

/* ── Navbar ────────────────────────────────────────────────── */
.site-nav {
    background: var(--surface-color);
    border-bottom: 1px solid #e5e7eb;
    transition: box-shadow .3s;
}

.scrolled .site-nav {
    box-shadow: 0 0 18px rgba(0, 0, 0, .1);
    border-bottom-color: transparent;
}

.site-nav .navbar-brand-text {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
}

.site-nav .nav-link {
    font-family: var(--nav-font);
    font-size: 1rem;
    font-weight: 600;
    color: #313336;
    padding: .5rem .75rem;
    border-radius: .375rem;
    transition: color .2s, background .2s;
}

.site-nav .nav-link:hover {
    color: var(--brand);
    background: var(--brand-light);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--contrast-color);
    padding: 5rem 1rem 4.5rem;
}

.hero-eyebrow {
    font-family: var(--heading-font);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .8;
}

.hero-tagline {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--contrast-color);
}

.hero-sub {
    font-size: 1.1rem;
    opacity: .85;
    max-width: 500px;
    margin-inline: auto;
}

/* ── Hero image variant ────────────────────────────────────── */
.hero-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0,0,0,.55) 0%,
        rgba(0,0,0,.35) 100%);
}

.hero-content { position: relative; z-index: 1; }

/* ── Search panel ──────────────────────────────────────────── */
.search-panel {
    background: rgba(255, 255, 255, .97);
    border-radius: 1rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.search-tab {
    flex: 1;
    padding: .75rem 1rem;
    font-family: var(--heading-font);
    font-size: .9rem;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    transition: color .15s, background .15s;
    border-bottom: 3px solid transparent;
}

.search-tab:hover { color: var(--brand); background: #fff; }

.search-tab.active {
    color: var(--brand);
    background: #fff;
    border-bottom-color: var(--brand);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: flex-end;
    padding: 1rem;
    gap: .75rem;
}

.search-field {
    flex: 1;
    min-width: 140px;
}

.search-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin-bottom: .35rem;
}

.search-select {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    font-family: var(--default-font);
    font-size: .9rem;
    color: var(--default-color);
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
    transition: border-color .15s;
}

.search-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand), transparent 80%);
}

.search-btn {
    padding: .65rem 1.75rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: .5rem;
    font-family: var(--heading-font);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    align-self: flex-end;
}

.search-btn:hover { background: var(--brand-dark); }

@media (max-width: 640px) {
    .search-field { min-width: calc(50% - .375rem); }
    .search-btn { width: 100%; }
}

/* ── More filters panel ────────────────────────────────────── */
.search-more-toggle {
    padding: .4rem 1rem .5rem;
    border-top: 1px solid #e5e7eb;
}
.search-more-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: .82rem;
    cursor: pointer;
    padding: 0;
    transition: color .15s;
}
.search-more-btn:hover { color: var(--brand); }
.search-features-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease;
}
.search-features-panel.open {
    max-height: 500px;
}
.search-features-inner {
    padding: .5rem 1rem 1rem;
}
.search-features-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    margin-bottom: .5rem;
}
.search-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

/* Feature pills — light style (used in search panel and filter bar) */
.feature-pill {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.feature-pill input[type="checkbox"] { display: none; }
.feature-pill span {
    display: inline-block;
    padding: .28rem .7rem;
    border-radius: 2rem;
    font-size: .8rem;
    font-weight: 500;
    border: 1.5px solid #d1d5db;
    color: #374151;
    background: #fff;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.feature-pill:hover span {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
}
.feature-pill input:checked + span,
.feature-pill.active span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* ── Stats strip ───────────────────────────────────────────── */
.stats-strip {
    background: #f8fbfc;
    border-bottom: 1px solid #e5e7eb;
    font-size: .95rem;
}

/* ── Section title decoration ──────────────────────────────── */
.section-title {
    text-align: center;
    padding-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--brand);
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

/* ── Filter bar ────────────────────────────────────────────── */
.filter-bar { background: var(--surface-color); }
.filter-price-input { width: 120px; }

/* ── Property cards ────────────────────────────────────────── */
.prop-card {
    border: 1px solid #e5e7eb;
    border-radius: .875rem;
    overflow: hidden;
    background: var(--surface-color);
    transition: box-shadow .2s ease, transform .2s ease;
}

.prop-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}

.prop-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.prop-card-img-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #d1d5db;
    font-size: 3rem;
}

.prop-title {
    font-family: var(--heading-font);
    font-size: .975rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prop-price {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color);
    white-space: nowrap;
}

.prop-location { font-size: .85rem; color: #6b7280; }
.prop-meta     { font-size: .825rem; color: #6b7280; border-color: #f3f4f6 !important; }

/* ── Listing badges ────────────────────────────────────────── */
.listing-badge {
    display: inline-block;
    font-family: var(--heading-font);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 2rem;
    white-space: nowrap;
}

.badge-sale { background: var(--brand-light); color: var(--brand); }
.badge-rent { background: #ecfdf5; color: #059669; }

/* ── Property detail ───────────────────────────────────────── */
.detail-hero-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.detail-carousel { position: relative; }

.carousel-counter {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: .8rem;
    padding: .2rem .6rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}

.detail-thumb {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: .375rem;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    opacity: .7;
    transition: opacity .15s, border-color .15s;
}

.detail-thumb.active,
.detail-thumb:hover { opacity: 1; border-color: var(--brand); }

.detail-no-photo {
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.detail-sidebar { position: sticky; top: 80px; }

.detail-price {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.1;
}

.detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    background: #f8fbfc;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1rem;
}

.detail-stat { display: flex; align-items: center; gap: .65rem; font-size: .9rem; }
.detail-stat i { font-size: 1.25rem; }
.detail-stat strong { display: block; font-size: .95rem; color: var(--heading-color); }
.detail-stat span { font-size: .775rem; color: #6b7280; }

.enquiry-card {
    background: var(--surface-color);
    border: 1px solid #e5e7eb;
    border-radius: .875rem;
    padding: 1.25rem;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    background: #f8fbfc;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    padding: .3rem .85rem;
    font-size: .85rem;
    color: var(--default-color);
}

/* ── Admin layout ──────────────────────────────────────────── */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: #f8f9fb;
    font-family: var(--default-font);
    margin: 0;
}

.admin-sidebar {
    width: 240px;
    min-height: 100vh;
    background: #111827;
    flex-shrink: 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform .3s ease;
    overflow-y: auto;
}

@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; display: none; }
    .admin-overlay.active { display: block; }
    .admin-main { margin-left: 0 !important; }
}

.admin-sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: .6rem;
}

.admin-logo-img { height: 28px; object-fit: contain; border-radius: .25rem; filter: brightness(0) invert(1); }
.admin-logo-text { font-weight: 700; font-size: 1rem; color: #fff; }

.admin-sidebar-label {
    padding: 1rem 1.25rem .4rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b7280;
}

.admin-nav { list-style: none; padding: 0 .75rem; margin: 0; }
.admin-nav li { margin-bottom: .15rem; }

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .75rem;
    border-radius: .5rem;
    color: #9ca3af;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    border: none;
    background: none;
    cursor: pointer;
}

.admin-nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav-link.active { background: var(--brand); color: #fff; }
.admin-nav-link i { font-size: 1.05rem; }

.admin-sidebar-footer {
    margin-top: auto;
    padding: .75rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.admin-main {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 56px;
}

.admin-sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #374151;
    padding: 0;
    line-height: 1;
}

.admin-content { padding: 1.75rem 1.5rem; flex: 1; }

@media (min-width: 992px) {
    .admin-content { padding: 2rem 2rem; }
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.admin-page-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

.admin-page-sub { color: #6b7280; font-size: .875rem; margin: .2rem 0 0; }

/* ── Admin cards ────────────────────────────────────────────── */
.admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .875rem;
    overflow: hidden;
}

.admin-card-header {
    padding: 1rem 1.25rem;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: .9rem;
    color: var(--heading-color);
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}

.admin-card-body { padding: 1.25rem; }

/* ── Stat cards ─────────────────────────────────────────────── */
.admin-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .875rem;
    padding: 1.25rem;
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: .75rem;
}

.admin-stat-value {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1;
    margin-bottom: .25rem;
}

.admin-stat-label { font-size: .8rem; color: #6b7280; }

/* ── Admin table ────────────────────────────────────────────── */
.admin-table { font-size: .875rem; }
.admin-table thead th {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding: .875rem 1rem;
    background: #fafafa;
}
.admin-table tbody td { padding: .875rem 1rem; vertical-align: middle; border-bottom: 1px solid #f3f4f6; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #fafafa; }

.admin-prop-thumb {
    width: 52px;
    height: 40px;
    object-fit: cover;
    border-radius: .375rem;
    flex-shrink: 0;
}

.admin-prop-thumb-placeholder {
    width: 52px;
    height: 40px;
    background: #f3f4f6;
    border-radius: .375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    flex-shrink: 0;
}

.admin-status-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 2rem;
    background: #f3f4f6;
    color: #374151;
}

/* ── Admin photo grid ───────────────────────────────────────── */
.admin-photo-item {
    position: relative;
    width: 100px;
    height: 76px;
    border-radius: .5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.admin-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-photo-delete {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    cursor: pointer;
    padding: 0;
    transition: background .15s;
}

.admin-photo-delete:hover { background: #dc2626; }

/* ── Enquiry cards ──────────────────────────────────────────── */
.enquiry-unread { border-left: 3px solid var(--brand); }

.enquiry-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
}

/* ── Admin settings ────────────────────────────────────────── */
.settings-card {
    background: var(--surface-color);
    border: 1px solid #e5e7eb;
    border-radius: .875rem;
    padding: 1.5rem;
}

.settings-card-title {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #f3f4f6;
}

.settings-preview-logo {
    height: 48px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: .375rem;
    padding: .25rem .5rem;
    background: #fff;
}

.settings-preview-hero {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: #111827; color: #9ca3af; }
.site-footer a { color: #d1d5db; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }

/* ── Availability calendar ─────────────────────────────────── */
.avail-cal-wrap .flatpickr-calendar { width: 100% !important; }

.avail-legend-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: .2rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.avail-block-section-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #9ca3af;
    padding: .6rem 1.25rem .35rem;
    border-top: 1px solid #f3f4f6;
}

.avail-block-section-label:first-child { border-top: none; }

.avail-block-row {
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #f9fafb;
}

.avail-block-row:last-child { border-bottom: none; }

.avail-block-dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: .875rem;
    font-weight: 500;
    color: var(--heading-color);
    gap: .1rem;
}

.avail-block-note {
    font-size: .8rem;
    color: #6b7280;
    margin-top: .2rem;
    margin-left: 1.5rem;
}

.avail-public-cal { max-width: 560px; }

/* ── Weekly rates table ────────────────────────────────────── */
.weekly-rates-table {
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
}

.weekly-rates-header,
.weekly-rates-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .7rem 1.1rem;
}

.weekly-rates-header > span:first-child,
.weekly-rates-row > span:first-child { flex: 1; }

.weekly-rates-header > span:nth-child(2):not(:last-child),
.weekly-rates-row > span:nth-child(2):not(:last-child) { flex: 1; }

.weekly-rates-header {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}

.weekly-rates-row {
    font-size: .925rem;
    border-bottom: 1px solid #f3f4f6;
}

.weekly-rates-row:last-child { border-bottom: none; }
.weekly-rates-row:nth-child(even) { background: #fafafa; }

/* ── Additional costs table ────────────────────────────────── */
.additional-costs-table {
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
}

.additional-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .75rem 1.1rem;
    font-size: .925rem;
    border-bottom: 1px solid #f3f4f6;
}

.additional-cost-row:last-child { border-bottom: none; }

.additional-cost-row:nth-child(odd) { background: #fafafa; }

.additional-cost-row > span:first-child { color: #374151; font-weight: 500; }
.additional-cost-row > span:last-child  { color: var(--heading-color); font-weight: 600; white-space: nowrap; }

/* ── Drag handle ───────────────────────────────────────────── */
.rate-handle { cursor: grab; text-align: center; vertical-align: middle; }
.rate-handle:active { cursor: grabbing; }

/* ── Focus / accessibility ─────────────────────────────────── */
.btn:focus-visible,
.form-control:focus {
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand), transparent 65%);
}
