:root {
    /* Colors */
    --color-olive: #2E332F;
    --color-olive-light: #3E4440;
    --color-beige: #DCB464;
    --color-gold: #B4780A;
    --color-gold-light: #b88527;
    --color-white: #FFFFFF;
    --color-off-white: #F9F9F9;
    --color-text: #2E332F;
    --color-text-light: #F0F0F0;
    --color-text-muted: #666666;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Cormorant', serif;

    /* Spacing Scale (8px grid) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 120px;

    /* Layout */
    --container-width: 1400px;
    --section-padding: var(--space-5xl);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-off-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-olive);
    font-weight: 400;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--color-off-white);
}

.dark-section {
    background-color: var(--color-olive);
    color: var(--color-white);
}

.light {
    color: var(--color-white);
}

.light-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

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

.btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-olive);
}

.btn-privacy {
    background-color: var(--color-gold);
    color: var(--color-olive);
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
    /* Ensure transparent initially */
}

header.scrolled {
    background: rgba(46, 51, 47, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo-desktop {
    display: block;
    height: 75px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-mobile {
    display: none;
}

.desktop-nav ul {
    display: flex;
    gap: 40px;
}

.desktop-nav a {
    color: var(--color-white);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

.desktop-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    padding: 5px 10px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    transition: var(--transition);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

/* Hero Section */
#hero {
    position: relative;
    min-height: calc(100vh - 58px);
    height: calc(100dvh - 58px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind content, but inside #hero stacking context */
}

.parallax-img {
    width: 100%;
    height: 110%;
    /* Extra height for parallax */
    object-fit: cover;
    transform: translateY(0);
    will-change: transform;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(46, 51, 47, 0.3), rgba(46, 51, 47, 0.6));
    -webkit-backdrop-filter: blur(0.5px);
    /* Safari support */
    backdrop-filter: blur(0.5px);
}

.hero-content {
    max-width: 900px;
    color: var(--color-white);
    z-index: 1;
    padding: 20px;
    /* Removed box styling */
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    animation: heroFadeIn 1.5s ease-out forwards;
    /* Loading animation */
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 1);
    /* Stronger shadow for readability */
    opacity: 0;
    animation: slideUp 1s ease-out 0.5s forwards;
}

.hero-content h2 {
    font-family: var(--font-accent);
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 30px;
    font-style: italic;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 1);
    opacity: 0;
    animation: slideUp 1s ease-out 0.8s forwards;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 1);
    font-weight: 500;
    animation: slideUp 1s ease-out 1.1s forwards;
}

/* Keyframes */
@keyframes heroFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Sections General */
.section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: var(--space-3xl);
    letter-spacing: -0.02em;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--color-beige);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.stats-grid {
    display: flex;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-gold);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(300px, 360px));
        justify-content: center;
    }
}

.service-card {
    background: var(--color-white);
    padding: var(--space-2xl) var(--space-xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-gold);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* Properties */
/* Properties */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    /* Ensure equal height */
}

/* Mobile responsive for properties handled in media query section */

.property-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.property-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    /* Portrait */
    margin-bottom: 20px;
    border-radius: 4px;
    width: 100%;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Button Overlay - Restoring Visibility */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.property-card:hover .card-overlay {
    opacity: 1;
}

/* Ensure button is visible */
.card-overlay .btn {
    background: var(--color-white);
    color: var(--color-olive);
    border: none;
    transform: translateY(20px);
    transition: var(--transition);
}

.property-card:hover .card-overlay .btn {
    transform: translateY(0);
}

.property-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-header {
    margin-bottom: 10px;
}

.property-location {
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
}

.property-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.3;
}

.property-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--color-text);
    font-size: 0.9rem;
    opacity: 0.8;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

/* Why Phuket - Visual Refinement */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Wider cards */
    gap: 30px;
}

.why-item {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1) !important;
    /* Crystal Glass (Light transparent) FORCE */
    backdrop-filter: blur(12px) !important;
    /* Strong blur for text legibility */
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    /* Crisp white/glass border */
    border-radius: 8px;
    color: var(--color-white) !important;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    /* Slightly brighter on hover */
    border-color: var(--color-gold) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.why-item i {
    font-size: 2.5rem;
    color: var(--color-gold) !important;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.why-item h4 {
    font-size: 1.25rem;
    color: var(--color-white) !important;
    font-weight: 500;
    /* Slightly bolder for legibility */
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    /* Soft, diffuse shadow instead of hard black */
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    counter-reset: process-counter;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::before {
    counter-increment: process-counter;
    content: counter(process-counter);
    display: block;
    width: 40px;
    height: 40px;
    background: var(--color-gold);
    color: var(--color-olive);
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: var(--space-md);
    border-left: 3px solid transparent;
    padding-left: var(--space-md);
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-left-color: var(--color-gold);
}

.faq-question {
    padding: var(--space-lg) 0;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: var(--space-lg);
}

.faq-question h3 {
    flex: 1;
    line-height: 1.45;
}

/* Main Footer (Merged) */
.main-footer {
    background-color: var(--color-olive);
    color: var(--color-white);
    padding-top: 100px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

/* Left Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    /* Align left */
}

.footer-logo img {
    width: 220px;
    /* Increased size as requested */
    height: auto;
    margin-bottom: 30px;
    /* Removed border-radius for cleaner text logo look */
}

.footer-info {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    flex-direction: row;
    /* Ensure horizontal alignment */
    gap: 20px;
    /* Correct gap */
    margin-top: 20px;
}

/* ... (skip unchanged) ... */

/* Right Column (Form) */
.footer-form-wrapper {
    background: transparent;
    text-align: left;
    /* Align text left */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.footer-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.contact-form {
    max-width: 100%;
    /* Use full width of the column */
    margin: 0;
    /* Remove auto margin */
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    /* Rounded corners like other elements */
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-gold);
}

.contact-form textarea {
    resize: vertical;
}

.btn-block {
    width: 100%;
    display: block;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.02);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
        order: 2;
        /* Move to bottom */
    }

    .footer-info {
        font-size: 0.9rem;
        /* Smaller text for company info */
    }

    .footer-form-wrapper {
        text-align: center;
        order: 1;
        /* Move to top */
    }

    /* Increase Footer Title Size on Mobile */
    .footer-title {
        font-size: 2.5rem;
        /* Ensure it stays large */
    }

    .footer-subtitle {
        font-size: 1.3rem;
        /* Make subtitle larger */
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    /* Lifestyle Section Mobile Redesign - Full Screen */
    #lifestyle {
        padding: 0;
        /* Remove section padding */
    }

    #lifestyle .container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .lifestyle-grid {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        border-radius: 0;
        /* Remove radius for full screen */
        overflow: hidden;
        height: 100vh;
        /* Full viewport height */
    }

    .lifestyle-slider {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .lifestyle-slider img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        filter: blur(3px) brightness(0.6);
    }

    .lifestyle-content {
        position: relative;
        z-index: 1;
        padding: 20px;
        text-align: center;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .lifestyle-content h2,
    .lifestyle-content p {
        color: var(--color-white);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    /* Sticky Sections Effect (Stacking Cards) */
    section.section {
        position: sticky;
        top: 0;
        z-index: 1;
        background: var(--color-white);
        /* Ensure background is opaque */
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
        /* Shadow for depth */
    }

    section.dark-section {
        background: var(--color-olive);
    }

    section.bg-light {
        background: var(--color-off-white);
    }
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 1.8rem;
    transition: var(--transition);
    border: 1px solid var(--color-gold);
    box-shadow: 0 0 15px rgba(200, 170, 110, 0.2);
}

.social-icon:hover {
    background: var(--color-gold);
    color: var(--color-olive);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(200, 170, 110, 0.4);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-top: 20px;
}

.footer-credits {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

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

/* Animations */
/* ... (previous styles) ... */

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    /* Rounded corners for logo */
}

/* ... */



/* ... */

/* Animations - Improved for reliability */
.fade-up {
    opacity: 1;
    /* Failsafe: Visible by default */
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
    /* Optimize performance */
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--color-white);
    width: 90%;
    max-width: 1000px;
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-olive);
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--color-gold);
    color: var(--color-olive);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(200, 170, 110, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-contact:hover {
    transform: scale(1.1);
    background: var(--color-olive-light);
    color: var(--color-gold);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 105px;
    /* ← рядом с основной кнопкой */
    z-index: 999;

    background: #25D366;
    color: #ffffff;

    width: 60px;
    height: 60px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background: #1ebe5d;
}

@media (max-width: 1024px) {
    .floating-whatsapp {
        right: auto;
        left: 20px;
        bottom: 20px;
    }

    .floating-contact {
        right: 20px;
        bottom: 20px;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(200, 170, 110, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(200, 170, 110, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(200, 170, 110, 0);
    }
}

/* =========================================
   Mobile & Responsive Adjustments
   ========================================= */

/* Tablet & Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    /* Safe Header / Nav */
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions {
        gap: 10px;
    }

    .lang-btn {
        font-size: 0.8rem;
        padding: 5px;
    }

    /* Logo adjustment */
    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        height: 45px;
        width: auto;
    }

    /* Hero Typography */
    .hero-content {
        padding-top: 100px;
        /* Header space */
    }

    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3rem);
        line-height: 1.1;
        word-wrap: break-word;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Grids to Single Column */
    .about-grid,
    .services-grid,
    .lifestyle-grid,
    .why-grid,
    .footer-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Stats alignment */
    .stats-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Properties Grid - Critical Fix */
    .properties-grid {
        display: grid;
        grid-template-columns: 1fr;
        /* Force 1 column */
        gap: 40px;
        width: 100%;
    }

    .property-card {
        width: 100%;
    }

    .property-image {
        aspect-ratio: 4/3;
    }

    /* Phuket/Why Section Fix */
    #phuket-guide {
        display: block;
        padding: 60px 0;
        height: auto;
    }

    .phuket-header {
        margin-bottom: 30px;
    }

    /* Footer Order */
    .footer-grid {
        display: flex;
        flex-direction: column;
    }

    .footer-form-wrapper {
        order: 1;
    }

    .footer-brand {
        order: 2;
        text-align: left;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
        /* Safe padding */
    }

    /* REMOVED overflow-x: hidden to restore sticky effect */
    body {
        width: 100%;
        min-width: 320px;
    }

    /* Explicitly transparent header at top */
    header:not(.scrolled) {
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Ensure Property Buttons are visible on touch devices */
    .card-overlay {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.1);
    }

    .card-overlay .btn {
        transform: translateY(0) !important;
        background: var(--color-gold);
        /* Make button pop on mobile */
        color: var(--color-olive);
    }

    /* Ensure Header padding */
    .header-container {
        padding: 0 10px;
    }

    .logo-mobile {
        height: 40px;
    }
}

