/* ========================================
   NAH Rental Homes - Brand Stylesheet
   Version: dev-0.1.0
   Based on NAH Management brand guidelines
   ======================================== */

/* ----------------------------------------
   CSS Custom Properties (Light Mode Default)
   ---------------------------------------- */
:root {
    /* Brand Colors - Same as NAH Management */
    --color-gold: #B8956B;
    --color-gold-hover: #A6845D;
    --color-slate: #1E293B;
    --color-champagne: #F5EFE6;
    --color-charcoal: #374151;
    --color-warm-gray: #9CA3AF;
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Light Mode Theme Colors */
    --bg-primary: var(--color-champagne);
    --bg-secondary: var(--color-white);
    --bg-dark: var(--color-slate);
    --text-primary: var(--color-slate);
    --text-secondary: var(--color-charcoal);
    --text-muted: var(--color-warm-gray);
    --text-on-dark: var(--color-white);
    --accent: var(--color-gold);
    --accent-hover: var(--color-gold-hover);
    --border-color: #E5E0D8;

    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Weights */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Header */
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.05);
    --shadow-md: 0 4px 6px rgba(30, 41, 59, 0.07);
    --shadow-lg: 0 10px 25px rgba(30, 41, 59, 0.1);
    --shadow-xl: 0 20px 40px rgba(30, 41, 59, 0.15);
}

/* ----------------------------------------
   Dark Mode
   ---------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: var(--color-slate);
        --bg-secondary: #263244;
        --bg-dark: #151D2B;
        --text-primary: var(--color-champagne);
        --text-secondary: #D1CCC3;
        --text-muted: var(--color-warm-gray);
        --text-on-dark: var(--color-champagne);
        --border-color: #3D4A5C;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
}

/* ----------------------------------------
   Reset & Base
   ---------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--weight-regular);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-bold);
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--weight-extrabold);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.125rem;
    font-weight: var(--weight-semibold);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

.text-gold {
    color: var(--color-gold);
}

.text-muted {
    color: var(--text-muted);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.5;
}

/* ----------------------------------------
   Container & Layout
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--text-on-dark);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.section-alt {
    background-color: var(--bg-secondary);
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-secondary);
    font-weight: var(--weight-semibold);
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 149, 107, 0.3);
}

.btn-secondary {
    background-color: var(--color-slate);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-charcoal);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
}

.btn-text:hover {
    color: var(--color-gold);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* ----------------------------------------
   Header
   ---------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-xl);
}

/* ----------------------------------------
   Logo System - NAH Rental Homes
   ---------------------------------------- */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-key-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
}

.logo-key {
    height: 28px;
    width: auto;
    cursor: pointer;
    transform-style: preserve-3d;
}

.logo-key:hover {
    animation: keyUnlock 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes keyUnlock {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(-180deg); }
    100% { transform: rotateX(-360deg); }
}

.logo-wordmark {
    font-family: var(--font-primary);
    font-weight: var(--weight-extrabold);
    font-size: 1.75rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    line-height: 1;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: var(--weight-medium);
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    margin-top: 2px;
    display: block;
    white-space: nowrap;
}

/* Light mode logo (default) */
.logo-light { display: block; }
.logo-dark { display: none; }

@media (prefers-color-scheme: dark) {
    .logo-wordmark { color: var(--color-gold); }
    .logo-text { color: var(--color-champagne); }
    .logo-light { display: none; }
    .logo-dark { display: block; }
}

/* ----------------------------------------
   Main Navigation
   ---------------------------------------- */
.main-nav {
    display: none;
    align-items: center;
    gap: var(--space-lg);
}

.main-nav a {
    font-weight: var(--weight-medium);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: none;
    align-items: center;
    gap: var(--space-md);
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-primary);
}

.mobile-toggle .icon-close { display: none; }
.site-header.menu-open .mobile-toggle .icon-menu { display: none; }
.site-header.menu-open .mobile-toggle .icon-close { display: block; }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    padding: var(--space-xl) var(--container-padding);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex: 1;
}

