:root {
    --color-navy: #001A3F;
    --color-navy-dark: #050D1F;
    --color-gold: #C5A02F;
    --color-gold-light: #E4CFA0;
    --color-light: #F5F3EE;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-light);
    color: var(--color-navy-dark);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* --- Top bar (social links) --- */
.top-bar {
    background: var(--color-navy-dark);
}

.top-bar-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.top-bar-wrap a {
    color: rgba(245, 243, 238, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.top-bar-wrap a:hover { color: var(--color-gold); }

/* --- Header / Navbar --- */
.site-header {
    background: var(--color-navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo { width: auto; max-height: 80px; }

.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 0.03em;
}

.main-nav {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    column-gap: 1.75rem;
    row-gap: 0.75rem;
    min-width: 0;
}

.main-nav a {
    color: var(--color-light);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-gold);
}

/* --- Nav Dropdown (Services) --- */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
    color: var(--color-gold);
}

.nav-dropdown-arrow {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    background: var(--color-navy-dark);
    border-top: 3px solid var(--color-gold);
    border-radius: 4px;
    box-shadow: 0 12px 28px rgba(5, 13, 31, 0.35);
    min-width: 230px;
    padding: 0.4rem 0;
    z-index: 200;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.nav-dropdown-menu a {
    color: var(--color-light);
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(197, 160, 47, 0.18);
    color: var(--color-gold);
}

.nav-dropdown.open .nav-dropdown-menu {
    display: flex;
}

@media (min-width: 821px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        display: flex;
    }
    .nav-dropdown:hover .nav-dropdown-arrow {
        transform: rotate(180deg);
    }
}

.main-nav a.nav-call {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    background: #b2262d;
    border-radius: 4px;
    color: #fff;
}

.main-nav a.nav-call:hover { background: #8f1c23; color: #fff; }

.lang-switch {
    position: relative;
    padding-left: 1rem;
    border-left: 1px solid rgba(245, 243, 238, 0.25);
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-light);
    padding: 0.3rem 0.2rem;
}

.lang-current .flag {
    width: 26px;
    height: 18px;
    flex: 0 0 26px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(245, 243, 238, 0.4);
}

.lang-current:hover { color: var(--color-gold-light); }

.lang-options {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    background: var(--color-gold-light);
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(5, 13, 31, 0.25);
    overflow: hidden;
    min-width: 0;
    z-index: 200;
}

.lang-options.open { display: flex; }

.lang-options a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.9rem;
}

.lang-options a:hover {
    background: var(--color-gold);
}

.lang-options .flag {
    width: 26px;
    height: 18px;
    flex: 0 0 26px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(11, 30, 63, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-gold);
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    color: var(--color-light);
    height: 300px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero2 {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    color: var(--color-light);
    height: 100px;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content { max-width: 720px; margin: 0 auto; }
.hero2-content { max-width: 720px; margin: 0 auto; }

.hero h1 {
    font-family: var(--font-display);
    font-size: var(--heading-size);
    color: var(--color-gold-light);
    margin-bottom: 1rem;
}
.hero2 h1 {
    font-family: var(--font-display);
    font-size: var(--heading-size);
    color: var(--color-gold-light);
}

.hero p { font-size: 1.15rem; color: rgba(245, 243, 238, 0.85); }
.hero2 p { font-size: 1.0rem; color: rgba(245, 243, 238, 0.85); }

@media (max-width: 640px) {
    .hero {
        height: auto;
        padding: 5.3rem 1.5rem;
    }
}

.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-gold);
    border-radius: 4px;
}

/* --- Account pages --- */
.auth-section { padding: 4rem 1.5rem 5rem; }

.auth-wrap { max-width: 620px; margin: 0 auto; }

.auth-wrap h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--color-navy);
    margin: 0 0 1.5rem;
}

.account-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.account-form label,
.account-form fieldset,
.account-form .btn-primary { grid-column: 1 / -1; }

.account-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; color: var(--color-navy); }

.account-form input,
.account-form select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(11, 30, 63, 0.2);
    border-radius: 4px;
    font: inherit;
}

