/* ==========================================================================
   Base Structure & Layout (base.css)
   Contains fonts, grids, flexbox, spacing, positioning, and responsive rules.
   ========================================================================== */

/* Local Self-Hosted Fonts: Cormorant Garamond & Manrope (OFL Licensed) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-semibold.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-bold.woff2') format('woff2');
}

/* Resets & Overflow Protection */
*, *::before, *::after { 
    box-sizing: border-box; 
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul { 
    margin: 0; 
}
img, picture { 
    max-width: 100%; 
    height: auto;
    display: block; 
}
a { 
    text-decoration: none; 
}

/* Container */
.it-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Base Utility Classes */
.it-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}

/* Floating Theme Switcher Widget */
.it-theme-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}
.it-switcher-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
}
.it-switcher-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}
.it-switcher-btn.active, .it-switcher-btn:hover {
    background: #d4af37;
    color: #0b0f19;
    border-color: #d4af37;
    font-weight: 600;
}

/* =========================================
   1. Hero Section (Compact & Well-Aligned)
   ========================================= */
.it-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
}

.it-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.it-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 820px;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.it-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
}

/* Hero Stats Bar */
.it-hero-stats {
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: auto;
}

.it-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

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

/* =========================================
   2. About Section
   ========================================= */
.it-about {
    padding: 6rem 0;
    position: relative;
}

.it-about-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

.it-about-text {
    flex: 1 1 45%;
    min-width: 320px;
}

.it-about-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.it-about-visuals {
    flex: 1 1 45%;
    position: relative;
    min-height: 480px;
}

.it-about-img-main {
    position: absolute;
    width: 80%;
    height: 85%;
    top: 0;
    right: 0;
    background-size: cover;
    background-position: center;
}

.it-about-img-sec {
    position: absolute;
    width: 52%;
    height: 52%;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center;
}

.it-about-badge {
    position: absolute;
    bottom: -5%;
    right: 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    z-index: 5;
}

.it-about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
}

/* =========================================
   3. Common Section Headers
   ========================================= */
.it-section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.5rem auto;
}

/* =========================================
   4. Residences / Price List
   ========================================= */
.it-residences { 
    padding: 6rem 0; 
}
.it-residence-tabs { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
    margin-bottom: 2.5rem; 
    flex-wrap: wrap; 
}
.it-tab-btn { 
    background: none; 
    border: none; 
    padding: 0.6rem 1.25rem; 
    cursor: pointer; 
}

.it-price-list-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.it-price-table { 
    width: 100%; 
    min-width: 600px;
    border-collapse: collapse; 
    text-align: left; 
}
.it-price-table th, .it-price-table td { 
    padding: 1.5rem 1rem; 
    border-bottom: 1px solid rgba(0,0,0,0.1); 
}

.it-residence-cards { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem; 
}
.it-res-card { 
    display: flex; 
    flex-direction: column; 
}
.it-res-img { 
    width: 100%; 
    padding-top: 56.25%; /* 16:9 ratio to reduce blank space */
    background-size: cover; 
    background-position: center; 
}
.it-res-info { 
    padding: 1.75rem 0; 
}
.it-res-meta { 
    display: flex; 
    gap: 2rem; 
    margin: 1.25rem 0; 
}

/* =========================================
   5. Gallery
   ========================================= */
.it-gallery { 
    padding: 6rem 0; 
}
.it-gallery-filters { 
    display: flex; 
    justify-content: center; 
    gap: 0.75rem; 
    margin-bottom: 3rem; 
    flex-wrap: wrap; 
}
.it-gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem; 
}
.it-gallery-item { 
    position: relative; 
    overflow: hidden; 
}
.it-gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    aspect-ratio: 4/3; 
    transition: transform 0.5s ease;
}
.it-gallery-item:hover img {
    transform: scale(1.04);
}
.it-gallery-caption { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 1.5rem; 
}

/* =========================================
   6. Location
   ========================================= */
.it-location { 
    padding: 6rem 0; 
}
.it-location-layout { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 4rem; 
    align-items: center; 
}
.it-location-text { 
    flex: 1 1 40%; 
    min-width: 320px; 
}
.it-location-map { 
    flex: 1 1 50%; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}
.it-map-visual { 
    position: relative;
    width: 100%; 
    padding-top: 66%; 
    background-size: cover; 
    background-position: center; 
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* ==========================================================================
   Animated Location Marker (Radar Pulse Pin)
   ========================================================================== */
.it-location-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.it-location-pin__dot {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    background: #eab308; /* Luxury vibrant warm gold/yellow */
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.9), 0 2px 6px rgba(0,0,0,0.4);
    z-index: 2;
}

