/* Local Font Faces */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/OpenSans-Light.ttf') format('truetype');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/OpenSans-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/OpenSans-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/PlayfairDisplay-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/PlayfairDisplay-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/PlayfairDisplay-Bold.ttf') format('truetype');
}

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

:root {
    --primary-color: #1a5f7a;
    --secondary-color: #57c5b6;
    --accent-color: #f0a500;
    --light-color: #fefbf3;
    --dark-color: #002b5b;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Beach Background */
.beach-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg,
        #87ceeb 0%,
        #87ceeb 40%,
        #f5deb3 40%,
        #f5deb3 100%);
}

.beach-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(244, 228, 188, 0.3) 30%,
        #f5deb3 50%);
}

/* Palm Trees */
.palm-tree {
    position: fixed;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.palm-tree.left {
    left: -50px;
}

.palm-tree.right {
    right: -50px;
}

.palm-trunk {
    width: 30px;
    height: 200px;
    background: linear-gradient(90deg, #8b4513, #a0522d, #8b4513);
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.palm-leaves {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
}

.palm-leaf {
    width: 120px;
    height: 30px;
    background: linear-gradient(180deg, #228b22, #32cd32);
    border-radius: 50% 50% 0 0;
    position: absolute;
    transform-origin: bottom center;
}

.palm-leaf:nth-child(1) { transform: rotate(-60deg) translateY(-20px); }
.palm-leaf:nth-child(2) { transform: rotate(-30deg) translateY(-10px); }
.palm-leaf:nth-child(3) { transform: rotate(0deg); }
.palm-leaf:nth-child(4) { transform: rotate(30deg) translateY(-10px); }
.palm-leaf:nth-child(5) { transform: rotate(60deg) translateY(-20px); }

/* Waves Animation */
.waves {
    position: fixed;
    bottom: 58%;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 0;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%2387ceeb' d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: wave 10s linear infinite;
    opacity: 0.6;
}

.wave:nth-child(2) {
    animation-delay: -5s;
    opacity: 0.4;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease, background 0.3s ease;
}

nav.scrolled {
    padding: 5px 50px;
    background: rgba(255, 255, 255, 0.98);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.08rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Language Toggle Button */
.lang-toggle {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Dropdown Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 80px 20px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

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

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 15px 10px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s, background 0.3s;
}

.mobile-menu a:hover {
    color: var(--secondary-color);
    background: rgba(87, 197, 182, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Main Content */
main {
    position: relative;
    z-index: 1;
    padding-bottom: 44px;
}

section {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
}

/* Rotating Banner */
.rotating-banner {
    background: var(--light-color);
    color: var(--dark-color);
    height: 44px;
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
}

nav.scrolled ~ .rotating-banner {
    top: 56px;
}

.rotating-banner .banner-text {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    padding: 0 20px;
    box-sizing: border-box;
    animation: bannerFadeIn 0.5s ease;
}

.rotating-banner .banner-text.active {
    display: block;
}

@keyframes bannerFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 120px;
    background: url('/assets/img/bg.jpeg') center center / cover no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    padding: 15px 40px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(240, 165, 0, 0.4);
}

/* Building Image Section */
.building-showcase {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin: 50px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Gallery Section Container */
.gallery-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Left side container for gallery + thumbnails */
.gallery-left {
    width: 50%;
    min-width: 50%;
    display: flex;
    flex-direction: column;
}

/* Gallery Carousel */
.gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 15;
    max-height: 900px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

/* Gallery Info Panel */
.gallery-info-panel {
    flex: 1;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(87, 197, 182, 0.2);
}

.gallery-info-panel .info-content {
    display: none;
}

.gallery-info-panel .info-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.gallery-info-panel p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.gallery-info-panel .info-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.gallery-info-panel .info-feature {
    background: var(--light-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 1px solid rgba(26, 95, 122, 0.1);
}

.gallery-info-panel .info-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 20px;
}

.gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-slide iframe,
.gallery-slide model-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-slide .slide-placeholder {
    color: white;
    text-align: center;
    padding: 20px;
}

.gallery-slide .slide-placeholder .icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.gallery-slide .slide-placeholder .label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.gallery-slide .slide-caption {
    display: none;
}

.gallery-slide .slide-caption h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.gallery-slide .slide-caption p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-color);
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

/* Gallery Dots - Hidden (using thumbnails instead) */
.gallery-dots {
    display: none;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.gallery-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    padding: 10px 0;
    justify-content: center;
}

.gallery-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.gallery-thumb:hover {
    background: #aaa;
    transform: scale(1.1);
}

.gallery-thumb.active {
    background: var(--secondary-color);
    transform: scale(1.15);
}

/* Media type indicators - Hidden */
.media-indicator {
    display: none;
}

/* Fullscreen button */
.gallery-fullscreen {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}

.gallery-fullscreen:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Amenities Section */
.amenities {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin: 50px auto;
}

.amenities h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.amenity-card {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(87, 197, 182, 0.2);
}

.amenity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.amenity-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.amenity-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Available Apartments Section */
.available-apartments {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin: 20px auto;
    padding-top: 10px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.available-apartments h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.available-apartments-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    max-width: 100%;
    overflow: hidden;
}

.building-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.building-image img {
    width: 100%;
    height: auto;
    display: block;
}

.apartments-selector {
    min-height: 400px;
    padding: 0;
}

.floor-plan-caption {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* Lower shimmer prompt on desktop only (when no floor is selected) */
@media (min-width: 768px) {
    .floor-plan-caption.shimmer {
        margin-top: 50px;
    }
}

/* Running gradient effect for prompt caption */
.floor-plan-caption.shimmer {
    background: linear-gradient(
        90deg,
        #333 0%,
        #333 40%,
        var(--primary-color, #1a5f7a) 50%,
        #333 60%,
        #333 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.floor-plan-hint {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 4px;
}

.floor-plan-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    background: transparent;
    transition: background-color 0.3s ease;
}

.floor-plan-wrapper.zoomed-view {
    background: rgba(0, 0, 0, 0.65);
}

.floor-plan-container {
    position: relative;
    transform-origin: 0 0;
    transition: transform 0.4s ease-out;
}

.floor-plan-container.zoomed {
    /* Transform will be set dynamically via JS */
}

.back-to-floor-btn {
    display: block;
    margin: 10px auto 0;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-to-floor-btn:hover {
    background: var(--dark-color);
    transform: scale(1.02);
}

.back-to-floor-btn:active {
    transform: scale(0.98);
}

.floor-plan-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

#floor-plan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.apartment-details {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.apartment-availability {
    margin: 0 0 8px 0;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.apartment-availability.available {
    background-color: #28a745;
    color: white;
}

.apartment-availability.not-available {
    background-color: #dc3545;
    color: white;
}

.apartment-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.apartment-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apartment-specs li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.apartment-specs li:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: var(--primary-color);
}

.available-apartments-content .container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

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

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    pointer-events: auto;
}

/* Apartments Section */
.apartments {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin: 50px auto;
}

.apartments h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.apartment-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.apartment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    width: calc(33.333% - 20px);
    min-width: 280px;
    max-width: 350px;
}

/* Olympic rings layout: 3 on top, 2 wider on bottom */
.apartment-card:nth-child(4),
.apartment-card:nth-child(5) {
    width: calc(50% - 15px);
    max-width: 500px;
}

.apartment-card:hover {
    transform: scale(1.02);
}

.apartment-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    overflow: hidden;
}

.apartment-image img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: white;
}

.apartment-image span {
    display: block;
    padding: 4px 8px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.2;
}

.apartment-details {
    padding: 25px;
}

.apartment-details h3 {
    margin-bottom: 10px;
}

.apartment-details .price {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 15px 0;
}

.apartment-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.feature {
    background: var(--light-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Location Section */
.location {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin: 50px auto;
    padding-top: 25px;
}

.location h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.location-info ul {
    list-style: none;
    margin-top: 20px;
}

.location-info li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contact Section */
.contact {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin: 50px auto;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.agent-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.agent-card:hover {
    transform: translateY(-5px);
}

.agent-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.agent-card h3 {
    margin-bottom: 5px;
}

.agent-card .title {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.agent-contact {
    margin-top: 15px;
}

.agent-contact p {
    margin: 8px 0;
    color: #666;
}

.contact-btn {
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

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

/* Contact Us Section */
.contact-us {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin: 20px auto;
    padding-top: 40px;
    text-align: center;
    scroll-margin-top: 100px;
}

.contact-us h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-us-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 280px;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-method.phone .contact-icon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.contact-method.whatsapp .contact-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.contact-method.telegram .contact-icon {
    background: linear-gradient(135deg, #0088cc, #0077b5);
    color: white;
}

.contact-method.email .contact-icon {
    background: linear-gradient(135deg, var(--primary-color), #1a5a7a);
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.contact-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 3px;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

@media (max-width: 768px) {
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .contact-method {
        width: 100%;
        max-width: 320px;
        min-width: auto;
    }
}

/* FAQ Section */
.faq {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin: 50px auto -22px auto;
    padding: 100px 50px 0;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq {
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark-color);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question .icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: #666;
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 5px 40px;
}

footer p {
    opacity: 0.8;
    margin: 2px 0;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    nav.scrolled {
        padding: 8px 20px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .lang-toggle {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    nav.scrolled .lang-toggle {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    nav.scrolled .logo {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
        padding: 0 20px;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .available-apartments-content {
        grid-template-columns: 1fr;
    }

    .available-apartments-content .container {
        width: 100%;
        max-width: 100%;
    }

    .palm-tree {
        display: none;
    }

    .gallery-section {
        flex-direction: column;
    }

    .gallery-left {
        width: 100%;
        min-width: 100%;
    }

    .gallery {
        aspect-ratio: 16 / 15;
        max-height: none;
        height: auto;
    }

    .gallery-info-panel {
        padding: 25px;
        margin-top: 15px;
        order: 1;
    }

    .gallery-info-panel h3 {
        font-size: 1.4rem;
    }

    .gallery-info-panel p {
        font-size: 1rem;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .gallery-dots {
        bottom: 70px;
    }

    .gallery-dot {
        width: 10px;
        height: 10px;
    }

    .gallery-slide .slide-caption {
        padding: 15px 20px;
    }

    .gallery-slide .slide-caption h3 {
        font-size: 1.1rem;
    }

    .gallery-slide .slide-caption p {
        font-size: 0.85rem;
    }

    .gallery-thumbnails {
        gap: 8px;
    }

    .gallery-thumb {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .building-showcase {
        padding: 30px 20px;
    }
}

/* Image Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
    padding: 10px;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    background: white;
}

/* Rotate image on portrait orientation */
@media (orientation: portrait) {
    .lightbox-image {
        transform: rotate(90deg);
        max-width: 90vh;
        max-height: 90vw;
    }
}

/* Apartment cards responsive */
@media (max-width: 1024px) {
    .apartment-card,
    .apartment-card:nth-child(4),
    .apartment-card:nth-child(5) {
        width: calc(50% - 15px);
        max-width: none;
    }
}

@media (max-width: 680px) {
    .apartment-card,
    .apartment-card:nth-child(4),
    .apartment-card:nth-child(5) {
        width: 100%;
        max-width: 350px;
    }
}