.iti {
    display: grid;
    grid-template-columns: minmax(125px, auto) minmax(0, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.iti__country-container {
    position: static !important;
    color: var(--color-navy-dark);
}

.iti__selected-country {
    width: 100%;
    border: 1px solid rgba(11, 30, 63, 0.2);
    border-radius: 4px;
    background: #fff;
}

.iti > input {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding-left: 0.9rem !important;
    border: 1px solid rgba(11, 30, 63, 0.2) !important;
    border-radius: 4px !important;
}
.iti input:focus::placeholder { color: transparent; opacity: 0; }

.account-form fieldset { border: 1px solid rgba(11, 30, 63, 0.2); border-radius: 4px; padding: 0.75rem 1rem; }
.account-form fieldset label { display: inline-flex; width: auto; margin-right: 1.25rem; }
.account-form fieldset input { width: auto; }
.account-action { display: block; padding-top: 1.5rem; border-top: 1px solid rgba(11, 30, 63, 0.15); }
.account-action label { margin-bottom: 1rem; }

.portal-layout {
    max-width: 1200px;
    min-height: 560px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 2.5rem;
}

.portal-sidebar {
    align-self: start;
    background: #fff;
    border: 1px solid rgba(11, 30, 63, 0.12);
    border-top: 3px solid var(--color-gold);
    border-radius: 6px;
    padding: 1.25rem 0;
}

.portal-user {
    margin: 0;
    padding: 0 1.25rem 1rem;
    color: var(--color-navy);
    font-weight: 600;
    border-bottom: 1px solid rgba(11, 30, 63, 0.1);
}

.portal-nav { display: grid; padding-top: 0.75rem; }

.portal-nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.25rem;
    color: var(--color-navy-dark);
    font-size: 0.92rem;
}

.portal-nav a:hover,
.portal-nav a.active { background: rgba(197, 160, 47, 0.14); color: var(--color-navy); }
.portal-nav i { width: 1rem; color: var(--color-gold); text-align: center; }

.portal-content h1 {
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--color-navy);
}

.portal-section-title {
    margin: 2rem 0 1rem;
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--color-navy);
}

.portal-content h1 + .portal-section-title { margin-top: 0; }

.portal-grid,
.package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.portal-tile,
.package-tile,
.contact-list article {
    display: block;
    background: #fff;
    border: 1px solid rgba(11, 30, 63, 0.12);
    border-radius: 6px;
    padding: 1.5rem;
}

