/* ==========================================================================
   SITE 1: LUXURY ESTATES - MASTER STYLESHEET
   ========================================================================== */

:root {
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --primary-color: #0F172A;
    --accent-color: #25D366; /* WhatsApp Green */
    --border-color: #E2E8F0;
    --luxury-gold: #B4935A; /* Subtle luxury accent if needed */
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    line-height: 1.6;
    text-rendering: optimizeLegibility; 
    -webkit-font-smoothing: antialiased;
}

.container { 
    max-width: 1250px; 
    margin: 0 auto; 
    padding: 0 5%; 
}

.noselect { 
    user-select: none; 
    -webkit-user-select: none; 
}

img { 
    pointer-events: none; 
}

/* --- Disclaimer Banner --- */
.josef-preview-banner { 
    background: #000; 
    color: #fff; 
    text-align: center; 
    padding: 10px; 
    font-size: 13px; 
    position: relative; 
    z-index: 2000; 
}

/* --- Sculpted Floating Header --- */
.floating-header {
    position: fixed; 
    top: 35px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 90%; 
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 100px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); 
    z-index: 1000; 
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-size: 1.4rem; 
    font-weight: 800; 
    letter-spacing: -0.5px; 
    color: var(--text-main);
}

.logo span { 
    color: var(--text-muted); 
    font-weight: 400; 
}

.main-nav a { 
    text-decoration: none; 
    color: var(--text-main); 
    font-weight: 500; 
    margin: 0 1.2rem; 
    transition: color 0.3s; 
    font-size: 0.95rem;
}

.main-nav a:hover { 
    color: var(--text-muted); 
}

.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
}

.link-back { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 500; 
    transition: color 0.3s;
}

.link-back:hover {
    color: var(--text-main);
}

.btn-primary { 
    background-color: var(--primary-color); 
    color: white; 
    padding: 0.8rem 1.8rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.95rem;
    transition: all 0.3s ease; 
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover { 
    background-color: #1e293b; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Hero Section --- */
.hero-section { 
    position: relative; 
    height: 90vh; 
    min-height: 650px; 
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80'); 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8)); 
}

.hero-content { 
    position: relative; 
    z-index: 10; 
    text-align: center; 
    color: white; 
    width: 100%; 
    max-width: 900px; 
    padding: 0 20px; 
    margin-top: 50px; /* Offset for floating header */
}

.hero-title { 
    font-size: clamp(3rem, 6vw, 5rem); 
    font-weight: 800; 
    letter-spacing: -1.5px; 
    margin-bottom: 1rem; 
    line-height: 1.1; 
}

.hero-subtitle { 
    font-size: 1.25rem; 
    font-weight: 400; 
    opacity: 0.9; 
    margin-bottom: 3.5rem; 
}

/* --- Luxury Search Engine --- */
.search-bar { 
    background: white; 
    padding: 8px; 
    border-radius: 100px; 
    display: flex; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
}

.search-input-group { 
    flex: 1; 
    display: flex;
    align-items: center;
}

.search-bar input, .search-bar select { 
    width: 100%; 
    padding: 1.2rem 1.5rem; 
    border: none; 
    background: transparent; 
    font-size: 1rem; 
    color: var(--text-main); 
    font-family: inherit; 
    outline: none; 
}

.search-bar select { 
    cursor: pointer; 
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1em;
}

.border-left { 
    border-left: 1px solid var(--border-color); 
}

.btn-search { 
    background: var(--primary-color); 
    color: white; 
    border: none; 
    padding: 0 2.5rem; 
    border-radius: 50px; 
    font-weight: 600; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: background 0.3s; 
}

.btn-search:hover { 
    background: #1e293b; 
}

/* --- Property Grid --- */
.properties-section { 
    padding: 120px 0; 
    background: var(--bg-light);
}

.section-header { 
    margin-bottom: 4rem; 
    text-align: center; 
}

.section-header h2 { 
    font-size: 2.8rem; 
    font-weight: 800; 
    letter-spacing: -1px; 
    margin-bottom: 0.5rem; 
    color: var(--text-main);
}

.section-header p { 
    color: var(--text-muted); 
    font-size: 1.15rem; 
}

.property-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
    gap: 2.5rem; 
}

.property-card { 
    background: white; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
    border: 1px solid var(--border-color); 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease; 
}

.property-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}

