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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: #f59e0b;
    border: 2px solid #f59e0b;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(245, 158, 11, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(251, 191, 36, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
}

.logo-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.header.scrolled .logo-text h1 {
    color: #1f2937;
}

.header.scrolled .logo-text p {
    color: #6b7280;
}

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

.nav-desktop a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-desktop a:hover {
    color: #f59e0b;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

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

.header.scrolled .nav-desktop a {
    color: #1f2937;
}

.contact-info {
    display: flex;
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.header.scrolled .contact-item {
    color: #6b7280;
}

.contact-item i {
    width: 16px;
    height: 16px;
}

/* Ensure contact text aligns left next to icons */
.contact-item span { text-align: left; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
}

.header.scrolled .mobile-menu-btn {
    color: #1f2937;
}

.mobile-menu {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    margin-top: 8px;
    padding: 0 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    max-height: calc(100vh - 96px);
    opacity: 1;
    pointer-events: auto;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-mobile a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-mobile a:hover {
    color: #f59e0b;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/f16e0f1d-0e8a-4c41-8e86-6c22f90d5d66.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, #fbbf24, #f59e0b, #d97706, #b45309);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(251, 191, 36, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    -webkit-text-stroke: 1px rgba(245, 158, 11, 0.1);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    will-change: transform;
}

/* Apartments Section */
.apartments {
    padding: 80px 0;
    background: #f9fafb;
}

.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.house-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.house-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.house-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.house-card:hover .house-image img {
    transform: scale(1.1);
}

.house-price {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f59e0b;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.house-premium {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #1f2937;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.house-premium i {
    width: 16px;
    height: 16px;
    color: #fbbf24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6)) drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
    animation: starGlow 2s ease-in-out infinite alternate;
}

@keyframes starGlow {
    0% {
        filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6)) drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8)) drop-shadow(0 0 12px rgba(245, 158, 11, 0.6));
        transform: scale(1.05);
    }
}

.house-content {
    padding: 24px;
}

.house-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.house-content p {
    color: #6b7280;
    margin-bottom: 24px;
}

.house-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.spec {
    text-align: center;
}

.spec i {
    width: 20px;
    height: 20px;
    color: #f59e0b;
    margin-bottom: 8px;
}

.spec-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.spec-value {
    font-weight: 600;
    color: #1f2937;
}

.house-features {
    margin-bottom: 24px;
}

.house-features h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.house-features ul {
    list-style: none;
}

.house-features li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.house-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    margin-right: 12px;
}