.portal-tile { border-top: 3px solid var(--color-gold); }
.portal-tile:hover { box-shadow: 0 8px 20px rgba(5, 13, 31, 0.12); }
.portal-tile > i { color: var(--color-gold); font-size: 1.25rem; }
.portal-tile h2,
.package-tile h2 { margin: 0.6rem 0 0.35rem; font-family: var(--font-display); color: var(--color-navy); font-size: 1.5rem; }
.portal-tile p,
.package-tile p { margin: 0; color: #444; }

.contact-list { display: grid; gap: 0.75rem; }
.contact-list article { display: grid; gap: 0.2rem; padding: 1rem 1.25rem; }
.contact-list span { color: #444; font-size: 0.9rem; }

.contact-management-grid { display: grid; gap: 1rem; }
.contact-management-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid rgba(11, 30, 63, 0.12); border-left: 3px solid var(--color-gold); border-radius: 6px; }
.contact-management-card h2 { margin: 0 0 0.25rem; font-family: var(--font-display); color: var(--color-navy); }
.contact-management-card p { margin: 0 0 0.35rem; color: #444; }
.contact-management-card span { color: var(--color-gold); font-size: 0.85rem; }
.contact-management-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.contact-management-actions form { margin: 0; }

.package-tile { position: relative; min-height: 180px; }
.package-tile > strong { display: block; margin-top: 1rem; color: var(--color-gold); font-size: 0.85rem; }
.package-tile.is-active { border-top: 3px solid var(--color-gold); }
.package-tile.is-muted { opacity: 0.45; filter: grayscale(0.35); }

@media (max-width: 640px) {
    .account-form { grid-template-columns: 1fr; }
    .portal-layout { grid-template-columns: 1fr; padding-top: 1.5rem; gap: 1.5rem; }
    .portal-sidebar { padding: 0.75rem 0; }
    .portal-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-nav a { padding: 0.6rem 0.8rem; font-size: 0.82rem; }
    .portal-grid, .package-grid { grid-template-columns: 1fr; }
}

/* --- Intro section --- */
.intro {
    padding: 4rem 1.5rem;
    text-align: center;
}

.intro-content { max-width: 700px; margin: 0 auto; }

.intro h2,
.services h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

/* --- Services grid --- */
.services {
    padding: 2rem 1.5rem 5rem;
    text-align: center;
}

.service-grid {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 641px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .service-grid { grid-template-columns: repeat(3, 1fr); }

    /* If exactly 4 cards, center the lone 4th card on its own row. */
    .service-grid > .service-card:nth-child(4):last-child {
        grid-column: 2;
    }
}

.service-card {
    background: #fff;
    border: 1px solid rgba(11, 30, 63, 0.1);
    border-top: 3px solid var(--color-gold);
    border-radius: 6px;
    padding: 2rem 1.75rem;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(11, 30, 63, 0.12);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: var(--heading-size);
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}

.service-card p { color: #444; margin-bottom: 1.25rem; }

.service-link {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

/* --- Contact page --- */
.contact-section {
    padding: 4rem 1.5rem 5rem;
}

.contact-form-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.contact-form-wrap .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-wrap form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form-wrap label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-navy);
    margin-top: 0.75rem;
}

.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(11, 30, 63, 0.2);
    border-radius: 4px;
    resize: vertical;
}

.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.btn-primary {
    align-self: flex-start;
    margin-top: 1.5rem;
    background: var(--color-navy);
    color: var(--color-light);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover { background: var(--color-navy-dark); }

.btn-danger { background: #a12a2a; margin-left: 0.5rem; }
.btn-danger:hover { background: #7f2020; }

.form-message {
    padding: 0.9rem 1.1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.form-success {
    background: rgba(53, 130, 76, 0.12);
    color: #2f6b41;
}

.form-error {
    background: rgba(178, 46, 46, 0.1);
    color: #a12a2a;
}

/* --- Department detail pages --- */
.dept-hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    color: var(--color-light);
    padding: 5rem 1.5rem;
    text-align: center;
}

.dept-eyebrow {
    display: inline-block;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.dept-hero h1 {
    font-family: var(--font-display);
    font-size: var(--heading-size);
    color: var(--color-gold-light);
    margin: 0 0 0.75rem;
}

.dept-detail {
    padding: 4rem 1.5rem;
}

.dept-detail-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #333;
}

.dept-includes {
    padding: 0 1.5rem 5rem;
}

.dept-includes-content {
    max-width: 760px;
    margin: 0 auto;
}

.dept-includes-content h2 {
    font-family: var(--font-display);
    font-size: var(--heading-size);
    color: var(--color-navy);
    margin-bottom: 1.25rem;
}

.includes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.includes-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #333;
    font-size: 1rem;
}

.includes-list i {
    color: var(--color-gold);
    margin-top: 0.2rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-navy-dark);
    color: rgba(245, 243, 238, 0.7);
    padding: 1rem 1rem;
    text-align: center;
    margin-top: auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--color-gold-light);
    margin-bottom: 0.6rem;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--color-gold-light);
}

.footer-logo { height: 52px; width: auto; }

.footer-slogan { 
    font-family: var(--font-body);
    font-size: 0.85rem; 
    color: rgba(245, 243, 238, 0.8);
    margin: 0.1rem 0 0 0;
    line-height: 1.2;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
}

.footer-socials a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(228, 207, 160, 0.55);
    border-radius: 50%;
    color: var(--color-gold-light);
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
    background: var(--color-gold);
    color: var(--color-navy-dark);
}

.footer-copy { font-size: 0.8rem; opacity: 0.7; }