.it-location-pin__pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    margin-top: -22px;
    background: rgba(234, 179, 8, 0.45);
    border-radius: 50%;
    animation: it-radar-pulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    z-index: 1;
    pointer-events: none;
}

.it-location-pin__label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 4px;
    border: 1px solid rgba(234, 179, 8, 0.5);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.it-location-pin__label::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.88) transparent transparent;
}

@keyframes it-radar-pulse {
    0% {
        transform: scale(0.3);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.6);
        opacity: 0.15;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}
.it-location-list { 
    list-style: none; 
    padding: 0; 
    margin-top: 2rem; 
}
.it-location-list li { 
    display: flex; 
    justify-content: space-between; 
    padding: 1.1rem 0; 
    border-bottom: 1px solid rgba(0,0,0,0.1); 
}

/* =========================================
   7. Virtual Tour
   ========================================= */
.it-tour { 
    padding: 6rem 0; 
}
.it-tour-player { 
    position: relative; 
    width: 100%; 
    max-width: 900px; 
    margin: 0 auto; 
    padding-top: 56.25%; 
}
.it-tour-thumb { 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.it-play-btn { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    border: none; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2rem; 
}
.it-tour-filmstrip { 
    display: flex; 
    gap: 1.5rem; 
    max-width: 900px; 
    margin: 2rem auto 0; 
    overflow-x: auto; 
    padding-bottom: 1rem; 
}
.it-tour-strip-item { 
    flex: 0 0 220px; 
    cursor: pointer; 
}
.it-tour-strip-item img { 
    width: 100%; 
    aspect-ratio: 16/9; 
    object-fit: cover; 
    margin-bottom: 0.5rem; 
}

/* =========================================
   8. Highlights (Features)
   ========================================= */
.it-highlights { 
    padding: 6rem 0; 
}
.it-highlights-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem; 
}
.it-highlight-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}
.it-hl-icon { 
    font-size: 2.5rem; 
    display: block; 
    margin-bottom: 1.25rem; 
}

/* =========================================
   9. Amenities
   ========================================= */
.it-amenities { 
    padding: 6rem 0; 
}
.it-amenities-layout { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 3.5rem; 
}
.it-amenities-list { 
    flex: 1 1 52%; 
    min-width: 320px; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}
.it-amenity-cat { 
    margin-bottom: 1.5rem; 
}
.it-amenity-cat ul { 
    list-style: none; 
    padding: 0; 
    margin-top: 1rem;
}
.it-amenity-cat li { 
    padding: 0.75rem 0; 
    border-bottom: 1px solid rgba(0,0,0,0.08); 
    font-size: 0.95rem;
    line-height: 1.5;
}
.it-amenities-visual { 
    flex: 1 1 40%; 
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.it-amenity-img { 
    width: 100%; 
    padding-top: 60%; 
    background-size: cover; 
    background-position: center; 
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.it-amenity-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-radius: 3px;
}

/* =========================================
   10. Details, USP, Partners
   ========================================= */
.it-details, .it-usp, .it-partners { 
    padding: 6rem 0; 
}
.it-details-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
    border-top: 1px solid rgba(0,0,0,0.1); 
    padding-top: 2rem; 
}
.it-detail-item { 
    display: flex; 
    flex-direction: column; 
}
.it-usp-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem; 
}
.it-usp-img { 
    width: 100%; 
    padding-top: 66%; 
    background-size: cover; 
    background-position: center; 
    margin-bottom: 1.5rem; 
}
.it-partners-grid { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 3rem; 
    flex-wrap: wrap; 
}
.it-partner-logo { 
    opacity: 0.6; 
    transition: opacity 0.3s;
    max-width: 180px;
}
.it-partner-logo:hover {
    opacity: 1;
}
.it-partner-logo img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s;
}
.it-partner-logo:hover img {
    filter: grayscale(0%);
}

/* =========================================
   10.5 Floor Plans & Modal
   ========================================= */
.it-floorplans {
    padding: 6rem 0;
}
.it-fp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.it-fp-item {
    text-align: center;
}
.it-fp-title {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.it-fp-visual {
    position: relative;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}
.it-fp-img-blur {
    width: 100%;
    height: auto;
    filter: blur(6px);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}
.it-fp-visual:hover .it-fp-img-blur {
    filter: blur(4px);
    opacity: 0.8;
}
.it-fp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
}