/* =========================================
   Phuket Guide Section (Merged)
   ========================================= */
#phuket-guide {
    position: relative;
    padding: 100px 0;
    min-height: 100vh;
    /* Ensure full screen feel */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.phuket-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.phuket-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 51, 47, 0.7);
    /* Dark Olive overlay */
    backdrop-filter: blur(2px);
}

.phuket-header {
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure grid items look good on dark-section */
.dark-section .why-item {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-olive);
    /* Restore text color */
}

/* =========================================
   Multi-Step Modal
   ========================================= */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}


.modal-container {
    background: var(--color-olive);
    /* Dark Brand Color */
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-gold);
    /* Premium Gold Border */
}

.modal-wrapper.active .modal-container {
    transform: translateY(0);
}

/* Modal Logo Alignment */
.modal-logo-container img {
    display: block;
    margin: 0 auto;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-gold);
    /* Gold Close Button */
    transition: color 0.2s;
    opacity: 0.8;
}

.close-modal-btn:hover {
    color: var(--color-white);
    opacity: 1;
}

/* Progress Bar */
.modal-header-progress {
    margin-bottom: 30px;
    padding-right: 30px;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    /* Dark mode track */
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-gold);
    width: 0%;
    transition: width 0.3s ease;
}

/* Content */
.modal-question {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--color-white);
    /* White Text */
    text-align: center;
    /* Center question */
}


.modal-content-area {
    margin-bottom: 20px;
    text-align: center;
    /* Center all content */
}

/* Explicit Label Styling for Dark Mode */
.modal-content-area label {
    display: block;
    color: var(--color-white);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 500;
}

.modal-error {
    color: var(--color-red);
    font-size: 0.9rem;
    height: 20px;
    margin-bottom: 10px;
    text-align: center;
}


.privacy-notice {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

.privacy-notice a {
    color: var(--color-gold-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-notice a:hover {
    color: var(--color-gold);
}

/* Inputs - Dark Mode Style */
.modal-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    /* Transparent/Dark Input */
    color: var(--color-white);
}

.modal-input:focus {
    border-color: var(--color-gold);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-option {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-gold);
}

.modal-option.selected {
    background: var(--color-gold);
    color: var(--color-olive);
    border-color: var(--color-gold);
    font-weight: 600;
}

.modal-option.selected {
    background: var(--color-gold);
    color: white;
    border-color: var(--color-gold);
}

/* Range Slider */
.range-container {
    text-align: center;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--color-white);
    /* Fix visibility on dark bg */
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer Buttons */
.modal-footer {
    display: flex;
    justify-content: center;
    /* Center buttons */
    gap: 20px;
    /* Space between buttons */
    margin-top: 30px;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 140px;
    /* Consistent button width */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Success Modal */
.success-icon {
    font-size: 4rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Menu (Standard Mobile Breakpoint) */
@media (max-width: 768px) {
    .header-actions .btn {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-olive);
        z-index: 1500;
        padding: 20px;
        transform: translateX(100%);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
    }

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

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
        color: var(--color-white);
    }

    .mobile-links li {
        margin-bottom: 20px;
    }

    .mobile-links a {
        font-size: 1.5rem;
        color: var(--color-white);
        font-family: var(--font-heading);
    }

    .close-menu {
        background: none;
        border: none;
        color: var(--color-white);
        font-size: 2rem;
    }
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
        /* Smaller title for mobile */
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Properties Grid Mobile */
    .properties-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 40px;
    }

    .property-image {
        aspect-ratio: 4/3;
        /* Standard ratio on mobile */
    }
}

/* FIX: Mobile Layout for Phuket Guide (290px - 768px) */
@media (max-width: 768px) {
    #phuket-guide {
        display: block;
        /* Remove flex centering */
        padding: 60px 0;
        /* Reduce padding */
        height: auto;
        min-height: auto;
        /* Allow natural height */
    }

    #phuket-guide .container {
        padding: 0 15px;
        /* Smaller padding for 290px screens */
        width: 100%;
        max-width: 100%;
    }

    .why-grid {
        grid-template-columns: 1fr;
        /* Force single column full width */
        gap: 20px;
    }

    .phuket-header {
        margin-bottom: 30px;
        text-align: center;
    }

    /* Ensure text doesn't wrap too early */
    .phuket-header h2 {
        font-size: 2rem;
        word-wrap: break-word;
    }
}

/* FIX: Disable sticky stacking on mobile to prevent overlap issues */
@media (max-width: 768px) {
    section.section {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        z-index: 1 !important;
        box-shadow: none !important;
    }

    /* Override standard header adjustment */
    .hero-content {
        padding-top: 100px;
    }
}

/* FIX: Ultra-Small Screen & Overflow Protection */
html,
body {
    overflow-x: hidden;
    /* Critical fix for white gap */
    width: 100%;
}

@media (max-width: 480px) {

    /* Container sizing for small screens */
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100vw;
    }

    /* Hero Typography Fixes */
    .hero-content {
        padding-top: 120px;
        /* Space for fixed header */
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
        /* Much smaller for 320px screens */
        word-wrap: break-word;
        /* Prevent overflow */
        margin-bottom: 15px;
    }

    .hero-content h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* Buttons stack */
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        /* Full width buttons */
        padding: 14px 20px;
    }
}

/* На странице политики хедер всегда как "scrolled" */
body.privacy-page header {
    background: rgba(46, 51, 47, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    padding: 15px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* --- Mobile: lift hero content a bit higher --- */
/* Mobile: поднять контент Hero выше */
@media (max-width: 768px) {
    #hero {
        align-items: flex-start !important;
        /* вертикаль */
        padding-top: 40px;
        /* отступ под фикс-хедер */
    }

    .hero-content {
        margin-top: 10px;
        /* можно 0–30px под вкус */
    }
}

/* ================================
   FIX: Properties cards classes mismatch
   script.js uses: .card-image/.card-content/.specs
   css was written for: .property-image/.property-content/.property-specs
   ================================ */

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    margin-bottom: 0;
}

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

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

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

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.card-content .location {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
}

.card-content .specs {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--color-text);
    font-size: 0.88rem;
    opacity: 0.75;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: var(--space-md);
}

.card-content .price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-gold);
    font-weight: 500;
}

/* Mobile: hover не работает — показываем кнопку сразу */
@media (max-width: 768px) {
    .card-overlay {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.15);
    }

    .card-overlay .btn {
        transform: translateY(0) !important;
    }
}

/* Property modal layout */
.prop-modal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.prop-main-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

.prop-modal-content p {
    opacity: 0.9;
    line-height: 1.7;
}

.prop-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.prop-thumb {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.prop-thumb img {
    width: 88px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.9;
    transition: var(--transition);
}

.prop-thumb img:hover {
    opacity: 1;
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 18px;
    }

    /* твоё 40px слишком жирно на мобиле */
    .prop-main-img {
        height: 240px;
    }

    .prop-thumb img {
        width: 74px;
        height: 54px;
    }
}

/* ===== Property modal (beautiful centered layout) ===== */

.prop-modal {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.prop-slider {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    margin-bottom: 18px;
}

.prop-slides {
    position: relative;
    width: 100%;
    height: 420px;
}

.prop-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.01);
    transition: opacity 250ms ease;
}

.prop-slide.is-active {
    opacity: 1;
}

.prop-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.prop-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
}

.prop-prev {
    left: 12px;
}

.prop-next {
    right: 12px;
}

.prop-modal-content {
    padding: 0 10px 10px;
}

.prop-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 8px 0 10px;
}

.prop-desc {
    max-width: 720px;
    margin: 0 auto 16px;
    opacity: 0.85;
    line-height: 1.7;
}

.prop-modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .prop-slides {
        height: 260px;
    }

    .prop-title {
        font-size: 1.55rem;
    }

    .prop-desc {
        font-size: 1rem;
    }

    .prop-arrow {
        width: 40px;
        height: 40px;
    }
}

/* ===== Rounded corners for property popup ===== */
#property-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    /* важно, чтобы фон и тени не вылезали */
}

@media (max-width: 768px) {
    #property-modal .modal-content {
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    #property-modal .close-modal {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 5;
    }
}

/* === Property modal: make image full-bleed (no white frame) === */
#property-modal .modal-content {
    padding: 0 !important;
    /* убираем белую рамку вокруг */
    overflow: hidden;
    /* чтобы картинка резалась по радиусу окна */
    border-radius: 20px;
    /* у тебя уже было — оставляем */
}

#property-modal #modal-body {
    padding: 0 !important;
    /* чтобы контент не создавал рамки сверху */
}

/* Слайдер/картинка — на всю ширину окна */
#property-modal .prop-slider {
    margin: 0 !important;
    border-radius: 0 !important;
    /* верх должен совпасть с окном, а не отдельной рамкой */
}

/* Контент ниже картинки — с нормальными отступами */
#property-modal .prop-modal-content {
    padding: 28px 38px 36px !important;
    text-align: center;
}

@media (max-width: 768px) {
    #property-modal .modal-content {
        border-radius: 16px;
    }

    #property-modal .prop-modal-content {
        padding: 22px 18px 28px !important;
    }
}

/* === FULL BLEED image inside property modal (no side gaps) === */
#property-modal .prop-modal {
    max-width: 100% !important;
    /* убираем ограничение ширины */
    margin: 0 !important;
    /* убираем центрирование с полями */
    width: 100% !important;
}

#property-modal .prop-slider {
    width: 100% !important;
    /* слайдер на всю ширину окна */
}

#property-modal .prop-slides {
    width: 100% !important;
}

#property-modal .modal-content {
    max-width: 1100px;
    /* можно оставить */
    padding: 0 !important;
}

#property-modal .modal-content>* {
    width: 100%;
}

/* === Close button as a round icon on overlay (outside the white modal) === */
#property-modal .close-modal {
    position: fixed !important;
    /* относительно экрана/overlay */
    top: 22px;
    right: 26px;
    z-index: 99999;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

/* hover как у стрелочек */
#property-modal .close-modal:hover {
    background: rgba(0, 0, 0, 0.55);
}

/* чтобы не было стандартных стилей кнопки */
#property-modal .close-modal {
    padding: 0 !important;
    line-height: 1;
}

/* увеличим сам X */
#property-modal .close-modal i {
    font-size: 20px;
}

/* Mobile: немного ближе к краю */
@media (max-width: 768px) {
    #property-modal .close-modal {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
    }
}


/* CENTER X*/
/* === Close button centered on top overlay === */
#property-modal .close-modal {
    position: fixed !important;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;

    width: 46px;
    height: 46px;
    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;

    display: flex !important;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: var(--transition);
}

#property-modal .close-modal:hover {
    background: rgba(0, 0, 0, 0.65);
}