.card-image { 
    height: 280px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
}

.card-badge { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: rgba(15, 23, 42, 0.9); 
    color: white; 
    padding: 6px 16px; 
    border-radius: 50px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    backdrop-filter: blur(4px);
}

.card-details { 
    padding: 2rem; 
}

.price { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--primary-color); 
    margin-bottom: 0.5rem; 
}

.price-night {
    font-size: 0.9rem; 
    font-weight: 500; 
    color: var(--text-muted);
}

.title { 
    font-size: 1.3rem; 
    font-weight: 700; 
    margin-bottom: 0.25rem; 
    color: var(--text-main);
}

.location { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    margin-bottom: 1.5rem; 
}

.features { 
    display: flex; 
    justify-content: space-between; 
    border-top: 1px solid var(--border-color); 
    padding-top: 1.5rem; 
}

.feature-item { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    font-weight: 500; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

/* --- Meet The Broker Section --- */
.broker-section {
    padding: 120px 0;
    background: white;
}

.broker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.broker-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.broker-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.broker-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -1px;
    line-height: 1.1;
}

.broker-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.broker-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-box strong {
    font-size: 2rem;
    display: block;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-box span {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- Booking / Contact Section --- */
.booking-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.booking-container h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.booking-container p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.luxury-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    text-align: left;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.luxury-form input, 
.luxury-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-light);
    transition: all 0.3s ease;
    outline: none;
}

.full-width-input {
    margin-bottom: 20px;
}

.luxury-form input:focus, 
.luxury-form textarea:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}

.luxury-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* --- Footer --- */
.clean-footer { 
    background: white; 
    border-top: 1px solid var(--border-color); 
    padding: 40px 0; 
    text-align: center; 
}

.legal-text { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    margin-top: 5px; 
}

/* --- WhatsApp Pulse --- */
.whatsapp-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background-color: var(--accent-color); 
    color: white; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); 
    z-index: 1000; 
    animation: pulse 2s infinite; 
    transition: transform 0.3s; 
}

.whatsapp-float:hover { 
    transform: scale(1.1); 
    animation: none; 
}

.whatsapp-float svg { 
    width: 35px; 
    height: 35px; 
}

@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } 
}

/* --- Animations --- */
.fade-in-up { 
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; 
}

@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(40px); } 
    to { opacity: 1; transform: translateY(0); } 
}


/* ==========================================================================
   MOBILE RESPONSIVENESS (FLAWLESS BREAKDOWNS)
   ========================================================================== */
@media (max-width: 992px) {
    .broker-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .broker-image-wrapper {
        order: -1; /* Keep image on top */
    }
}

@media (max-width: 768px) {
    /* Header Adjustments */
    .floating-header { 
        width: 95%; 
        top: 20px; 
        border-radius: 12px; 
        padding: 1rem; 
    }
    
    .main-nav, .hide-mobile { 
        display: none; 
    }
    
    /* Search Bar Adjustments */
    .search-bar { 
        flex-direction: column; 
        border-radius: 16px; 
        padding: 15px; 
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .border-left { 
        border-left: none; 
        border-top: 1px solid var(--border-color); 
    }
    
    .btn-search { 
        padding: 1.2rem; 
        border-radius: 8px; 
        width: 100%; 
        margin-top: 10px; 
    }
    
    /* Typography Scaling */
    .hero-title { 
        font-size: 2.8rem; 
    }
    
    .section-header h2, .broker-content h2, .booking-container h2 {
        font-size: 2.2rem;
    }
    
    /* Grids & Forms */
    .property-grid { 
        grid-template-columns: 1fr; 
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .luxury-form {
        padding: 1.5rem;
    }
    
    .form-row input {
        margin-bottom: 20px;
    }
    
    .broker-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}