.it-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 30, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.it-modal-overlay.active {
    display: flex;
}
.it-modal-content {
    background: var(--c-bg, var(--c-surface, #fff));
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    max-width: 800px;
    width: 100%;
    color: var(--c-text, #333);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    max-height: 95vh;
    overflow-y: auto;
}
.it-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
}
.it-modal-close:hover {
    opacity: 1;
}
.it-modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.it-modal-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.05);
}

/* =========================================
   11. Testimonials & FAQ
   ========================================= */
.it-testimonials, .it-faq { 
    padding: 6rem 0; 
}
.it-testimonials-slider { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2.5rem; 
}
.it-testimonial-card { 
    padding: 2.5rem; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.it-testi-stars {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}
.it-testi-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.it-testi-author {
    font-size: 0.9rem;
    font-weight: 600;
}
.it-testi-author span {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 0.25rem;
}

.it-faq-accordion { 
    max-width: 800px; 
    margin: 0 auto; 
}
.it-faq-item { 
    border-bottom: 1px solid rgba(0,0,0,0.1); 
}
.it-faq-btn { 
    width: 100%; 
    text-align: left; 
    background: none; 
    border: none; 
    padding: 1.5rem 0; 
    font-size: 1.1rem; 
    cursor: pointer; 
}
.it-faq-content { 
    padding-bottom: 1.5rem; 
    display: block; 
}

/* =========================================
   12. Contact & Blog
   ========================================= */
.it-contact, .it-blog { 
    padding: 6rem 0; 
}
.it-contact-layout { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 4rem; 
    align-items: center; 
}
.it-contact-text { 
    flex: 1 1 40%; 
    min-width: 320px; 
}
.it-contact-form { 
    flex: 1 1 50%; 
    min-width: 300px;
}
.it-dummy-form { 
    display: flex; 
    flex-direction: column; 
    gap: 1.25rem; 
}
.it-dummy-form input { 
    padding: 1.1rem; 
    border: 1px solid rgba(0,0,0,0.18); 
    width: 100%; 
    font-size: 0.95rem;
}

/* ==========================================================================
   SureForms Theme Harmonization (Modal & Inline Form)
   Seamlessly integrates SureForms controls with the active design skin.
   ========================================================================== */
.it-lead-modal__dialog,
.it-inline-cta-form {
    background-color: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 20px;
}
.it-lead-modal__dialog h1,
.it-lead-modal__dialog h2,
.it-lead-modal__dialog h3,
.it-lead-modal__dialog p,
.it-lead-modal__dialog .it-eyebrow,
.it-lead-modal__close,
.it-inline-cta-form h1,
.it-inline-cta-form h2,
.it-inline-cta-form h3,
.it-inline-cta-form p {
    color: #000000 !important;
}

.srfm-form-container,
.it-lead-modal__form,
.it-contact-form {
    font-family: inherit;
    color: #000000;
}

.srfm-form-container .srfm-form,
.it-inline-lead-form .srfm-form,
.it-contact-form .srfm-form {
    width: 100%;
}

/* Form block spacing */
.srfm-form .srfm-block-single {
    margin-bottom: 0.75rem;
}

/* Form labels */
.srfm-form label,
.srfm-form .srfm-label,
.srfm-form .srfm-radio-label,
.srfm-form .srfm-checkbox-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #333333 !important;
}

.srfm-form .srfm-required {
    color: #e11d48;
    margin-left: 2px;
}

/* Inputs, selects, and textareas */
.srfm-form input[type="text"],
.srfm-form input[type="email"],
.srfm-form input[type="tel"],
.srfm-form input[type="number"],
.srfm-form input[type="url"],
.srfm-form select,
.srfm-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 0;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.srfm-form select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem top 50% !important;
    background-size: 0.65rem auto !important;
}

/* Remove double borders injected by SureForms wrappers */
.srfm-form .srfm-input-container,
.srfm-form .srfm-select-container,
.srfm-form .srfm-textarea-container {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.srfm-form input:focus,
.srfm-form select:focus,
.srfm-form textarea:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2) !important;
}

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

/* Placeholder styling */
.srfm-form input::placeholder,
.srfm-form textarea::placeholder {
    color: #666666 !important;
    font-size: 0.9rem;
}