/* иконка X */
#property-modal .close-modal i {
    font-size: 20px;
    line-height: 1;
}

/* Mobile */
@media (max-width: 768px) {
    #property-modal .close-modal {
        top: 14px;
        width: 42px;
        height: 42px;
    }
}

/* Success modal: make text visible on dark background */
#success-modal .modal-container {
    color: var(--color-white);
}

#success-modal #success-title {
    color: var(--color-white);
}

#success-modal #success-message {
    color: rgba(255, 255, 255, 0.85);
}

/* FIX: select options visibility on Windows */
#select-bed,
#select-bath {
    color: #fff;
    /* текст в самом select */
    background: rgba(0, 0, 0, 0.25);
}

#select-bed option,
#select-bath option {
    color: #111 !important;
    /* текст в выпадающем списке */
    background: #fff !important;
    /* фон выпадающего списка */
}

/* ===== OUR SERVICES ICONS ===== */

.service-card {
    position: relative;
    padding: 40px 32px 32px;
}

/* Контейнер иконки */
.service-card .icon-box {
    position: absolute;
    top: 24px;
    right: 24px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: rgba(201, 178, 124, 0.12);
    /* лёгкий золотой фон */
}

/* Сама иконка */
.service-card .icon-box i {
    font-size: 22px;
    color: var(--color-gold);
    /* тот же цвет, что звёзды */
    line-height: 1;
}

.service-card h3 {
    padding-right: 60px;
}

@media (max-width: 768px) {
    .service-card {
        padding: 32px 24px 24px;
    }

    .service-card .icon-box {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
    }

    .service-card .icon-box i {
        font-size: 18px;
    }

    .service-card h3 {
        padding-right: 50px;
    }
}

@media (max-width:1024px) {
    body {
        --force-mobile: 1 !important
    }
}

/* ================================================
   MOBILE: ABOUT SECTION REWORK (update 22.12.2025)
   ================================================ */
@media (max-width: 1024px) {

    /* ABOUT section */
    #about {
        position: relative !important;
        padding: 32px 20px !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    /* Заголовок */
    #about h2,
    #about h1 {
        color: #ffffff !important;
    }

    #about h2 {
        margin-bottom: 24px;
    }

    #about-stats {
        margin-bottom: 32px;
    }

    /* Основной текст */
    #about p {
        color: rgba(255, 255, 255, 0.95) !important;
    }

    /* скрываем верхние картинки внутри about */
    #about img {
        display: none !important;
    }

    /* затемнение+blur */
    #about::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(20, 20, 20, .55);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 0;
    }

    #about>* {
        position: relative;
        z-index: 1;
    }

    /* STATS: у тебя это #about-stats */
    #about-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        margin-top: 18px !important;
    }

    #about-stats .stat-item {
        background: rgba(255, 255, 255, .14) !important;
        border-radius: 12px !important;
        padding: 14px 10px !important;
        text-align: center !important;
        margin: 0 !important;
        /* убираем вертикальные отступы старых стилей */
    }

    #about-stats .stat-number {
        font-size: 22px !important;
        font-weight: 600 !important;
        color: #d2b37f !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    #about-stats .stat-label {
        font-size: 11px !important;
        margin-top: 6px !important;
        color: rgba(255, 255, 255, .85) !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 1024px) {

    /* ====== WHY (Почему Пхукет...) ====== */
    #why-container {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 0 14px !important;
    }

    #why-container .why-item {
        min-height: 92px;
        padding: 12px 10px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    #why-container .why-item i {
        font-size: 22px;
        margin-bottom: 8px;
    }

    #why-container .why-item h4 {
        font-size: 12px;
        line-height: 1.2;
        margin: 0;
    }
}

@media (max-width: 1024px) {

    /* ФОН СЕКЦИИ */
    #process {
        background: linear-gradient(180deg,
                #2f3430 0%,
                #262b27 100%);
    }

    /* ЗАГОЛОВОК */
    #process h2 {
        color: #ffffff !important;
    }

    /* СЕТКА 2x3 */
    #process-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* КАРТОЧКА */
    #process-container .process-step {
        position: relative;
        padding: 22px 16px;
        border-radius: 18px;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;

        background: rgba(201, 173, 107, 0.14);
        border: 1px solid rgba(201, 173, 107, 0.28);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    /* ❌ УБИРАЕМ ВТОРОЙ КРУГ (ПСЕВДОЭЛЕМЕНТ) */
    #process-container .process-step::before,
    #process-container .process-step::after {
        display: none !important;
        content: none !important;
    }

    /* ✅ ОСТАВЛЯЕМ ОДИН, НОРМАЛЬНЫЙ КРУГ */
    #process-container .step-number {
        width: 42px;
        height: 42px;
        border-radius: 50%;

        display: flex;
        align-items: center;
        justify-content: center;

        background: #c9ad6b;
        color: #1f2421;
        font-size: 16px;
        font-weight: 600;
    }

    /* ТЕКСТ */
    #process-container h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 500;
        color: #ffffff;
        text-align: center;
    }
}

@media (min-width: 1025px) {

    /* === СЕКЦИЯ === */
    #process {
        background: linear-gradient(180deg,
                #2f3430 0%,
                #262b27 100%) !important;
        padding: 120px 0;
    }

    /* === ЗАГОЛОВОК === */
    #process h2 {
        color: #fff !important;
        margin-bottom: 80px;
    }

    /* === КОНТЕЙНЕР ШАГОВ (6 В РЯД) === */
    #process-container.process-steps {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
        align-items: stretch;
    }

    /* === КАРТОЧКА ШАГА (GLASS) === */
    #process-container .process-step {
        background: rgba(201, 173, 107, 0.14) !important;
        border: 1px solid rgba(201, 173, 107, 0.25);
        border-radius: 26px;
        padding: 36px 16px 32px;
        text-align: center;

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        box-shadow:
            0 10px 30px rgba(0, 0, 0, .25);

        position: relative;
    }

    /* === УБИРАЕМ ЛЮБОЙ ДУБЛЬ ЦИФР === */
    #process-container .process-step::before,
    #process-container .process-step::after {
        display: none !important;
        content: none !important;
    }

    #process-container .process-step> :not(.step-number):not(h3) {
        display: none !important;
    }

    /* === КРУГ С ЦИФРОЙ === */
    #process-container .step-number {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: #c9ad6b;
        color: #2b302c;
        font-weight: 600;
        font-size: 16px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0 auto 18px;
    }

    /* === ТЕКСТ ШАГА === */
    #process-container h3 {
        color: #fff !important;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.35;
        margin: 0;
    }
}

/* ================================
   FOOTER TOP — FINAL FIX
================================ */

.main-footer {
    background: linear-gradient(180deg, #2f3430 0%, #262b27 100%);
}

/* Верх футера */
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: center;
    padding: 60px 0;
    gap: 40px;
}

/* Общие колонки */
.footer-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ЛОГО */
.footer-col-logo img {
    max-width: 260px;
    height: auto;
}

/* ЦЕНТР */
.footer-col-contacts {
    text-align: center;
}

.footer-col-contacts p {
    margin: 4px 0;
    color: #fff;
}

.footer-col-contacts .company-name {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Иконки */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}

.footer-socials .social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(201, 173, 107, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9ad6b;
    font-size: 20px;
}

/* CTA */
.footer-col-cta {
    text-align: right;
}

.footer-col-cta h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 8px;
}

.footer-col-cta p {
    color: #ccc;
    margin-bottom: 16px;
}

.footer-col-cta .btn {
    padding: 14px 36px;
    font-size: 16px;
}

/* ================================
   MOBILE
================================ */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 20px;
    }

    .footer-col-logo img {
        margin: 0 auto 20px;
    }

    .footer-col-cta {
        text-align: center;
        margin-top: 30px;
    }
}

@media (min-width: 1025px) {
    /* =========================
   FOOTER FINAL ALIGN FIX
========================= */

    /* Выравниваем всю верхнюю часть футера */
    .footer-top {
        align-items: center;
        /* вертикально */
    }

    /* Все колонки — центр по вертикали */
    .footer-col {
        justify-content: center;
    }

    /* ЛОГО — строго по центру своей колонки */
    .footer-col-logo {
        align-items: center;
    }

    /* Центр: контакты */
    .footer-col-contacts {
        justify-content: center;
        text-align: center;
    }

    /* Правая колонка: CTA */
    .footer-col-cta {
        justify-content: center;
        align-items: center;
        /* блок по центру */
        text-align: center;
    }

    /* Заголовок CTA — по центру */
    .footer-col-cta h2,
    .footer-col-cta p {
        text-align: center;
    }

    /* КНОПКА: текст слева, сама кнопка на месте */
    .footer-col-cta .btn {
        text-align: left;
        padding-left: 32px;
        padding-right: 32px;
    }

    /* На всякий — убираем любые авто-смещения */
    .footer-col * {
        margin-left: auto;
        margin-right: auto;
    }


}

/* ===== FOOTER ALIGN FIX (DESKTOP) ===== */
@media (min-width: 1025px) {

    /* сетка футера: левый край / центр / правый край */
    .main-footer .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        width: 100%;
    }

    /* ХАК: чтобы можно было разложить детей footer-brand по разным колонкам */
    .main-footer .footer-brand {
        display: contents !important;
    }

    /* ЛЕВО: логотип */
    .main-footer .footer-logo {
        grid-column: 1;
        justify-self: start;
        align-self: center;
        margin: 0 !important;
    }

    .main-footer .footer-logo img {
        width: auto;
        height: 90px;
        /* подгони при желании 80–110 */
        max-width: 260px;
        object-fit: contain;
        display: block;
    }

    /* ЦЕНТР: контакты */
    .main-footer .footer-info {
        grid-column: 2;
        justify-self: center;
        text-align: center;
        margin: 0 !important;
    }

    /* ЦЕНТР: соц-иконки под контактами */
    .main-footer .footer-socials {
        grid-column: 2;
        justify-self: center;
        display: flex;
        gap: 14px;
        margin-top: 10px;
    }

    /* ПРАВО: блок "Связаться" */
    .main-footer .footer-form-wrapper {
        grid-column: 3;
        justify-self: end;
        text-align: right;
        margin: 0 !important;
    }

    /* Заголовок/подзаголовок справа — чуть крупнее */
    .main-footer .footer-form-wrapper .footer-title {
        font-size: 30px;
        margin: 0 0 6px 0;
    }

    .main-footer .footer-form-wrapper .footer-subtitle {
        font-size: 16px;
        margin: 0 0 14px 0;
        opacity: .85;
    }

    /* Кнопка: прижать вправо, но текст внутри слева */
    .main-footer .footer-form-wrapper .btn {
        width: 320px;
        /* можно 280–360 */
        text-align: left !important;
        padding-left: 28px !important;
    }
}