/* --- Responsive --- */
@media (max-width: 820px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-navy);
        flex-direction: column;
        flex: initial;
        align-items: flex-start;
        padding: 1rem 1.5rem;
        gap: 1rem;
        display: none;
    }

    .main-nav.open { display: flex; }

    .nav-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.35rem 0;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        border-left: 2px solid var(--color-gold);
        background: transparent;
        padding: 0.25rem 0 0.25rem 0.75rem;
        margin-top: 0.4rem;
    }

    .nav-dropdown-menu a {
        padding: 0.4rem 0.5rem;
    }

    .lang-switch {
        border-left: none;
        border-top: 1px solid rgba(245, 243, 238, 0.25);
        padding-left: 0;
        padding-top: 1rem;
        width: 100%;
    }
}

/* ======================================================
   --- Funda-style Rental Services & Property Showcase ---
   ====================================================== */

.rental-listings-section {
    padding: 2.5rem 1.5rem 5rem;
    background: var(--color-light);
}

.rental-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* --- Admin Top Banner --- */
.rental-admin-banner {
    background: #eef2ff;
    border-bottom: 2px solid #6366f1;
    padding: 0.85rem 1.5rem;
}

.rental-admin-banner-wrap {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-badge {
    color: #4338ca;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-admin-action {
    background: #4f46e5;
    color: #fff !important;
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s ease;
}

.btn-admin-action:hover {
    background: #3730a3;
}

.btn-admin-alt {
    background: #fff;
    color: #4f46e5 !important;
    border: 1px solid #4f46e5;
}

.btn-admin-alt:hover {
    background: #eef2ff;
}

/* --- Funda Search & Filter Bar --- */
.funda-search-bar {
    background: #ffffff;
    border: 1px solid rgba(11, 30, 63, 0.12);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 16px rgba(5, 13, 31, 0.06);
    margin-bottom: 2rem;
}

.funda-filter-form {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr auto;
    gap: 1rem;
    align-items: flex-end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-field label i {
    color: var(--color-gold);
    font-size: 0.8rem;
}

.filter-field input,
.filter-field select {
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(11, 30, 63, 0.2);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    background: #fff;
    color: var(--color-navy-dark);
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(197, 160, 47, 0.2);
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-funda-search {
    background: var(--color-gold);
    color: var(--color-navy-dark);
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.btn-funda-search:hover {
    background: #d4ae36;
}

.btn-funda-reset {
    background: transparent;
    color: #666;
    border: 1px solid rgba(11, 30, 63, 0.2);
    padding: 0.65rem 0.9rem;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-funda-reset:hover {
    background: #eee;
    color: var(--color-navy);
}

/* --- Results Header --- */
.funda-results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(11, 30, 63, 0.1);
}

.funda-results-header h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-navy);
    margin: 0;
}

.funda-results-header h2 small {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

/* --- Funda Property List & Cards --- */
.funda-property-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.funda-card {
    background: #ffffff;
    border: 1px solid rgba(11, 30, 63, 0.12);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    box-shadow: 0 4px 14px rgba(5, 13, 31, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.funda-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(5, 13, 31, 0.12);
    border-color: var(--color-gold);
}

.funda-card.is-featured {
    border-left: 4px solid var(--color-gold);
}

/* --- Property Media Column --- */
.funda-card-media {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    min-height: 230px;
    background: #e2e8f0;
}

.funda-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.funda-card:hover .funda-card-img {
    transform: scale(1.04);
}

.funda-card-no-img {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 3rem;
}

.funda-badge-group {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.funda-status-badge {
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.badge-available {
    background: #15803d;
}

.badge-reserved {
    background: #d97706;
}

.badge-rented {
    background: #64748b;
}

.funda-featured-badge {
    background: var(--color-gold);
    color: var(--color-navy-dark);
    padding: 0.28rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* --- Property Content Column --- */
.funda-card-content {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.funda-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.funda-card-location {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.funda-card-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-navy);
}

.funda-card-price small {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

.funda-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.25;
}

.funda-card-title a {
    color: var(--color-navy);
    transition: color 0.2s ease;
}

.funda-card-title a:hover {
    color: var(--color-gold);
}

.funda-card-address {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 0.9rem;
}

/* --- Funda Specs Row --- */
.funda-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(11, 30, 63, 0.08);
    border-bottom: 1px solid rgba(11, 30, 63, 0.08);
    margin-bottom: 0.85rem;
}

.funda-spec {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy);
}

.funda-spec i {
    color: var(--color-gold);
    font-size: 0.85rem;
}

.funda-card-desc {
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 0.9rem;
}

/* --- Feature Tag Pills --- */
.funda-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
}

.funda-feature-tag {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.funda-feature-tag i {
    color: var(--color-gold);
    font-size: 0.7rem;
}

.funda-feature-tag.extra-tag {
    background: #e2e8f0;
    color: #475569;
}

/* --- Card Actions --- */
.funda-card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.btn-funda-details {
    background: transparent;
    border: 1px solid var(--color-navy);
    color: var(--color-navy);
    padding: 0.55rem 1.15rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-funda-details:hover {
    background: var(--color-navy);
    color: #fff;
}

.btn-funda-book {
    background: var(--color-gold);
    color: var(--color-navy-dark) !important;
    padding: 0.55rem 1.25rem;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s ease;
}

.btn-funda-book:hover {
    background: #d4ae36;
}

.btn-admin-edit {
    background: #e0e7ff;
    color: #4338ca !important;
    padding: 0.55rem 0.9rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    transition: background 0.2s ease;
}

.btn-admin-edit:hover {
    background: #c7d2fe;
}

.funda-empty-state {
    background: #fff;
    border: 1px dashed rgba(11, 30, 63, 0.2);
    border-radius: 8px;
    padding: 3.5rem 2rem;
    text-align: center;
    color: #64748b;
}

.funda-empty-state i {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.funda-empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}

.funda-empty-state p {
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

/* ======================================================
   --- Property Detail Modal ---
   ====================================================== */

.property-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 1.5rem;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.property-modal.open {
    display: flex;
}

.property-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 13, 31, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.property-modal-dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    max-width: 820px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.property-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease;
}

.property-modal-close:hover {
    background: rgba(0, 0, 0, 0.85);
}

.property-modal-body {
    overflow-y: auto;
    padding: 0;
}

.modal-property-hero {
    position: relative;
    max-height: 380px;
    background: #001a3f;
    overflow: hidden;
}

.modal-prop-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.modal-no-img {
    height: 220px;
    display: grid;
    place-items: center;
    color: rgba(245, 243, 238, 0.4);
    font-size: 3rem;
}

.modal-status-badge {
    position: absolute;
    bottom: 16px;
    left: 20px;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.modal-property-content {
    padding: 2rem 2.25rem;
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(11, 30, 63, 0.1);
}

.modal-location {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0.25rem 0 0.35rem;
}

.modal-address {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.modal-price-box {
    background: #f8fafc;
    border: 1px solid rgba(11, 30, 63, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    text-align: right;
    white-space: nowrap;
}

.modal-price-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
}

.modal-price-period {
    font-size: 0.85rem;
    color: #64748b;
}

/* --- Modal Specs Grid --- */
.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.modal-spec-box {
    background: #f8fafc;
    border: 1px solid rgba(11, 30, 63, 0.08);
    border-radius: 6px;
    padding: 0.85rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.modal-spec-box i {
    color: var(--color-gold);
    font-size: 1.15rem;
}

.spec-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
}

.spec-lbl {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.modal-desc-section {
    margin-bottom: 1.75rem;
}

.modal-desc-section h3,
.modal-features-section h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--color-navy);
    margin: 0 0 0.75rem;
}

.modal-desc-section p {
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0;
}

.modal-features-section {
    margin-bottom: 2rem;
}

.modal-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.65rem;
}

.modal-feature-item {
    font-size: 0.9rem;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.modal-feature-item i {
    color: #16a34a;
    font-size: 0.85rem;
}

.modal-footer-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(11, 30, 63, 0.1);
}

.btn-modal-book {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* ======================================================
   --- Admin Rental Properties Management Styles ---
   ====================================================== */

.portal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.portal-header-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #fff;
    color: var(--color-navy) !important;
    border: 1px solid rgba(11, 30, 63, 0.25);
    padding: 0.7rem 1.25rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: var(--color-navy);
}

.rental-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.rental-stat-card {
    background: #fff;
    border: 1px solid rgba(11, 30, 63, 0.1);
    border-radius: 6px;
    padding: 1.15rem;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-green { color: #16a34a; }
.stat-orange { color: #d97706; }
.stat-red { color: #dc2626; }

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.portal-empty-state {
    background: #fff;
    border: 1px dashed rgba(11, 30, 63, 0.2);
    border-radius: 8px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.portal-empty-state i {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.portal-empty-state h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}

.portal-empty-state p {
    margin: 0 auto 1.5rem;
    max-width: 420px;
}

.rental-admin-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    box-sizing: border-box;
}

.rental-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rental-admin-card {
    background: #fff;
    border: 1px solid rgba(11, 30, 63, 0.12);
    border-radius: 8px;
    padding: 1.15rem 1.35rem;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.rental-admin-img-wrap {
    position: relative;
    height: 105px;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
}

.rental-admin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rental-admin-no-img {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.rental-status-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.status-available { background: #15803d; }
.status-reserved { background: #d97706; }
.status-rented { background: #64748b; }

.rental-admin-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rental-admin-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.rental-admin-title-row h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 0;
    color: var(--color-navy);
}

.rental-admin-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-navy);
}

.rental-admin-price small {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.rental-admin-address {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.rental-admin-specs {
    display: flex;
    gap: 0.9rem;
    font-size: 0.82rem;
    color: #334155;
    font-weight: 600;
}

.rental-admin-specs i {
    color: var(--color-gold);
}

.rental-admin-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.rental-tag {
    background: #f1f5f9;
    padding: 0.18rem 0.45rem;
    border-radius: 3px;
    font-size: 0.72rem;
    color: #475569;
}

.rental-admin-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Rental Form & Checkboxes --- */
.rental-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.col-span-2 {
    grid-column: 1 / -1;
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--color-gold);
    margin-top: 0.75rem;
}

.features-fieldset {
    border: 1px solid rgba(11, 30, 63, 0.15);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
}

.features-fieldset legend {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-navy);
    padding: 0 0.5rem;
}

.features-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
}

.checkbox-pill {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    color: #334155 !important;
    cursor: pointer;
    background: #f8fafc;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(11, 30, 63, 0.1);
    border-radius: 4px;
    transition: background 0.15s ease;
}

.checkbox-pill:hover {
    background: #f1f5f9;
}

.checkbox-pill input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
}

.checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    cursor: pointer;
    background: #fdf8eb;
    border: 1px solid var(--color-gold);
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(11, 30, 63, 0.1);
}

.current-image-preview {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(11, 30, 63, 0.1);
}

.current-image-preview p {
    margin: 0 0 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-navy);
}

/* --- Responsive for Funda Cards & Filter Bar --- */
@media (max-width: 900px) {
    .funda-filter-form {
        grid-template-columns: 1fr 1fr;
    }
    .filter-search,
    .filter-buttons {
        grid-column: 1 / -1;
    }
    .funda-card {
        grid-template-columns: 1fr;
    }
    .funda-card-media {
        height: 240px;
    }
    .rental-admin-card {
        grid-template-columns: 1fr;
    }
    .rental-admin-img-wrap {
        height: 180px;
    }
    .rental-admin-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    .funda-filter-form {
        grid-template-columns: 1fr;
    }
    .funda-specs-row {
        gap: 0.4rem 0.85rem;
    }
    .modal-header-row {
        flex-direction: column;
    }
    .modal-price-box {
        text-align: left;
        width: 100%;
    }
    .modal-property-content {
        padding: 1.25rem 1.25rem;
    }
}