/* Submit Button & Actions matching theme aesthetic */
.srfm-form .srfm-submit-container,
.srfm-form .sureforms-actions,
.srfm-step-buttons,
.srfm-form .srfm-step-controls {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.srfm-form .srfm-step-controls .srfm-submit-container,
.srfm-step-buttons .srfm-submit-container {
    margin-top: 0;
}

.srfm-form .srfm-submit-button,
.srfm-form button[type="submit"],
.srfm-form button[type="button"],
.it-lead-modal .it-lead-continue,
.it-lead-modal .it-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--c-gold, linear-gradient(135deg, #c2a374 0%, #8a7148 100%));
    border: 1px solid var(--c-gold, #c2a374);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(194, 163, 116, 0.28);
    flex: 1;
    width: 100%;
}

.srfm-form button.srfm-btn-back,
.srfm-form button.srfm-btn-next,
.srfm-form button[type="button"]:not(.srfm-submit-button) {
    background: transparent !important;
    color: #1e293b !important;
    border: none !important;
    box-shadow: none !important;
    width: auto;
    flex: none;
    min-width: auto;
    padding: 0.5rem;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
}
.srfm-form button.srfm-btn-back:hover,
.srfm-form button.srfm-btn-next:hover,
.srfm-form button[type="button"]:not(.srfm-submit-button):hover {
    background: transparent !important;
    border: none !important;
    color: #000000 !important;
    transform: none;
    box-shadow: none !important;
    text-decoration: none;
}

.srfm-form .srfm-submit-button:hover,
.srfm-form button[type="submit"]:hover,
.it-lead-modal .it-lead-continue:hover {
    background: var(--c-gold-dark, #8a7148);
    border-color: var(--c-gold-dark, #8a7148);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(194, 163, 116, 0.4);
}

/* Success Confirmation message card */
.srfm-form-container .srfm-success-message,
.srfm-form-container .srfm-form-response {
    padding: 1.5rem 1.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
    text-align: center;
}

/* ── Two-Step Form: Submit Area & Expert Link ── */
.it-lead-submit-area {
    margin-top: 1rem;
    width: 100%;
}
.it-lead-submit-area .srfm-submit-container {
    margin-top: 0 !important;
    width: 100% !important;
    display: block !important;
}
.it-lead-submit-area .srfm-submit-button,
.it-lead-submit-area button[type="submit"] {
    width: 100% !important;
    display: block !important;
    flex: none !important;
}

.it-lead-expert-wrap {
    text-align: center;
    margin-top: 0.75rem;
    padding-bottom: 0.25rem;
}

.it-lead-expert-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}

.it-lead-expert-question {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}

.it-lead-expert-action {
    display: block;
    font-size: 0.85rem;
    color: #1e293b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.it-lead-expert-link:hover .it-lead-expert-action {
    color: #000;
    text-decoration: none;
}

.it-lead-back-link .it-lead-expert-action {
    font-size: 0.85rem;
    color: #64748b;
}
.it-lead-back-link:hover .it-lead-expert-action {
    color: #1e293b;
}

/* Step visibility */
.it-lead-step-hidden {
    display: none !important;
}

/* Field invalid highlight */
.it-lead-field-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px #dc2626 !important;
}

.it-blog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2.5rem; 
}
.it-blog-img { 
    width: 100%; 
    padding-top: 66%; 
    background-size: cover; 
    background-position: center; 
    margin-bottom: 1.25rem; 
}

/* =========================================
   13. Footer
   ========================================= */
.it-footer { 
    padding: 5rem 0 2.5rem; 
    background: #0f141c; 
    color: #fff; 
}
.it-footer-top { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 2.5rem; 
    margin-bottom: 4rem; 
}
.it-footer-links { 
    display: flex; 
    gap: 2rem; 
    flex-wrap: wrap;
}
.it-footer-links a { 
    color: #fff; 
}
.it-footer-bottom { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.12); 
    padding-top: 2rem; 
    font-size: 0.85rem; 
    opacity: 0.65; 
}

/* =========================================
   14. SEO Content Section
   ========================================= */
.it-seo-content { 
    padding: 6rem 0; 
}
.it-seo-layout { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 4rem; 
}
.it-seo-col { 
    flex: 1 1 45%; 
    min-width: 300px;
}
.it-seo-col p { 
    margin-bottom: 1.5rem; 
    line-height: 1.8; 
}

/* =========================================
   15. Mobile & Responsive Layout Rules
   ========================================= */