/* ===== FOOTER LOGO GAP FIX ===== */
@media (min-width: 1025px) {

    /* убираем любые отступы у обёртки логотипа */
    .main-footer .footer-logo {
        padding: 0 !important;
        margin: 0 !important;
        line-height: 0 !important;
        display: flex;
        align-items: center;
    }

    /* сам логотип — блочный, без inline-gap */
    .main-footer .footer-logo img {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;

        max-width: 100%;
        height: 90px;
        /* под твой макет */
        width: auto;

        object-fit: contain;
    }

    /* колонка с логотипом */
    .footer-col-logo {
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }

    .footer-logo {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer-logo img {
        display: block !important;
        margin-left: 0 !important;
        margin-right: auto !important;

        max-width: none !important;
        width: 260px;
        /* фиксируем, как в DevTools */
        height: auto;

        object-fit: contain;
    }
}

.section-transition {
    position: relative;
}

.section-transition::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom,
            rgba(47, 52, 48, 0) 0%,
            #2f3430 100%);
    pointer-events: none;
}

.input-error {
    border: 2px solid #e53935 !important;
    background-color: rgba(229, 57, 53, 0.05);
}

.input-error::placeholder {
    color: #e53935;
}

.modal-error-text {
    color: #e53935;
    font-size: 14px;
    margin-top: 6px;
}

#about p,
#about .about-text {
    white-space: pre-line;
}

.hero-bg img.parallax-img {
    filter: blur(1.5px);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-bg img.parallax-img {
        filter: blur(2px);
    }
}

/* =========================================
   FIX: clear inline bg from #about on desktop
   (JS sets it on mobile via syncAboutBackground)
   ========================================= */
@media (min-width: 1025px) {
    #about {
        background-image: none !important;
        background: transparent !important;
    }
}

/* =========================
   AVITO 
========================= */

.avito-section,
.avito-section * {
    box-sizing: border-box;
}

.avito-section {
    width: 100%;
    background: var(--color-gold);
}

/* полностью сбиваем дефолтные стили ссылок */
.avito-section a,
.avito-section a:visited,
.avito-section a:hover,
.avito-section a:active {
    color: #1c1c1c !important;
    text-decoration: none !important;
}

/* кликается весь баннер */
.avito-link {
    display: block !important;
    width: 100% !important;
    background: var(--color-gold) !important;
    transition: background 0.25s ease !important;
}

.avito-link:hover {
    background: rgba(201, 178, 124, 0.92) !important;
}

/* главный ряд — flex и вертикальный центр */
.avito-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    min-height: 56px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px;
}

/* левый блок */
.avito-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px;
    min-width: 0;
}

.avito-logo {
    height: 26px;
    width: auto;
    display: block;
    flex: 0 0 auto;
}

.avito-text {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.2;
    color: #1c1c1c !important;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA справа */
.avito-cta {
    font-size: 1rem;
    font-weight: 700;
    color: #1c1c1c !important;
    opacity: 0.85;
    transition: opacity 0.25s ease !important;
    flex: 0 0 auto;
}

.avito-link:hover .avito-cta {
    opacity: 1;
}

/* mobile */
@media (max-width: 768px) {
    .avito-inner {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: unset;
        padding: 10px 16px;
        gap: 8px;
        text-align: center;
    }

    .avito-left {
        flex-direction: column !important;
        gap: 6px;
    }

    .avito-text {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        font-size: 0.98rem;
    }
}


/* ================================================================
   PHASE 3 — PREMIUM REDESIGN SYSTEM
   Inspired by: Savills / Rightmove / GB Real Estate
   
   Design principles:
   - Editorial luxury spacing and typography
   - Marketplace-level card clarity
   - Premium gold accents (intentional, not loud)
   - Clean contrast and readability
   - Grid discipline throughout
   
   Rules:
   - No ID/class renames — JS contracts preserved
   - CSS-only overrides — higher specificity via context selectors
   - All animations composited (transform/opacity)
   ================================================================ */


/* ── ENHANCED DESIGN TOKENS ── */
:root {
    /* Shadow Scale */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

    /* Typography Scale (desktop) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;
    --text-display: 4.5rem;

    /* Enhanced transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Premium colors */
    --color-surface: #FAFAF8;
    --color-border: rgba(0, 0, 0, 0.06);
    --color-gold-subtle: rgba(200, 170, 110, 0.12);
}


/* ── 1. HEADER / NAV — Premium Clarity ── */

header {
    padding: var(--space-lg) 0;
}

header.scrolled {
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    gap: var(--space-lg);
}

.logo img {
    height: 46px;
}

.desktop-nav ul {
    gap: var(--space-xl);
}

.desktop-nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 1.5px;
}

.desktop-nav a::after {
    height: 2px;
    bottom: -6px;
}

.lang-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 1px;
}

.header-actions {
    gap: var(--space-lg);
}

.header-actions .btn-sm {
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-size: var(--text-xs);
    letter-spacing: 1.5px;
}


/* ── 2. HERO — Editorial Luxury ── */

.hero-bg .overlay {
    background: linear-gradient(180deg,
            rgba(30, 35, 30, 0.25) 0%,
            rgba(30, 35, 30, 0.45) 40%,
            rgba(30, 35, 30, 0.70) 100%);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

.hero-content {
    max-width: 860px;
    padding: var(--space-2xl);
}

.hero-content h1 {
    font-size: var(--text-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: var(--text-2xl);
    font-weight: 300;
    letter-spacing: 0.01em;
    margin-bottom: var(--space-xl);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: var(--text-lg);
    font-weight: 400;
    max-width: 580px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-buttons {
    gap: var(--space-md);
}

.hero-buttons .btn {
    border-radius: var(--radius-sm);
    padding: 16px 36px;
    font-size: var(--text-sm);
    letter-spacing: 1.5px;
    font-weight: 600;
}

.hero-buttons .btn-privacy {
    box-shadow: 0 4px 20px rgba(200, 170, 110, 0.35);
}

.hero-buttons .btn-outline {
    border-width: 1.5px;
}


/* ── 3. ABOUT — Editorial Layout ── */

#about .about-grid {
    gap: var(--space-4xl);
}

#about .about-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

#about .about-text p {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

#about .section-title {
    font-size: var(--text-4xl);
    line-height: 1.15;
    margin-bottom: var(--space-xl);
}

.stats-grid {
    gap: var(--space-2xl);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 600;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--text-xs);
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}


/* ── 4. SERVICES — Savills-like Premium Tiles ── */

#services {
    background: var(--color-surface);
}

#services .section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4xl);
}

.services-grid {
    gap: var(--space-lg);
}

@media (min-width: 1025px) {
    .services-grid {
        gap: var(--space-lg);
    }
}

.service-card {
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
}

.service-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.service-card p {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Service icon box refinement */
.service-card .icon-box {
    background: var(--color-gold-subtle);
    border-radius: var(--radius-sm);
}


/* ── 5. PROPERTIES — Rightmove-like Marketplace Cards ── */

#properties .section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4xl);
}

.properties-grid {
    gap: var(--space-lg);
}

.property-card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

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

/* Card image area */
.card-image,
.property-image {
    border-radius: 0;
    aspect-ratio: 4/5;
}

/* Card overlay - premium glass feel */
.card-overlay {
    background: linear-gradient(180deg,
            transparent 40%,
            rgba(0, 0, 0, 0.5) 100%);
}

.card-overlay .btn {
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-md);
}

/* Card content - premium marketplace */
.card-content {
    padding: var(--space-lg);
}

.card-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.35;
}

.card-content .location {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.card-content .specs {
    gap: var(--space-xl);
    padding-top: var(--space-md);
    margin-bottom: var(--space-md);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
}

.card-content .specs span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.card-content .specs i {
    color: var(--color-gold);
    font-size: var(--text-lg);
}

.card-content .price {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
}


/* ── 6. PHUKET GUIDE + WHY — Premium Hierarchy ── */

#phuket-guide {
    padding: var(--space-5xl) 0;
}

#phuket-guide .section-title {
    font-size: var(--text-4xl);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.phuket-header .light-text {
    font-size: var(--text-lg);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.85;
}

.why-grid {
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
}

.why-item {
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-md) !important;
    min-height: 160px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15) !important;
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.2) !important;
}

.why-item i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.why-item h4 {
    font-size: var(--text-base);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.4;
}


/* ── 7. PROCESS — Premium Step Cards ── */

#process .section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4xl);
}


/* ── 8. FAQ — Luxury Minimal ── */

#faq {
    background: var(--color-surface);
}

#faq .section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4xl);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    border-left: 3px solid transparent;
    padding-left: var(--space-lg);
    margin-bottom: 0;
}

.faq-item+.faq-item {
    margin-top: 0;
}

.faq-item.active {
    border-left-color: var(--color-gold);
    background: rgba(200, 170, 110, 0.03);
}

.faq-question {
    padding: var(--space-lg) 0;
    font-size: var(--text-lg);
}

.faq-question h3 {
    font-size: var(--text-lg);
    font-weight: 500;
    line-height: 1.5;
}

.faq-answer {
    font-size: var(--text-base);
    line-height: 1.8;
    padding-left: var(--space-xs);
}


/* ── 9. AVITO BANNER — Premium Integration ── */

.avito-section {
    border-top: 1px solid rgba(200, 170, 110, 0.3);
}

.avito-inner {
    padding: var(--space-md) var(--space-lg);
}

.avito-text {
    font-size: var(--text-sm);
    font-weight: 500;
}

.avito-cta {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ── 10. FOOTER — Corporate Elegance ── */

.main-footer {
    padding-top: var(--space-4xl);
}

.footer-top {
    padding: var(--space-3xl) 0;
    gap: var(--space-xl);
}

.footer-col-contacts .company-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: var(--space-md);
}

.footer-col-contacts p {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col-cta h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-sm);
}

.footer-col-cta p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-lg);
}

.footer-col-cta .btn {
    border-radius: var(--radius-sm);
    padding: 14px 32px;
    font-size: var(--text-sm);
    letter-spacing: 1.5px;
}

.footer-socials {
    gap: var(--space-md);
}

.social-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    border: 1px solid rgba(200, 170, 110, 0.4);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
}

.social-icon:hover {
    background: var(--color-gold);
    color: var(--color-olive);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 170, 110, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-xl) 0;
}

.footer-links {
    gap: var(--space-xl);
    margin-bottom: var(--space-md);
}

.footer-links a {
    font-size: var(--text-xs);
    letter-spacing: 1.5px;
    transition: var(--transition-fast);
}

.copyright {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
}

.footer-credits {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.25);
    display: block;
    margin-top: var(--space-sm);
    transition: var(--transition-fast);
}

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


/* ── 11. BUTTONS — Premium System ── */

.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
}