.mobile-nav a {
    font-size: 1.125rem;
    font-weight: var(--weight-medium);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a.active {
    color: var(--color-gold);
}

@media (min-width: 1024px) {
    .main-nav { display: flex; }
    .header-actions { display: flex; }
    .mobile-toggle { display: none; }
    .mobile-menu { display: none; }
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.site-footer {
    background-color: var(--color-slate);
    color: var(--color-champagne);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: rgba(245, 239, 230, 0.8);
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

.footer-location {
    color: var(--color-gold) !important;
    font-weight: var(--weight-medium);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    margin-bottom: var(--space-lg);
}

.footer-logo-mark {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-key {
    height: 28px;
    width: auto;
}

.footer-wordmark {
    font-family: var(--font-primary);
    font-weight: var(--weight-extrabold);
    font-size: 1.75rem;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    line-height: 1;
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-weight: var(--weight-medium);
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-warm-gray);
    margin-top: 2px;
}

.footer-links h4 {
    color: var(--color-champagne);
    font-size: 0.875rem;
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.footer-links a {
    display: block;
    color: rgba(245, 239, 230, 0.7);
    font-size: 0.9375rem;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(245, 239, 230, 0.1);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(245, 239, 230, 0.6);
    border: 1px solid rgba(245, 239, 230, 0.2);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.copyright {
    color: rgba(245, 239, 230, 0.5);
    font-size: 0.875rem;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-legal-links a {
    color: rgba(245, 239, 230, 0.6);
    font-size: 0.8125rem;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--color-gold);
}

.footer-legal-divider {
    color: rgba(245, 239, 230, 0.3);
    font-size: 0.8125rem;
}

.footer-parent-link {
    font-size: 0.75rem;
    color: rgba(245, 239, 230, 0.5);
    margin-top: var(--space-sm);
}

.footer-parent-link a {
    color: var(--color-gold);
    text-decoration: underline;
}

.footer-mls-disclaimer {
    width: 100%;
    text-align: center;
    font-size: 0.6875rem;
    color: rgba(245, 239, 230, 0.4);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(245, 239, 230, 0.1);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ----------------------------------------
   Hero Section - Search Focused
   ---------------------------------------- */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background-color: var(--color-slate);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 41, 59, 0.75) 0%,
        rgba(30, 41, 59, 0.85) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    padding: var(--space-2xl) 0;
}

.hero h1 {
    color: var(--color-champagne);
    margin-bottom: var(--space-md);
}

.hero h1 span {
    color: var(--color-gold);
}

.hero .lead {
    color: rgba(245, 239, 230, 0.9);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------
   Search Box
   ---------------------------------------- */
.search-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.search-field label {
    font-size: 0.75rem;
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.search-field select,
.search-field input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 107, 0.15);
}

.search-submit {
    display: flex;
    align-items: flex-end;
}

.search-submit .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
}

@media (min-width: 768px) {
    .search-form {
        grid-template-columns: 2fr 1fr 1fr auto;
        align-items: end;
    }

    .search-submit .btn {
        width: auto;
    }
}

/* ----------------------------------------
   Listings Grid
   ---------------------------------------- */
.listings-section {
    padding: var(--space-3xl) 0;
}

.listings-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.listings-header h2 {
    margin: 0;
}

.listings-count {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 640px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ----------------------------------------
   Listing Card
   ---------------------------------------- */
.listing-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.listing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.listing-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.listing-card:hover .listing-card-image img {
    transform: scale(1.05);
}

.listing-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.6875rem;
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.listing-badge-nah {
    background: var(--color-slate);
}

.listing-card-content {
    padding: var(--space-lg);
}

.listing-price {
    font-size: 1.5rem;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.listing-price span {
    font-size: 0.875rem;
    font-weight: var(--weight-regular);
    color: var(--text-muted);
}

.listing-address {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.listing-features {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.listing-feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.listing-feature svg {
    width: 16px;
    height: 16px;
    color: var(--color-gold);
}

/* Listing Branding Footer */
.listing-branding {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

/* ----------------------------------------
   Empty State
   ---------------------------------------- */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    color: var(--text-muted);
}

.empty-state h3 {
    margin-bottom: var(--space-md);
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto var(--space-xl);
}

/* ----------------------------------------
   Filters Sidebar
   ---------------------------------------- */
.filters-panel {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.filters-panel h3 {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: var(--space-lg);
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-xs) 0;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-gold);
}

/* ----------------------------------------
   Property Detail Page
   ---------------------------------------- */
.property-hero {
    padding-top: var(--header-height);
}

.property-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-sm);
    max-height: 500px;
}

.property-gallery-main {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    overflow: hidden;
}

.property-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-sm);
}

.property-gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-gallery-side img:first-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.property-gallery-side img:last-child {
    border-radius: 0 0 var(--radius-lg) 0;
}

@media (max-width: 768px) {
    .property-gallery {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .property-gallery-main {
        border-radius: var(--radius-lg);
        aspect-ratio: 16/10;
    }

    .property-gallery-side {
        display: none;
    }
}

.property-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
}

@media (min-width: 1024px) {
    .property-content {
        grid-template-columns: 2fr 1fr;
    }
}

.property-main h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-sm);
}

.property-location {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.property-location svg {
    width: 18px;
    height: 18px;
    color: var(--color-gold);
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-xl);
}

.property-feature {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.property-feature-value {
    font-size: 1.25rem;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
}

.property-feature-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.property-description {
    margin-bottom: var(--space-xl);
}

.property-description h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.property-amenities h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.amenity-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-gold);
}

/* Property Sidebar - Contact Card */
.property-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.contact-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.contact-card-price {
    font-size: 2rem;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.contact-card-price span {
    font-size: 1rem;
    font-weight: var(--weight-regular);
    color: var(--text-muted);
}

.contact-card-available {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #22C55E;
    font-size: 0.875rem;
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-lg);
}

.contact-card-available svg {
    width: 16px;
    height: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 107, 0.15);
}

/* ----------------------------------------
   Forms
   ---------------------------------------- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: var(--weight-medium);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.form-label .required {
    color: var(--color-gold);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 107, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----------------------------------------
   CTA Section
   ---------------------------------------- */
.cta-section {
    text-align: center;
    padding: var(--space-4xl) 0;
    background: var(--color-slate);
}

.cta-section h2 {
    color: var(--color-champagne);
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(245, 239, 230, 0.85);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .cta-actions {
        flex-direction: row;
    }
}

/* ----------------------------------------
   Loading States
   ---------------------------------------- */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----------------------------------------
   Utilities
   ---------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------
   Responsive Adjustments
   ---------------------------------------- */
@media (max-width: 767px) {
    .section { padding: var(--space-2xl) 0; }
    .hero { min-height: 60vh; }

    .logo-key { height: 24px; }
    .logo-wordmark { font-size: 1.5rem; }
    .logo-text { font-size: 0.4375rem; }
    .logo-mark { gap: 6px; }
}

@media (max-width: 480px) {
    .logo-key { height: 20px; }
    .logo-wordmark { font-size: 1.25rem; }
    .logo-text { font-size: 0.375rem; letter-spacing: 0.06em; }
    .logo-mark { gap: 5px; }
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu,
    .btn,
    .search-box {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