@media (max-width: 992px) {
    .it-hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    .it-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .it-about-layout, 
    .it-location-layout, 
    .it-contact-layout, 
    .it-seo-layout {
        gap: 2.5rem;
    }
    .it-about-visuals {
        min-height: 380px;
        width: 100%;
    }
    .it-theme-switcher {
        top: auto;
        bottom: 16px;
        right: 16px;
        left: 16px;
        justify-content: center;
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    .it-container {
        padding: 0 1.25rem;
    }
    .it-hero {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    .it-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .it-hero-actions .it-btn {
        width: 100%;
    }
    .it-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .it-about-visuals {
        min-height: 300px;
    }
    .it-about-img-sec {
        display: none;
    }
    .it-about-img-main {
        width: 100%;
        height: 100%;
        position: relative;
    }
    .it-about-badge {
        bottom: 10px;
        right: 10px;
    }
    .it-amenities-list {
        grid-template-columns: 1fr;
    }
    .it-footer-top {
        flex-direction: column;
        gap: 2rem;
    }
    .it-footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    .it-theme-switcher {
        flex-wrap: wrap;
        padding: 10px;
    }
    .it-switcher-btn {
        flex: 1 1 40%;
        text-align: center;
    }
    /* Mobile sticky actions clearance */
    body {
        padding-bottom: 72px;
    }
}

/* ==========================================================================
   Core Gutenberg Block Layout Adapters (.sec, .wrap, .head, .kick)
   Ensures sections rendered via Gutenberg match the theme container & spacing
   ========================================================================== */
.sec {
    padding: clamp(60px, 8vw, 100px) 0;
    position: relative;
    width: 100%;
}
.sec.cream {
    background-color: var(--c-bg-subtle, #f5efeb);
}
.sec.deep {
    background-color: var(--c-bg-card, #0f141d);
}
.wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.kick {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold, #c5a059);
    margin-bottom: 0.5rem;
}

/* =========================================
   Common Section Utilities
   ========================================= */
.it-section-header {
    margin-bottom: 3rem;
}
.it-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold, #c5a059);
    margin: 0 0 0.75rem;
}
.it-section-title {
    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}
.it-lead-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--c-text-muted, #6e6862);
    margin-top: 1rem;
    max-width: 600px;
}

/* =========================================
   Highlights / Why Section
   ========================================= */
.it-highlights {
    padding: 5rem 0;
}
.it-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}
.it-highlight-card {
    padding: 2rem;
    border: 1px solid var(--c-gold-light, rgba(197,160,89,.2));
    border-radius: 8px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.it-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.it-hl-title {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0 0 0.75rem;
}
.it-hl-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--c-text-muted, #6e6862);
    margin: 0;
}

/* =========================================
   Partners Section
   ========================================= */
.it-partners {
    padding: 5rem 0;
}
.it-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    align-items: stretch;
    text-align: center;
}
.it-partner-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 1px solid var(--c-gold-light, rgba(197,160,89,.15));
    border-radius: 8px;
    transition: transform .2s ease;
}
.it-partner-logo:hover {
    transform: translateY(-2px);
}
.it-partner-logo strong {
    display: block;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* =========================================
   Virtual Tour Section
   ========================================= */
.it-tour {
    padding: 5rem 0;
}
.it-tour-player {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.it-tour-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--c-bg-dark, #231c16) center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.it-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
    font-size: 1.5rem;
    transition: transform .25s ease, background .25s ease;
}
.it-play-btn:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,.25);
}

/* =========================================
   Testimonials Section
   ========================================= */