.btn-primary {
    box-shadow: 0 2px 12px rgba(200, 170, 110, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200, 170, 110, 0.35);
}

.btn-outline:hover {
    transform: translateY(-2px);
}


/* ── 12. FLOATING BUTTONS — Refined ── */

.floating-contact,
.floating-whatsapp {
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.floating-contact:hover,
.floating-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}


/* ── 13. MODALS — Premium Overlay ── */

.modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-wrapper {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    border-radius: var(--radius-lg);
}


/* ── 14. SECTIONS — Refined Spacing ── */

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

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.text-center {
    text-align: center;
}


/* ── 15. PARALLAX IMAGE — Refined ── */

.hero-bg img.parallax-img {
    filter: blur(1px);
    transform: scale(1.03);
}


/* ================================================================
   PHASE 3 — RESPONSIVE OVERRIDES
   Maintains premium feel across all breakpoints
   ================================================================ */


/* ── TABLET (max-width: 1024px) ── */
@media (max-width: 1024px) {

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

    .section-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-2xl);
    }

    .hero-content h1 {
        font-size: var(--text-5xl);
    }

    .hero-content h2 {
        font-size: var(--text-xl);
    }

    .hero-content p {
        font-size: var(--text-base);
    }

    #about .about-grid {
        gap: var(--space-xl);
    }

    .services-grid {
        gap: var(--space-md);
    }

    .properties-grid {
        gap: var(--space-md);
    }

    .footer-top {
        padding: var(--space-2xl) var(--space-lg);
    }
}


/* ── MOBILE (max-width: 768px) ── */
@media (max-width: 768px) {

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

    .section-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-xl);
    }

    /* Hero mobile */
    .hero-content {
        padding: var(--space-lg);
    }

    .hero-content h1 {
        font-size: var(--text-4xl);
        letter-spacing: -0.02em;
    }

    .hero-content h2 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-lg);
    }

    .hero-content p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-xl);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 16px var(--space-lg);
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .service-card {
        min-height: unset;
        padding: var(--space-lg);
    }

    /* Properties mobile */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .card-image,
    .property-image {
        aspect-ratio: 4/3;
    }

    /* Why grid mobile */
    .why-item {
        padding: var(--space-lg) var(--space-md);
        min-height: unset;
    }

    .why-item i {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }

    .why-item h4 {
        font-size: var(--text-sm);
    }

    /* FAQ mobile */
    .faq-item {
        padding-left: var(--space-md);
    }

    .faq-question {
        padding: var(--space-md) 0;
        font-size: var(--text-base);
    }

    .faq-question h3 {
        font-size: var(--text-base);
    }

    /* Footer mobile */
    .footer-top {
        padding: var(--space-xl) var(--space-md);
    }

    .footer-col-cta h2 {
        font-size: var(--text-2xl);
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .footer-bottom {
        padding: var(--space-lg) 0;
    }

    .footer-links {
        gap: var(--space-md);
    }

    /* Avito mobile */
    .avito-inner {
        padding: var(--space-md);
    }

    /* Floating buttons */
    .floating-contact,
    .floating-whatsapp {
        width: 48px;
        height: 48px;
    }
}


/* ── SMALL MOBILE (max-width: 480px) ── */
@media (max-width: 480px) {

    .hero-content h1 {
        font-size: var(--text-3xl);
    }

    .hero-content h2 {
        font-size: var(--text-base);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .card-content .price {
        font-size: var(--text-xl);
    }

    .stat-number {
        font-size: var(--text-3xl);
    }
}

/* =========================================================
   NEW SECTIONS — added per spec
   ========================================================= */

/* ── Utility ── */
.mt-50 {
    margin-top: 50px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    margin-bottom: 40px;
    font-family: var(--font-body);
}

.btn-full {
    width: 100%;
}

/* ── Green CTA Button ── */
.btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2E7D32;
    color: #fff;
    border: 2px solid #2E7D32;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 12px;
}

.btn-green:hover {
    background: #1B5E20;
    border-color: #1B5E20;
}

/* ── Offer Strip (static) ── */
.offer-strip {
    background: var(--color-olive);
    position: relative;
    z-index: 2;
    padding: 16px 0;
}

.offer-strip-static {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.offer-strip-main {
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.offer-strip-sep {
    color: var(--color-gold);
    font-size: 0.5rem;
    opacity: 0.6;
}

.offer-strip-sub {
    color: var(--color-beige);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
}

.btn-offer-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-offer-cta:hover {
    background: var(--color-gold);
    color: var(--color-olive);
}

@media (max-width: 768px) {
    .offer-strip-static {
        gap: 12px;
    }

    .offer-strip-sep {
        display: none;
    }

    .offer-strip-main {
        font-size: 0.8rem;
    }

    .offer-strip-sub {
        display: none;
    }
}

/* ── Quick Form Section ── */
.quick-form-section {
    background: var(--color-olive);
    position: relative;
}

.quick-form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.quick-form-text h2 {
    font-size: 1.9rem;
    color: var(--color-off-white);
    margin-bottom: 14px;
}

.quick-form-text p {
    color: var(--color-beige);
    font-size: 1rem;
    opacity: 0.85;
}

.quick-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quick-input {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(200, 170, 110, 0.35);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.quick-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.quick-input:focus {
    border-color: var(--color-gold);
}

.qf-success-msg {
    color: var(--color-gold);
    font-size: 1rem;
    text-align: center;
    padding: 16px;
    border: 1px solid var(--color-gold);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .quick-form-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ── Team Section ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 48px;
}

.team-card {
    text-align: center;
    background: rgba(232, 216, 183, 0.16);
    border: 0.75px solid rgba(200, 170, 110, 0.22);
    border-radius: var(--radius-md);
    padding: 26px 18px 22px;
    transition: var(--transition);
    box-shadow: 0 2px 16px rgba(46, 51, 47, 0.055);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(46, 51, 47, 0.10);
    border-color: rgba(200, 170, 110, 0.44);
}

.team-photo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 14px;
    border: 2.5px solid var(--color-gold);
    display: block;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-olive);
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.25;
}

.team-role {
    font-size: 0.70rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-top: 32px;
    }

    .team-card {
        padding: 20px 15px 18px;
    }

    .team-photo {
        width: 88px;
        height: 88px;
        margin-bottom: 12px;
    }

    .team-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 420px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .team-photo {
        width: 80px;
        height: 80px;
    }
}

/* ── Quick Modal ── */
.quick-modal-container {
    max-width: 480px;
}

.quick-modal-project {
    background: rgba(200, 170, 110, 0.12);
    border-left: 3px solid var(--color-gold);
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--color-gold-light);
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
}

.quick-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

/* ── Properties Grid — add green CTA spacing ── */
.property-card .btn-green {
    margin-top: 10px;
}

/* ── View All Button (gold, premium) ── */
.btn-view-all {
    display: inline-block;
    padding: 14px 48px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    background: var(--color-gold) !important;
    color: var(--color-olive) !important;
    border-color: var(--color-gold) !important;
    font-weight: 700;
    transition: var(--transition);
}

.btn-view-all:hover {
    background: var(--color-olive) !important;
    color: var(--color-gold) !important;
    border-color: var(--color-olive) !important;
}

/* ── Team Bio ── */
.team-bio {
    font-size: 0.79rem;
    color: rgba(46, 51, 47, 0.66);
    line-height: 1.55;
    text-align: left;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 0.75px solid rgba(200, 170, 110, 0.24);
}

/* ── Footer Email Link ── */
.footer-email-link {
    color: var(--color-off-white);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.footer-email-link:hover {
    color: var(--color-gold);
}

/* ── Smart Form Bar (fixed bottom) ── */
.smart-form-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-olive);
    border-top: 1px solid rgba(200, 170, 110, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 12px 0;
}

.smart-form-bar.visible {
    transform: translateY(0);
}

.smart-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.smart-bar-tagline {
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.smart-bar-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.smart-bar-input {
    flex: 1;
    min-width: 140px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(200, 170, 110, 0.35);
    border-radius: 6px;
    color: var(--color-off-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.25s;
}

.smart-bar-input::placeholder {
    color: rgba(232, 216, 183, 0.5);
}

.smart-bar-input:focus {
    border-color: var(--color-gold);
}

.btn-smart-submit {
    padding: 9px 20px;
    background: var(--color-gold);
    color: var(--color-olive);
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-smart-submit:hover {
    opacity: 0.88;
}

.btn-smart-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.smart-bar-success {
    color: var(--color-gold);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

@media (max-width: 768px) {
    .smart-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .smart-bar-tagline {
        display: none;
    }

    .smart-bar-form {
        flex-direction: column;
    }

    .smart-bar-input,
    .btn-smart-submit {
        width: 100%;
    }
}

/* Lift floating buttons above smart bar when it's open */
body.smart-bar-open .floating-contact,
body.smart-bar-open .floating-whatsapp {
    bottom: 94px;
    transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Blog Page Styles ── */
.blog-page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px 60px;
}

.blog-page-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--color-olive);
    margin-bottom: 12px;
}

.blog-page-sub {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 48px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-size: 0.78rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-olive);
    margin-bottom: 10px;
    line-height: 1.35;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
}

.blog-card-read-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--color-gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.blog-card-read-more:hover {
    border-color: var(--color-gold);
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    color: var(--color-olive);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(46, 51, 47, 0.25);
    padding: 8px 18px;
    border-radius: 4px;
    transition: var(--transition);
}

.blog-back-btn:hover {
    background: var(--color-olive);
    color: #fff;
}

.blog-cta-strip {
    margin-top: 64px;
    background: var(--color-olive);
    border-radius: 8px;
    padding: 48px;
    text-align: center;
    color: #fff;
}

.blog-cta-strip h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.blog-cta-strip p {
    color: var(--color-beige);
    margin-bottom: 28px;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-page-title {
        font-size: 2rem;
    }

    .blog-cta-strip {
        padding: 32px 20px;
    }
}

/* ── Article Page ── */
.article-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 80px 24px 80px;
}

.article-date {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--color-olive);
    line-height: 1.2;
    margin-bottom: 32px;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-olive);
    margin: 36px 0 16px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul {
    margin: 0 0 20px 24px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-hero-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 36px;
    max-height: 400px;
    object-fit: cover;
}

.article-cta-box {
    margin-top: 48px;
    background: var(--color-olive);
    border-radius: 8px;
    padding: 36px;
    text-align: center;
}

.article-cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.article-cta-box p {
    color: var(--color-beige);
    margin-bottom: 24px;
}

@media (max-width: 560px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-wrap {
        padding: 60px 16px 60px;
    }
}

/* ── Properties Page ── */
.props-page-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px 80px;
}

.props-page-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--color-olive);
    text-align: center;
    margin-bottom: 12px;
}

