/* --- Apple / Framer Style Luxury Real Estate CSS --- */
:root {
    --bg-dark: #0E0E10;
    --bg-card: #1F1F23;
    --text-light: #FFFFFF;
    --text-muted: #86868b;
    --accent-gold: #C9A961;
    --accent-bronze: #7A5C3E;
    --bg-ivory: #F4F0E8;
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-dark);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* --- Utilities --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section-padding {
    padding-top: 15vh;
    padding-bottom: 15vh;
}

.bg-ivory {
    background-color: var(--bg-ivory);
    color: #0E0E10;
}
.bg-ivory h1, .bg-ivory h2, .bg-ivory h3, .bg-ivory h4, .bg-ivory h5, .bg-ivory h6 {
    color: #0E0E10;
}
.bg-ivory p, .bg-ivory li {
    color: #1F1F23;
}
.bg-ivory .section-heading {
    color: var(--accent-gold);
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    display: flex;
    align-items: center;
    background: rgba(14, 14, 16, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: left center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-light);
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border: 1px solid var(--accent-gold);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--text-light);
    background-color: var(--text-light);
    color: var(--bg-dark);
}

/* --- Hero Section (Global) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* For parallax */
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(14,14,16,0.2) 0%, rgba(14,14,16,1) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 1000px;
    padding-top: 10vh;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-family: var(--font-body);
    font-weight: 300;
    max-width: 800px;
    margin-inline: auto;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* --- General Typography Styles --- */
.section-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.text-reveal {
    overflow: hidden;
    display: inline-block;
}

/* --- Specific Page Styles --- */

/* Home Page */
.intro-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.4;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    font-family: var(--font-display);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card h3 {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Image Grid Blocks */
.image-block {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 70vh;
    margin-bottom: 2rem;
}
.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-block .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 3rem;
}
.data-table th, .data-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.data-table th {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.data-table td {
    font-size: 1.2rem;
}

/* Contact Form */
.form-container {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.05);
}
.input-group {
    margin-bottom: 2.5rem;
    position: relative;
}
.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 0 0.5rem 0;
    color: var(--text-light);
    font-size: 1.1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s;
    outline: none;
    border-radius: 0;
}
.input-group select {
    appearance: none;
    cursor: pointer;
}
.input-group select option {
    background-color: var(--bg-card);
    color: var(--text-light);
}
.input-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    font-size: 1rem;
}
.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--accent-gold);
}
.input-group select ~ label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--accent-gold);
}
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: '\25BC';
    position: absolute;
    right: 0;
    top: 1.2rem;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .highlight-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Responsive overrides are in responsive.css */

/* --- Floating CTAs --- */
.floating-ctas { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 999; transition: opacity 0.3s ease; }
.fab-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--bg-dark); box-shadow: 0 10px 30px rgba(0,0,0,0.5); cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); border: none; text-decoration: none; }
.fab-whatsapp { background-color: #25D366; color: white; }
.fab-brochure { background-color: var(--accent-gold); }
.fab-btn:hover { transform: translateY(-5px) scale(1.05); color: inherit; }
/* --- Modal / Lightbox --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-container { background: var(--bg-card); padding: 3rem; border-radius: 24px; width: 90%; max-width: 500px; border: 1px solid rgba(255,255,255,0.05); position: relative; transform: translateY(50px); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.modal-close:hover { color: var(--text-light); }
.modal-container h3 { font-size: 1.8rem; color: var(--accent-gold); margin-bottom: 0.5rem; font-family: var(--font-display); }
.modal-container p { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }
/* text-grid layout is handled in responsive.css */

/* --- Image Lightbox --- */
.image-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; cursor: zoom-out; }
.image-lightbox.active { opacity: 1; pointer-events: auto; }
.image-lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; object-fit: contain; transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.image-lightbox.active img { transform: scale(1); }
.image-lightbox-close { position: absolute; top: 2rem; right: 2rem; color: white; font-size: 2rem; background: none; border: none; cursor: pointer; transition: color 0.3s; z-index: 2001; }
.image-lightbox-close:hover { color: var(--accent-gold); }

/* Chrome Autofill Override for Dark Theme */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1F1F23 inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- Amenities CSS --- */
.amenity-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: center;
}
.amenity-row:nth-child(even) {
    direction: rtl;
}
.amenity-text {
    direction: ltr;
}
.amenity-text h2 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.amenity-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.amenity-img {
    border-radius: 24px;
    overflow: hidden;
    height: 50vh;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.amenity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.amenity-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.amenity-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, border-color 0.3s;
}
.amenity-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}
.amenity-item i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.amenity-item h3 {
    font-size: 1.2rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .amenity-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr !important;
    }
    .amenity-img {
        height: 40vh;
    }
    .amenity-list-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Contact CSS --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info h2 {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.detail-item i {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-top: 5px;
}
.detail-item h4 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.detail-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* --- Location CSS --- */
.loc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}
.loc-list h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}
.loc-list ul {
    margin-bottom: 2.5rem;
}
.loc-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-light);
}
.loc-list li span {
    color: var(--text-muted);
    font-family: var(--font-display);
}
.map-container {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 1rem;
    height: 100%;
    min-height: 500px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- Gallery CSS --- */
.gallery-grid-masonry {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    grid-column: span 2;
}
.gallery-item.tall {
    grid-row: span 2;
}
.gallery-item.wide-half {
    grid-column: span 3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.gallery-overlay p {
    color: var(--text-light);
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}
.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .gallery-grid-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item, .gallery-item.wide-half {
        grid-column: span 1;
    }
}

/* All 768px / mobile overrides are in responsive.css */