.it-testimonials {
    padding: 5rem 0;
}
.it-testimonial-card {
    background: var(--c-bg-alt, #f5efeb);
    border-radius: 12px;
    transition: transform .25s ease;
}
.it-testimonial-card:hover {
    transform: translateY(-4px);
}
.it-testi-stars {
    color: var(--c-gold, #c5a059);
    letter-spacing: 2px;
}
.it-testi-quote {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 1.5rem;
    border: 0;
    padding: 0;
}
.it-testi-author {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.it-testi-author span {
    display: block;
    font-weight: 400;
    color: var(--c-text-muted, #6e6862);
    margin-top: 2px;
}

/* =========================================
   Posts / Blog Section
   ========================================= */
.it-posts {
    padding: 5rem 0;
}
.it-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.it-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.it-post-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--c-bg-alt, #f5efeb);
    transition: transform .25s ease, box-shadow .25s ease;
}
.it-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.it-post-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--c-bg-dark, #231c16) center / cover no-repeat;
}
.it-post-thumb--empty {
    background: linear-gradient(135deg, var(--c-bg-dark, #231c16) 0%, var(--c-gold-dark, #8a7148) 100%);
}
.it-post-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.it-post-date {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text-muted, #6e6862);
    margin-bottom: 0.5rem;
}
.it-post-title {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}
.it-post-title a {
    color: inherit;
    text-decoration: none;
}
.it-post-title a:hover {
    color: var(--c-gold, #c5a059);
}

/* =========================================
   Contact Section
   ========================================= */
.it-contact {
    padding: 5rem 0;
}
.it-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 768px) {
    .it-contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
.it-contact-direct a {
    color: var(--c-gold, #c5a059);
    text-decoration: none;
}
.it-contact-direct a:hover {
    text-decoration: underline;
}

/* =========================================
   Responsive Section Adjustments
   ========================================= */
@media (max-width: 768px) {
    .it-highlights,
    .it-partners,
    .it-tour,
    .it-testimonials,
    .it-posts,
    .it-contact {
        padding: 3rem 0;
    }
    .it-posts-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   Project Presentation Layout Overrides
   ========================================= */
/* Hero Alignment */
.it-hero-align-left .it-hero {
    text-align: left !important;
}
.it-hero-align-left .it-hero-content {
    align-items: flex-start !important;
    margin: 0 !important;
}
.it-hero-align-left .it-hero-actions {
    justify-content: flex-start !important;
}

.it-hero-align-center .it-hero {
    text-align: center !important;
}
.it-hero-align-center .it-hero-content {
    align-items: center !important;
    margin: 0 auto !important;
}
.it-hero-align-center .it-hero-actions {
    justify-content: center !important;
}

.it-hero-align-bottom .it-hero {
    justify-content: flex-end !important;
    padding-bottom: 5rem !important;
    padding-top: 10rem !important;
}

/* Hero Height */
.it-hero-height-standard .it-hero {
    min-height: 75vh !important;
}
.it-hero-height-large .it-hero {
    min-height: 90vh !important;
}
.it-hero-height-viewport .it-hero {
    min-height: 100vh !important;
}

/* Navigation Presentation */
.it-nav-style-solid .site-header {
    background-color: var(--c-bg) !important;
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
}
.it-nav-style-glass .site-header {
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.it-nav-style-hidden .site-header {
    display: none !important;
}

/* Gallery Presentation */
.it-gallery-style-slider .it-gallery-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap !important;
    padding-bottom: 2rem;
    scrollbar-width: thin;
}
.it-gallery-style-slider .it-gallery-item {
    flex: 0 0 85% !important;
    scroll-snap-align: center;
}
.it-gallery-style-editorial .it-gallery-grid {
    display: block !important;
    column-count: 2;
    column-gap: 2rem;
}
.it-gallery-style-editorial .it-gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

/* Location Treatment */
.it-location-style-editorial .it-location-layout {
    flex-direction: column;
    align-items: stretch;
}
.it-location-style-editorial .it-location-text,
.it-location-style-minimal .it-location-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Floating CTA */
.it-floating-cta-disabled .it-floating-cta {
    display: none !important;
}

/* Residence Presentation */
.it-residence-style-visual .it-residence-tabs {
    display: none !important;
}
.it-residence-style-visual .it-residence-cards {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3.5rem;
}
.it-residence-style-minimal .it-residence-tabs {
    border-bottom: none;
    margin-bottom: 1.5rem;
}
.it-residence-style-minimal .it-res-card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Amenity Presentation */
.it-amenity-style-visual .it-amenities-list {
    display: none !important;
}
.it-amenity-style-visual .it-amenities-visual {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}
.it-amenity-style-visual .it-amenity-img {
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;
    padding-top: 40%;
}
.it-amenity-style-minimal .it-amenities-visual {
    display: none !important;
}
.it-amenity-style-minimal .it-amenities-list {
    flex: 1 1 100%;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* =========================================
   Admin UI Fixes (when theme CSS is loaded in block editor)
   ========================================= */
.wp-admin {
    --c-text: #3c434a !important;
    --c-text-muted: #646970 !important;
    --c-bg: #f0f0f1 !important;
}

.wp-admin .postbox,
.wp-admin .postbox h1,
.wp-admin .postbox h2,
.wp-admin .postbox h3,
.wp-admin .postbox h4,
.wp-admin .postbox label,
.wp-admin .postbox p,
.wp-admin .postbox div,
.wp-admin .postbox span,
.wp-admin #poststuff,
.wp-admin #poststuff h1,
.wp-admin #poststuff h2,
.wp-admin #poststuff h3,
.wp-admin #poststuff label,
.wp-admin #poststuff p {
    color: #3c434a !important;
}