.props-page-sub {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 48px;
    font-size: 1rem;
}

.props-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1024px) {
    .props-full-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .props-full-grid {
        grid-template-columns: 1fr;
    }

    .props-page-title {
        font-size: 1.9rem;
    }
}

/* =========================================================
   v302 ADDITIONS — premium cards, intl-tel-input, fixes
   ========================================================= */

/* Body padding for sticky smart bar */
/* body padding-bottom is set dynamically by JS only when smart bar is visible */

/* ── intl-tel-input dark theme ── */
.iti {
    width: 100%;
    display: block;
}

.iti__selected-flag {
    background: rgba(255, 255, 255, 0.06) !important;
    border-right: 1px solid rgba(200, 170, 110, 0.25);
    padding: 0 10px;
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
    background: rgba(255, 255, 255, 0.12) !important;
}

.iti__flag-container {
    z-index: 9999;
}

.iti__country-list {
    background: #1e2a1e !important;
    border: 1px solid rgba(200, 170, 110, 0.35) !important;
    color: #e8d8b7;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.iti__country:hover {
    background: rgba(200, 170, 110, 0.12) !important;
}

.iti__country.iti__highlight {
    background: rgba(200, 170, 110, 0.2) !important;
}

.iti__search-input {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(200, 170, 110, 0.25) !important;
    padding: 8px 10px;
}

.iti__country-name,
.iti__dial-code {
    color: #e8d8b7;
}

/* Override flag width for intl-tel-input v18 */
.iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.5.2/build/img/flags.webp");
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 2dppx) {
    .iti__flag {
        background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.5.2/build/img/flags@2x.webp");
    }
}

/* ── Premium Property Card (properties page) ── */
.prop-card-edit {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    background: #111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.prop-card-edit:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    transform: translateY(-6px);
}

.prop-card-edit-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.prop-card-edit:hover .prop-card-edit-img {
    transform: scale(1.06);
}

.prop-card-edit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 16, 10, 0.95) 0%, rgba(10, 16, 10, 0.6) 55%, transparent 100%);
    padding: 32px 22px 22px;
    transition: transform 0.3s ease;
}

.prop-card-edit:hover .prop-card-edit-overlay {
    transform: translateY(-4px);
}

.prop-card-edit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.prop-edit-tag {
    background: rgba(200, 170, 110, 0.18);
    border: 1px solid rgba(200, 170, 110, 0.45);
    color: var(--color-gold);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
}

.prop-card-edit-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.25;
}

.prop-card-edit-location {
    font-size: 0.78rem;
    color: rgba(232, 216, 183, 0.75);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prop-card-edit-specs {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: rgba(232, 216, 183, 0.8);
}

.prop-card-edit-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.prop-card-edit-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 14px;
}

.prop-card-edit-actions {
    display: flex;
    gap: 8px;
}

.prop-card-edit-actions .btn-outline {
    flex: 1;
    padding: 9px 10px;
    font-size: 0.75rem;
    text-align: center;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.prop-card-edit-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.prop-card-edit-actions .btn-green {
    flex: 1;
    margin-top: 0;
    padding: 9px 10px;
    font-size: 0.75rem;
}

.props-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .props-edit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .props-edit-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .prop-card-edit {
        aspect-ratio: 3/4;
    }
}

/* ── Premium Blog Card (editorial) ── */
.blog-card-edit {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.blog-card-edit:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-edit-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-edit-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.blog-card-edit:hover .blog-card-edit-img {
    transform: scale(1.05);
}

.blog-card-edit-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.blog-card-edit-date {
    font-size: 0.72rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-card-edit-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-olive);
    line-height: 1.35;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-card-edit-excerpt {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    flex: 1;
}

.blog-card-edit-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(46, 51, 47, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-edit-read {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.blog-card-edit:hover .blog-card-edit-read {
    gap: 8px;
}

.blog-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1024px) {
    .blog-edit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .blog-edit-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* ── Article page improvements ── */
.article-wrap {
    padding-top: 100px;
}

.article-hero-img {
    margin-bottom: 40px;
}

.article-body h2 {
    border-left: 3px solid var(--color-gold);
    padding-left: 16px;
}

.article-body ul {
    list-style: none;
    margin-left: 0;
}

.article-body li::before {
    content: '◆ ';
    color: var(--color-gold);
    font-size: 0.6em;
    vertical-align: middle;
}

/* ── Blog hero redesign ── */
.blog-hero-v2 {
    background: var(--color-olive);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.blog-hero-v2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--color-off-white);
    clip-path: ellipse(60% 100% at 50% 100%);
}

.blog-hero-v2 h1 {
    color: var(--color-off-white);
    font-size: 3rem;
    margin-bottom: 12px;
    position: relative;
}

.blog-hero-v2 p {
    color: var(--color-beige);
    font-size: 1rem;
    opacity: 0.85;
    position: relative;
}

/* ── Responsive: sticky form mobile compact ── */
@media (max-width: 768px) {
    .smart-form-bar {
        padding: 10px 0;
    }

    .smart-bar-inner {
        padding: 0 16px;
    }

    .smart-bar-input {
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .btn-smart-submit {
        padding: 9px 16px;
        font-size: 0.8rem;
    }
}

/* ── Make footer links wrap cleanly with more items ── */
.footer-links {
    flex-wrap: wrap;
    gap: 10px 20px;
}

/* ── Props hero text visibility ── */
.props-hero h1 {
    font-family: var(--font-heading);
}


/* ═══════════════════════════════════════════════════════════════
   v303  EDITORIAL PROPERTY GRID + MODAL IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── 12-column editorial masonry-style grid ── */
.props-editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    align-items: stretch;
}

/* Override aspect-ratio — min-height drives row heights instead */
.props-editorial-grid .prop-card-edit {
    aspect-ratio: auto !important;
    will-change: transform;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.props-editorial-grid .prop-card-edit:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18) !important;
}

.props-editorial-grid .prop-card-edit-img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.props-editorial-grid .prop-card-edit:hover .prop-card-edit-img {
    transform: scale(1.04);
    /* subtle, GPU-accelerated */
}

/* Lighter gradient — "15% bottom darkening" growing only near text */
.props-editorial-grid .prop-card-edit-overlay {
    background: linear-gradient(to top,
            rgba(5, 10, 5, 0.86) 0%,
            rgba(5, 10, 5, 0.50) 30%,
            rgba(5, 10, 5, 0.12) 55%,
            transparent 75%);
    padding: 28px 20px 20px;
}

/* ── Row 1: 3 cards — left, wide center, narrow right ── */
.props-editorial-grid .prop-card-edit:nth-child(1) {
    grid-column: 1 / 5;
    min-height: 460px;
}

.props-editorial-grid .prop-card-edit:nth-child(2) {
    grid-column: 5 / 10;
    min-height: 460px;
}

.props-editorial-grid .prop-card-edit:nth-child(3) {
    grid-column: 10 / 13;
    min-height: 460px;
}

/* ── Row 2: 2 large wide cards ── */
.props-editorial-grid .prop-card-edit:nth-child(4) {
    grid-column: 1 / 7;
    min-height: 520px;
}

.props-editorial-grid .prop-card-edit:nth-child(5) {
    grid-column: 7 / 13;
    min-height: 520px;
}

/* ── Row 3: narrow / wide / normal ── */
.props-editorial-grid .prop-card-edit:nth-child(6) {
    grid-column: 1 / 4;
    min-height: 420px;
}

.props-editorial-grid .prop-card-edit:nth-child(7) {
    grid-column: 4 / 9;
    min-height: 420px;
}

.props-editorial-grid .prop-card-edit:nth-child(8) {
    grid-column: 9 / 13;
    min-height: 420px;
}

/* Additional cards beyond 8 — default 4-col */
.props-editorial-grid .prop-card-edit:nth-child(n+9) {
    grid-column: span 4;
    min-height: 400px;
}

/* ── Tablet: 2-column ── */
@media (max-width: 1100px) {
    .props-editorial-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .props-editorial-grid .prop-card-edit {
        grid-column: span 1 !important;
        min-height: 340px !important;
    }
}

/* ── Mobile: single column ── */
@media (max-width: 680px) {
    .props-editorial-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .props-editorial-grid .prop-card-edit {
        grid-column: 1 !important;
        min-height: 280px !important;
    }
}

/* ── Property Modal Improvements ── */
.prop-modal-v2 {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 70vh;
    border-radius: 14px;
    overflow: hidden;
    background: #1a221a;
}

.prop-modal-v2-gallery {
    position: relative;
    background: #111;
    min-height: 400px;
}

.prop-modal-v2-info {
    padding: 36px 32px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.prop-modal-v2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.prop-modal-v2-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--color-off-white);
    line-height: 1.25;
    margin-bottom: 8px;
}

.prop-modal-v2-location {
    font-size: 0.85rem;
    color: var(--color-beige);
    opacity: 0.75;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prop-modal-v2-specs {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(200, 170, 110, 0.2);
    border-bottom: 1px solid rgba(200, 170, 110, 0.2);
}

.prop-modal-v2-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--color-beige);
    opacity: 0.8;
}

.prop-modal-v2-spec-val {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gold);
}

.prop-modal-v2-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: 600;
    margin: 14px 0;
}

.prop-modal-v2-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(232, 216, 183, 0.7);
    flex: 1;
    margin-bottom: 20px;
}

.prop-modal-v2-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.prop-modal-v2-actions .btn-primary {
    flex: 1;
    min-width: 140px;
}

.prop-modal-v2-actions .btn-outline {
    flex: 1;
    min-width: 140px;
    color: var(--color-beige);
    border-color: rgba(200, 170, 110, 0.4);
}

@media (max-width: 768px) {
    .prop-modal-v2 {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .prop-modal-v2-gallery {
        min-height: 260px;
    }

    .prop-modal-v2-info {
        padding: 24px 20px;
    }

    .prop-modal-v2-title {
        font-size: 1.35rem;
    }
}

/* Smart bar on non-index pages (minimal, same style) */
.page-smart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-olive);
    border-top: 1px solid rgba(200, 170, 110, 0.3);
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 12px 0;
}

.page-smart-bar.visible {
    transform: translateY(0);
}

.page-smart-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-smart-bar-tagline {
    color: var(--color-beige);
    font-size: 0.88rem;
    opacity: 0.85;
    white-space: nowrap;
}