.house-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:focus .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    width: 32px;
    height: 32px;
    color: white;
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-title {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.gallery-category {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.download-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-radius: 16px;
    padding: 48px;
    text-align: center;
}

.download-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.download-section p {
    color: #6b7280;
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Added: Buttons sizing */
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-xs { padding: 6px 10px; font-size: 0.75rem; }

/* Added: Benefits */
.benefits { padding: 30px 0; background: white; }
.benefits-list { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; list-style: none; }
.benefits-list li { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; color: #374151; }
.benefits-list i {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    color: #f59e0b;
    flex-shrink: 0;
}

/* Desktop: much larger icons for benefits */
@media (min-width: 769px) {
    .benefits-list i {
        width: 40px !important;
        height: 40px !important;
        font-size: 40px !important;
    }
}

/* Added: Pricing */
.pricing { padding: 50px 0; background: #f9fafb; }
.pricing-cta {
    text-align: center;
    margin-bottom: 32px;
    margin-top: -16px;
}
.pricing-table-wrapper { overflow-x: auto; }
.pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.pricing-table thead th { text-align: left; padding: 16px; background: #111827; color: white; font-weight: 600; }
.pricing-table tbody td { padding: 16px; border-top: 1px solid #f3f4f6; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge.available { background: #ecfdf5; color: #065f46; }
.badge.reserved { background: #fff7ed; color: #9a3412; }
.badge.sold { background: #fee2e2; color: #991b1b; }

/* Mobile-friendly pricing table */
@media (max-width: 768px) {
    .pricing-table thead { display: none !important; }
    .pricing-table { display: block !important; width: 100% !important; border-collapse: collapse !important; border-spacing: 0 !important; }
    .pricing-table tbody { display: block !important; width: 100% !important; }
    /* Compact card layout per row */
    .pricing-table tr {
        display: grid !important;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        align-items: center;
        gap: 6px 12px;
        width: 100% !important;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    }
    .pricing-table td {
        display: block !important;
        width: auto !important;
        border: none;
        padding: 6px 4px;
        word-break: break-word;
        overflow-wrap: anywhere;
        white-space: normal !important;
    }
    /* Hide generated labels for compact layout */
    .pricing-table td::before { display: none !important; }

    /* Place cells into grid */
    .pricing-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 700; color: #111827; font-size: 1rem; padding-top: 0; }
    .pricing-table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; font-weight: 800; color: #111827; }
    .pricing-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: #6b7280; }
    .pricing-table td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; color: #6b7280; }
    .pricing-table td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; padding-bottom: 0; }
    /* Hide empty action column */
    .pricing-table td:nth-child(6) { display: none !important; }

    .pricing-table-wrapper { overflow-x: hidden !important; }
}

/* Added: Location */
.location { padding: 50px 0; background: white; }
.location-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.location-map iframe { width: 100%; height: 400px; border: 0; border-radius: 12px; }

/* Centered map layout - wider and centered */
.location-map-center {
    max-width: 900px;
    margin: 0 auto;
}

.location-map-center iframe {
    width: 100%;
    height: 500px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.location-info { display: flex; flex-direction: column; gap: 14px; }
.loc-item { display: flex; align-items: flex-start; gap: 10px; }
.loc-item i { width: 20px; height: 20px; color: #f59e0b; margin-top: 2px; }
.loc-title { font-weight: 600; color: #111827; }
.loc-desc { color: #6b7280; font-size: 0.95rem; }
.loc-note { color: #9ca3af; font-size: 0.85rem; margin-top: 8px; }

/* Added: Standards */
.standards { padding: 50px 0; background: #f9fafb; }
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* Desktop: 3 columns for standards */
@media (min-width: 1025px) {
    .standards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.standard-item { background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.standard-item i { width: 20px; height: 20px; color: #f59e0b; }

/* Added: Financing */
.financing { padding: 50px 0; background: white; }
.calculator { max-width: 900px; margin: 0 auto; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.calc-group { display: flex; flex-direction: column; }
.calc-group label { font-size: 0.875rem; color: #374151; margin-bottom: 6px; }
.calc-group input, .calc-group select {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: #111827;
    width: 100%;
    box-sizing: border-box;
}
.calc-group input:focus, .calc-group select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
.calc-result { text-align: center; padding: 16px 0; }
.result-label { color: #6b7280; margin-bottom: 8px; }
.result-value { font-weight: 800; font-size: 2rem; color: #111827; }
.result-note { color: #9ca3af; font-size: 0.875rem; margin-top: 8px; }
.calc-actions { display: flex; justify-content: center; margin-top: 12px; }

/* Added: Booking */
.booking { padding: 50px 0; background: #f9fafb; }
.booking-form { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; }
.quick-date { display: flex; align-items: center; gap: 8px; }
.quick-date-buttons { display: flex; gap: 8px; }
.wa-btn { margin-left: 12px; }
.booking .form-group input, .booking .form-group select { background: white; color: #111827; border: 1px solid #d1d5db; }
.booking .form-group input::placeholder { color: #9ca3af; }
.booking-form button[type="submit"] { margin-top: 16px; }

/* Added: Surroundings */
.surroundings { padding: 50px 0; background: white; }
.surroundings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.sur-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.sur-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sur-card i { width: 18px; height: 18px; color: #f59e0b; }
.sur-card ul { margin-left: 18px; color: #4b5563; }

/* Added: Sticky CTA */
.sticky-cta { position: sticky; bottom: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(14px); border-top: 1px solid #e5e7eb; box-shadow: 0 -8px 24px rgba(0,0,0,0.08); padding: 12px 0; z-index: 999; }
.sticky-cta[aria-hidden="true"] { display: none; }
.sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticky-cta-text { display: flex; align-items: center; gap: 8px; color: #111827; font-weight: 600; }
.sticky-cta-text i { width: 18px; height: 18px; color: #f59e0b; }
.sticky-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sticky-cta .btn-primary,
.sticky-cta .btn-outline { justify-content: center; text-align: center; }
.sticky-cta-actions a.btn-primary,
.sticky-cta-actions a.btn-outline { width: auto; display: inline-flex; align-items: center; justify-content: center; }
.sticky-cta-actions a.btn-primary i,
.sticky-cta-actions a.btn-outline i { width: 18px; height: 18px; }

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #1f2937;
    color: white;
}

.contact .section-header h2 {
    color: white;
}

.contact .section-header p {
    color: #d1d5db;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-section {
    width: 100%;
}

.contact-info-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: #f59e0b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-details p {
    color: #d1d5db;
    margin-bottom: 4px;
}

.map-placeholder {
    background: #374151;
    border-radius: 8px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.map-content i {
    width: 48px;
    height: 48px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.map-content p {
    color: #d1d5db;
    margin-bottom: 8px;
}

.map-address {
    font-size: 0.875rem;
    color: #9ca3af;
}

.contact-form-section {
    background: #374151;
    border-radius: 16px;
    padding: 32px;
}

.contact-form-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: #4b5563;
    border: 1px solid #6b7280;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-submit {
    align-self: flex-start;
    width: 100%;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 48px 0;
}

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-description {
    color: #d1d5db;
    margin-bottom: 24px;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #f59e0b;
}

.social-links i {
    width: 20px;
    height: 20px;
    color: white;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f59e0b;
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-item i {
    width: 20px;
    height: 20px;
    color: #f59e0b;
}

.footer-contact-item span,
.footer-contact-item div {
    color: #d1d5db;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #f59e0b;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border-radius: 9999px;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #d1d5db;
}

.lightbox-close {
    top: 16px;
    right: 16px;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close i,
.lightbox-prev i,
.lightbox-next i {
    width: 32px;
    height: 32px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-info {
    margin-top: 16px;
}

.lightbox-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.lightbox-category {
    font-size: 0.875rem;
    color: #d1d5db;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-info,
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Center footer contact on mobile */
    .footer-contact-items {
        align-items: center;
    }
    .footer-contact-item {
        justify-content: center;
    }
    .footer-contact-item span,
    .footer-contact-item div {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .houses-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .download-section {
        padding: 32px 20px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 60px;
        transform: none;
    }
    /* Lightbox: reduce side padding and allow full width on mobile */
    .lightbox { padding: 8px; }
    .lightbox-content { max-width: 100vw; }
    
    .lightbox-prev {
        left: 50%;
        margin-left: -60px;
    }
    
    .lightbox-next {
        right: 50%;
        margin-right: -60px;
    }

    .lightbox-close i,
    .lightbox-prev i,
    .lightbox-next i {
        width: 40px;
        height: 40px;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        padding: 12px;
    }

    /* Make map narrower on mobile and center it */
    .map-content iframe {
        width: 90% !important;
        margin: 0 auto;
        display: block;
    }

    /* Location: map under transport info */
    .location-grid { grid-template-columns: 1fr; }
    .location-info { order: 0; }
    .location-map { order: 1; }

    /* Reduce section paddings on mobile */
    .apartments, .pricing, .standards, .gallery, .benefits, .location, .surroundings, .financing, .booking, .contact {
        padding: 30px 0;
    }

    /* Gallery: reduce side padding so images can be larger */
    .gallery .container { padding-left: 12px; padding-right: 12px; }

    /* Sticky CTA layout on mobile */
    .sticky-cta-inner { flex-direction: column; align-items: stretch; gap: 8px; }
    .sticky-cta-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .sticky-cta-actions a.btn-primary, .sticky-cta-actions a.btn-outline { width: 100%; }
    .sticky-cta .btn-primary, .sticky-cta .btn-outline { padding: 6px 8px; font-size: 0.75rem; }

    /* Booking submit spacing */
    .booking-form button[type="submit"] {
        margin-top: 12px;
        padding: 12px 16px;
        width: 100%;
    }

    /* Financing: prevent wrapping specific labels */
    label[for="mortgageDownPercent"],
    label[for="mortgageYears"] {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .house-specs {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .spec {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }
    
    .spec i {
        margin-bottom: 0;
    }
    
    .contact-form-section {
        padding: 24px 16px;
    }

    /* Gallery: even tighter sides on very small screens */
    .gallery .container { padding-left: 8px; padding-right: 8px; }
}

/* Responsive map iframe */
.map-placeholder iframe,
.map-content iframe {
    width: 100%;
    height: 250px;
    border: 0;
}

/* Contact items responsive layout */
@media (max-width: 768px) {
    .contact-items {
        grid-template-columns: 1fr;
    }
}

/* Improve mobile tap experience */
body {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scroll padding for fixed header */
html {
    scroll-padding-top: 80px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px;
    text-align: center;
}

.success-icon {
    margin-bottom: 16px;
}

.success-icon i {
    width: 48px;
    height: 48px;
    color: #10b981;
}

.modal-body p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

/* Button active states */
.btn-outline.active {
    background-color: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}