.page-smart-bar form {
    display: flex;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.page-smart-bar .psb-input {
    flex: 1;
    min-width: 140px;
    padding: 9px 14px;
    border-radius: 6px;
    border: 1px solid rgba(200, 170, 110, 0.35);
    background: rgba(255, 255, 255, 0.07);
    color: var(--color-off-white);
    font-size: 0.85rem;
}

.page-smart-bar .psb-input::placeholder {
    color: rgba(232, 216, 183, 0.5);
}

.page-smart-bar .psb-btn {
    padding: 9px 20px;
    background: var(--color-gold);
    color: var(--color-olive);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.page-smart-bar .psb-btn:hover {
    opacity: 0.88;
}

.page-smart-bar .psb-success {
    color: var(--color-gold);
    font-size: 0.88rem;
    display: none;
}

@media (max-width: 680px) {
    .page-smart-bar-tagline {
        display: none;
    }

    .page-smart-bar form {
        flex-wrap: nowrap;
    }

    .page-smart-bar .psb-input {
        min-width: 100px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   v309 — PROPERTY GALLERY REDESIGN + MODAL FIXES
   ═══════════════════════════════════════════════════════════════ */

/* ── Full-width properties page ── */
.props-page-wrap {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* ── Editorial gallery: tight seamless wall ── */
.props-editorial-grid {
    gap: 4px;
}

.props-editorial-grid .prop-card-edit {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.props-editorial-grid .prop-card-edit:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ── Tags at top of card (absolute, outside overlay) ── */
.prop-card-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* ── Card overlay — lighter, no hover shift ── */
.prop-card-edit-overlay {
    background: linear-gradient(to top,
            rgba(5, 10, 5, 0.93) 0%,
            rgba(5, 10, 5, 0.62) 38%,
            rgba(5, 10, 5, 0.08) 62%,
            transparent 80%);
    padding: 26px 18px 18px;
    transition: none;
}

.prop-card-edit:hover .prop-card-edit-overlay {
    transform: none;
}

/* ── Remove tags from overlay (now in prop-card-top) ── */
.prop-card-edit-overlay .prop-card-edit-tags {
    display: none;
}

/* ── Actions: hidden until hover, smooth reveal ── */
.prop-card-edit-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    margin-top: 12px;
}

.prop-card-edit:hover .prop-card-edit-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Unified card action buttons — same geometry ── */
.prop-card-btn-outline,
.prop-card-btn-primary {
    flex: 1;
    padding: 0 12px;
    height: 38px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
    font-family: var(--font-body);
    border: 1.5px solid transparent;
}

.prop-card-btn-outline {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.prop-card-btn-outline:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.85);
}

.prop-card-btn-primary {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-olive);
}

.prop-card-btn-primary:hover {
    opacity: 0.88;
}

/* ── Modal specs: number + label on one horizontal line ── */
.prop-modal-v2-spec {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    color: var(--color-beige);
    opacity: 0.85;
}

.prop-modal-v2-spec span:last-child {
    display: flex;
    align-items: center;
    gap: 4px;
}

.prop-modal-v2-spec-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-gold);
    white-space: nowrap;
}

/* ── Homepage property grid: same editorial card style ── */
.properties-grid {
    gap: 16px;
}

.properties-grid .prop-card-edit {
    aspect-ratio: 4/5;
}

/* ── Tablet: 2-column, minimal gap ── */
@media (max-width: 1100px) {
    .props-editorial-grid {
        gap: 4px;
    }

    .props-editorial-grid .prop-card-edit {
        min-height: 320px !important;
    }
}

/* ── Mobile: single column ── */
@media (max-width: 680px) {
    .props-editorial-grid {
        gap: 0;
    }

    .props-editorial-grid .prop-card-edit {
        min-height: 260px !important;
        border-radius: 0 !important;
    }

    .prop-card-top {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .prop-card-edit-overlay {
        padding: 20px 14px 14px;
    }

    .prop-card-edit-title {
        font-size: 1.05rem;
    }

    .prop-modal-v2-specs {
        gap: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   v310 — FULL-BLEED GALLERY FIX + READABILITY
   ═══════════════════════════════════════════════════════════════ */

/* ── Ensure main has no constraints ── */
main {
    padding: 0;
    margin: 0;
}

/* ── Props page wrap: true full width ── */
.props-page-wrap {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Editorial grid: zero gap, full-bleed ── */
.props-editorial-grid {
    gap: 0 !important;
    width: 100%;
}

/* ── Tablet override: zero gap ── */
@media (max-width: 1100px) {
    .props-editorial-grid {
        gap: 0 !important;
    }

    .props-editorial-grid .prop-card-edit {
        min-height: 320px !important;
    }
}

/* ── Mobile override: zero gap ── */
@media (max-width: 680px) {
    .props-editorial-grid {
        gap: 0 !important;
    }

    .props-editorial-grid .prop-card-edit {
        min-height: 260px !important;
    }
}


.prop-card-top .prop-edit-tag {
    background: rgba(4, 8, 4, 0.6);
    border: 1px solid rgba(200, 170, 110, 0.5);
    backdrop-filter: blur(4px);
}

/* ── Stronger bottom gradient for readability ── */
/* ── Deep gradient — solid dark shelf at bottom, fade to transparent top ── */
.props-editorial-grid .prop-card-edit-overlay {
    background: linear-gradient(to top,
            rgba(2, 5, 2, 1.0) 0%,
            rgba(2, 5, 2, 0.97) 12%,
            rgba(2, 5, 2, 0.88) 26%,
            rgba(2, 5, 2, 0.65) 42%,
            rgba(2, 5, 2, 0.30) 58%,
            rgba(2, 5, 2, 0.08) 72%,
            transparent 84%);
    padding: 0 20px 20px;
}

/* ── Strong text-shadows — property title ── */
.prop-card-edit-title {
    text-shadow:
        0 2px 18px rgba(0, 0, 0, 0.95),
        0 1px 6px rgba(0, 0, 0, 0.85),
        0 0 3px rgba(0, 0, 0, 0.7);
}

/* ── Strong text-shadows — secondary info ── */
.prop-card-edit-location,
.prop-card-edit-specs,
.prop-card-edit-specs span,
.prop-card-edit-price {
    text-shadow:
        0 1px 10px rgba(0, 0, 0, 0.9),
        0 0 4px rgba(0, 0, 0, 0.7);
}

/* ── Tags: solid dark background, gold border, no bleed ── */
.prop-card-top .prop-edit-tag {
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(200, 170, 110, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-shadow: none;
    font-size: 0.65rem;
}

/* ── Homepage cards keep border-radius, use aspect-ratio ── */
.properties-grid .prop-card-edit {
    aspect-ratio: 4/5;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18) !important;
}

/* ── Homepage tags: always one row, shrink to fit all 3 ── */
.properties-grid .prop-card-top {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 4px;
}

.properties-grid .prop-card-top .prop-edit-tag {
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.properties-grid .prop-card-edit:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35) !important;
}

/* ── v312: lighter bottom gradient — image stays premium ── */
.props-editorial-grid .prop-card-edit-overlay {
    background: linear-gradient(to top,
            rgba(2, 5, 2, 0.72) 0%,
            rgba(2, 5, 2, 0.52) 20%,
            rgba(2, 5, 2, 0.24) 40%,
            rgba(2, 5, 2, 0.06) 58%,
            transparent 72%) !important;
}

/* ── v313: price prominence ── */
.prop-card-edit-price {
    font-size: 1.42rem;
    letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════════════
   v316 — PREMIUM GLASSMORPHISM TEXT READABILITY
   Replaces the simple gradient + heavy-shadow approach with a
   two-layer system that works on both bright and dark photos:

   Layer 1  .prop-card-edit::after
            Soft decorative gradient veil — natural fade from image
            into the glass panel zone. Purely visual, no text.

   Layer 2  .prop-card-edit-overlay
            Frosted glass panel (backdrop-filter: blur + desaturate
            + dim). Averages every pixel behind the text — white
            walls become blurred mid-grey, dark walls stay dark.
            Text is always readable, image always looks premium.

   Text-shadows become lighter: glass handles base contrast.
   ══════════════════════════════════════════════════════════════════ */

/* ─── Layer 1: Decorative gradient veil (above image, below glass) ─── */
.prop-card-edit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(4, 8, 4, 0.46) 0%,
            /* warm base at bottom */
            rgba(4, 8, 4, 0.18) 34%,
            /* soft mid-fade */
            rgba(4, 8, 4, 0.04) 54%,
            /* near-transparent */
            transparent 66%
            /* fully clear at top */
        );
    pointer-events: none;
    z-index: 1;
}

/* ─── Layer 2: Premium frosted glass — text zone ─── */
/* Overrides all previous gradient rules on overlay (v302 → v312) */
.prop-card-edit-overlay,
.props-editorial-grid .prop-card-edit-overlay {
    backdrop-filter: blur(20px) saturate(0.78) brightness(0.70) !important;
    -webkit-backdrop-filter: blur(20px) saturate(0.78) brightness(0.70) !important;
    /* Semi-transparent dark tint + glass = readable on any image */
    background: rgba(4, 8, 4, 0.44) !important;
    z-index: 2;
    padding: 20px 20px 20px !important;
    /* Subtle gold seam — luxury touch, separates glass from image */
    border-top: 1px solid rgba(200, 170, 110, 0.14) !important;
    transition: transform 0.3s ease;
}

/* ─── Refined text-shadows — lighter since glass handles base contrast ─── */
/* Heavy drop-shadows looked cheap against the glass; these add crisp depth */
.prop-card-edit-title {
    text-shadow:
        0 1px 8px rgba(0, 0, 0, 0.60),
        0 0 2px rgba(0, 0, 0, 0.30) !important;
}

.prop-card-edit-location,
.prop-card-edit-specs,
.prop-card-edit-specs span,
.prop-card-edit-price {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.50) !important;
}

/* ══════════════════════════════════════════════════════════════════
   v317 — LOCALIZED GLASS TEXT BLOCK
   Corrects v316: the full-width overlay must NOT carry the glass
   effect — that created a wide dark band across the card.
   Glass is applied ONLY to the compact inner .prop-card-text-block
   (title + location + specs + price). Buttons stay outside and bare.
   Image remains fully visible above the panel.
   ══════════════════════════════════════════════════════════════════ */

/* Overlay reverts to a transparent positioning shell */
.prop-card-edit-overlay,
.props-editorial-grid .prop-card-edit-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border-top: none !important;
    padding: 0 16px 16px !important;
    transition: transform 0.3s ease;
}

/* ─── Premium localized glass text panel ─── */
.prop-card-text-block {
    backdrop-filter: blur(18px) saturate(0.82) brightness(0.68);
    -webkit-backdrop-filter: blur(18px) saturate(0.82) brightness(0.68);
    background: rgba(4, 8, 4, 0.50);
    border-radius: 6px;
    /* exact match to button radius */
    border: 0.75px solid rgba(200, 170, 110, 0.30);
    /* subtle gold — same tone as tags */
    padding: 12px 14px 14px;
    margin-bottom: 10px;
}

/* Price inside block: remove bottom margin (block padding handles spacing) */
.prop-card-text-block .prop-card-edit-price {
    margin-bottom: 0;
}

/* Text-shadow: keep crisp depth, let glass handle the base contrast */
.prop-card-text-block .prop-card-edit-title {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.25) !important;
}

.prop-card-text-block .prop-card-edit-location,
.prop-card-text-block .prop-card-edit-specs,
.prop-card-text-block .prop-card-edit-specs span,
.prop-card-text-block .prop-card-edit-price {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45) !important;
}

/* Mobile/tablet: slightly tighter block */
@media (max-width: 768px) {

    .prop-card-edit-overlay,
    .props-editorial-grid .prop-card-edit-overlay {
        padding: 0 12px 12px !important;
    }

    .prop-card-text-block {
        padding: 10px 12px 12px;
        margin-bottom: 8px;
    }
}

/* ── v318: text block content-width + lighter glass density ──
   width: fit-content collapses the block to its text content.
   Lighter brightness + lower background alpha = ~0.67 visual density. */
.prop-card-text-block {
    width: fit-content !important;
    backdrop-filter: blur(18px) saturate(0.86) brightness(0.76) !important;
    -webkit-backdrop-filter: blur(18px) saturate(0.86) brightness(0.76) !important;
    background: rgba(4, 8, 4, 0.40) !important;
}

/* ── v314: mobile modal scroll fix + compact mobile tags ── */

/* Prevent scroll bleed into overlay on all browsers */
#property-modal {
    overscroll-behavior: contain;
}

/* Mobile: make modal content full-screen and scrollable */
@media (max-width: 768px) {
    #property-modal.active {
        align-items: flex-start !important;
    }

    #property-modal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100svh !important;
        max-height: 100vh !important;
        height: auto !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    /* info panel: don't create a nested scroll trap */
    .prop-modal-v2-info {
        overflow-y: visible !important;
        height: auto !important;
    }
}

/* Mobile card tags: smaller and compact */
@media (max-width: 768px) {
    .prop-card-top {
        gap: 3px;
    }

    .prop-card-top .prop-edit-tag {
        font-size: 0.58rem !important;
        padding: 2px 5px !important;
        letter-spacing: 0.04em;
    }
}

/* ── v315: mobile smart bars + modal corner fix ──────────────────
   Two smart bars:
     - .smart-form-bar   (homepage, #smart-form-bar)
     - .page-smart-bar   (properties/blog/article, #page-smart-bar)
   Key fixes:
     - font-size ≥ 16px on all inputs (prevents iOS Safari auto-zoom)
     - stack layout on mobile for page-smart-bar (overrides nowrap)
     - overflow-x + box-sizing to prevent horizontal bleed
     - safe-area-inset-bottom for notched iPhones
     - .prop-modal-v2 border-radius: 0 on mobile (full-screen premium)
   ────────────────────────────────────────────────────────────── */

/* Horizontal containment on the bar itself (all viewports) */
.smart-form-bar,
.page-smart-bar {
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ─── Homepage smart bar mobile ─── */
@media (max-width: 768px) {
    .smart-form-bar {
        padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .smart-bar-inner {
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 0 16px;
    }

    .smart-bar-form {
        width: 100%;
        box-sizing: border-box;
    }

    /* 16px minimum prevents iOS Safari auto-zoom on focus */
    .smart-bar-input {
        font-size: 16px !important;
        min-width: 0;
        box-sizing: border-box;
        width: 100%;
    }

    .btn-smart-submit {
        box-sizing: border-box;
        width: 100%;
    }
}

/* ─── Page smart bar mobile (properties / blog / article) ─── */
@media (max-width: 768px) {
    .page-smart-bar {
        padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .page-smart-bar-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 0 16px;
    }

    /* Override the 680px flex-wrap:nowrap that causes stretch/overflow */
    .page-smart-bar form {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .page-smart-bar .psb-input {
        font-size: 16px !important;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .page-smart-bar .psb-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ─── Tablet: page smart bar — horizontal but contained ─── */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-smart-bar-inner {
        max-width: 100%;
        padding: 0 20px;
        flex-wrap: wrap;
    }

    .page-smart-bar .psb-input {
        min-width: 100px;
        flex: 1;
    }

    .page-smart-bar form {
        flex-wrap: wrap;
    }
}

/* ─── Mobile property modal: no rounded corners ─── */
/* Outer .modal-content already 0 from v314; inner grid also needs 0 */
@media (max-width: 768px) {
    .prop-modal-v2 {
        border-radius: 0 !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   v320 — FIX: CSS Grid with JS-assigned grid-column spans
   Reverts broken v319 flex-column (collapsed to ~25% viewport width).
   JS emits flat cards with style="grid-column:span N" + class="peg-h-N".
   ══════════════════════════════════════════════════════════════════ */

/* Restore CSS Grid — flex-column approach collapsed width */
.props-editorial-grid {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    flex-direction: unset !important;
    gap: 0 !important;
    width: 100% !important;
}

/* peg-row wrappers become transparent to the grid layout */
.peg-row {
    display: contents;
}

/* Cards: base reset — min-height/grid-column set via inline style from JS */
.props-editorial-grid .prop-card-edit {
    flex: unset !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    aspect-ratio: auto !important;
}

/* Hover: image zoom only, no card lift */
.props-editorial-grid .prop-card-edit:hover {
    transform: none !important;
    box-shadow: none !important;
}

.props-editorial-grid .prop-card-edit:hover .prop-card-edit-img {
    transform: scale(1.04);
}

/* ─── Tablet (769–1100px): force 2-column layout ─── */
@media (max-width: 1100px) {
    .props-editorial-grid .prop-card-edit {
        grid-column: span 6 !important;
        min-height: min(38vw, 400px) !important;
    }
}

/* ─── Mobile (≤680px): single column ─── */
@media (max-width: 680px) {
    .props-editorial-grid {
        grid-template-columns: 1fr !important;
    }

    .props-editorial-grid .prop-card-edit {
        grid-column: span 1 !important;
        min-height: 72vw !important;
        max-height: 480px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   v325 — MOBILE SMART CTA: compact trigger + centered modal
   Applies ONLY at ≤768px.  Desktop keeps the existing smart bar.
   ══════════════════════════════════════════════════════════════════ */

/* ── Mobile trigger pill — hidden on desktop ── */
.sb-mobile-trigger {
    display: none;
}

/* ── Mobile smart modal — hidden by default on all viewports ── */
.sb-mobile-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.sb-mobile-modal.active {
    display: flex;
}

/* Backdrop */
.sbm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Modal card — matches .modal-container aesthetic */
.sbm-card {
    position: relative;
    background: var(--color-olive);
    width: 92vw;
    max-width: 420px;
    border-radius: 12px;
    padding: 28px 24px 24px;
    border: 1px solid rgba(200, 170, 110, 0.65);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    z-index: 1;
    opacity: 0;
    transform: scale(0.94) translateY(12px);
    transition: opacity 0.26s ease,
        transform 0.26s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sb-mobile-modal.active .sbm-card {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Close button */
.sbm-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    line-height: 1;
    transition: opacity 0.2s;
}

.sbm-close:hover {
    opacity: 0.65;
}

/* Tagline (small cap label above heading) */
.sbm-tagline {
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 6px;
    padding-right: 28px;
    opacity: 0.80;
}

/* Heading */
.sbm-heading {
    font-family: var(--font-heading);
    color: var(--color-off-white);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 20px;
}

/* Form stack */
.sbm-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Inputs */
.sbm-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(200, 170, 110, 0.35);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    /* ≥16px — prevents iOS Safari auto-zoom */
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.22s;
}

.sbm-input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.sbm-input:focus {
    border-color: var(--color-gold);
}

/* Submit button */
.sbm-submit {
    padding: 14px 24px;
    background: var(--color-gold);
    color: var(--color-olive);
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.sbm-submit:hover {
    background: var(--color-beige);
}

.sbm-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success message */
.sbm-success {
    display: block;
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 14px;
}

/* ── Mobile-only overrides ── */
@media (max-width: 768px) {

    /* Hide the full sticky form bar — replaced by compact trigger */
    #smart-form-bar,
    #page-smart-bar {
        display: none !important;
    }

    /* Compact pill CTA */
    .sb-mobile-trigger {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 50%;
        z-index: 1000;
        align-items: center;
        justify-content: center;
        padding: 0 32px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        min-height: 52px;
        /* Flush to screen bottom, pill top corners only */
        border-radius: 20px 20px 0 0;
        background: var(--color-gold);
        color: var(--color-olive);
        border: none;
        font-family: var(--font-body);
        font-size: 0.80rem;
        font-weight: 700;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        cursor: pointer;
        white-space: nowrap;
        box-shadow: 0 -3px 18px rgba(200, 170, 110, 0.30);
        /* Start off-screen, slide up when .visible added */
        transform: translateX(-50%) translateY(100%);
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            background 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    .sb-mobile-trigger.visible {
        transform: translateX(-50%) translateY(0);
    }

    .sb-mobile-trigger:active {
        background: var(--color-beige);
    }

    /* Lift floating buttons above trigger when it's visible */
    body.smart-bar-open .floating-contact,
    body.smart-bar-open .floating-whatsapp {
        bottom: 68px !important;
    }

    /* Footer padding for trigger height */
    body.smart-bar-open .main-footer {
        padding-bottom: 68px;
    }
}

/* ── Desktop smart bars: single centered row, no tagline ── */
@media (min-width: 769px) {

    .smart-bar-tagline,
    .page-smart-bar-tagline {
        display: none;
    }

    .smart-bar-inner {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .smart-bar-form {
        flex: unset;
        flex-wrap: nowrap;
        align-items: center;
    }

    .smart-bar-input {
        min-width: 200px;
    }

    .smart-form-bar .privacy-notice {
        flex-basis: auto !important;
        margin-top: 0 !important;
        white-space: nowrap;
        margin-left: 6px;
    }

    .page-smart-bar-inner {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .page-smart-bar form {
        flex: unset;
        flex-wrap: nowrap;
        align-items: center;
    }

    .page-smart-bar .psb-input {
        min-width: 200px;
    }

    .page-smart-bar .privacy-notice {
        flex-basis: auto !important;
        margin-top: 0 !important;
        white-space: nowrap;
        margin-left: 6px;
    }
}

/* ── Home page: header stays a solid color on desktop (no transparent state on load) ── */
@media (min-width: 1025px) {
    body.home-page header {
        background: rgba(46, 51, 47, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
}

/* ── Mobile header: new logo (T + wordmark) needs a touch more height than the old icon-only mark ── */
@media (max-width: 768px) {
    .logo-mobile {
        height: 52px;
    }
}

/* ── Mobile hero: tidy up spacing/sizing on the first screen ── */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 48px;
    }

    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.82rem;
    }
}
