/* Porto Golf Marina Compact Design */

/* General Improvements */
.hero-section {
    height: 60vh;
    min-height: 400px;
    border: none;
}

section {
    padding: 40px 20px;
}

@media (max-width: 767px) {
    section {
        padding: 30px 16px;
    }
}

h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 20px;
    }
}

p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    p {
        font-size: 14px;
        line-height: 1.5;
    }
}

.btn,
button,
.cta-button {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 30px;
}

@media (max-width: 767px) {

    .btn,
    button,
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* 1. Master Plan Section */
.master-plan-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    margin-bottom: 24px;
}

.master-plan-map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px;
    border-radius: 20px;
    overflow: hidden;
}

.master-plan-map {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.master-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.plan-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.plan-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.plan-card-content {
    padding: 16px;
}

.plan-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.plan-card-description {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
    .master-plan-section {
        padding: 40px 16px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .master-plan-map-container {
        margin-bottom: 24px;
        border-radius: 16px;
    }

    .master-plan-map {
        height: 200px;
        /* 60% reduction */
    }

    .master-plan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 24px;
    }

    .plan-card-image {
        height: 120px;
    }

    .plan-card-content {
        padding: 12px;
    }

    .plan-card-title {
        font-size: 14px;
    }

    .plan-card-description {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* 2. Pricing Plans */
.pricing-plans-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 cards PC */
    gap: 20px;
    margin-top: 30px;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
}

.pricing-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d878 100%);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
}

.pricing-icon {
    font-size: 40px;
    margin-bottom: 16px;
    color: #d4af37;
}

.pricing-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.pricing-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
    min-height: 40px;
}

.pricing-amount {
    font-size: 32px;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 20px;
}

.pricing-cta {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ff9500 0%, #ff8000 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 149, 0, 0.35);
    color: white;
}

/* Mobile - Vertical */
@media (max-width: 767px) {
    .pricing-plans-section {
        padding: 20px 10px;
    }

    .pricing-cards-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }

    .pricing-cards-grid::-webkit-scrollbar {
        display: none;
    }

    .pricing-card {
        flex: 0 0 70%;
        /* Show ~1.5 cards */
        min-width: 0;
        padding: 15px;
        scroll-snap-align: center;
    }

    .pricing-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .pricing-title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .pricing-subtitle {
        font-size: 12px;
        min-height: auto;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .pricing-amount {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .pricing-cta {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
    }

    .pricing-badge {
        font-size: 9px;
        padding: 4px 8px;
        top: 10px;
        right: 10px;
    }
}

/* Tablet - 2 cards */
@media (min-width: 768px) and (max-width: 1023px) {
    .pricing-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* 3. Amenities & Facilities */
@media (min-width: 768px) {
    .amenities-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .amenity-card {
        text-align: center;
        padding: 24px;
        background: #f8f9fa;
        border-radius: 12px;
    }

    .amenity-icon {
        font-size: 48px;
        margin-bottom: 12px;
        color: #d4af37;
    }

    .amenity-title {
        font-size: 16px;
        font-weight: 600;
    }
}

@media (max-width: 767px) {
    .amenities-section {
        padding: 30px 16px;
    }

    .amenities-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        /* 4 items in a row */
        gap: 12px;
    }

    .amenity-card {
        text-align: center;
        padding: 12px 8px;
        background: #f8f9fa;
        border-radius: 12px;
    }

    .amenity-icon {
        font-size: 32px;
        margin-bottom: 6px;
        color: #d4af37;
    }

    .amenity-title {
        font-size: 11px;
        font-weight: 600;
        color: #495057;
        line-height: 1.2;
    }
}

/* 4. Location & Nearby Landmarks */
.location-landmarks-section {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.landmarks-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 30px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.landmark-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.landmark-item:last-child {
    border-bottom: none;
}

.landmark-item:hover {
    background: #f8f9fa;
}

.landmark-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.landmark-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.landmark-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.landmark-distance {
    font-size: 18px;
    font-weight: 700;
    color: #d4af37;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 767px) {
    .location-landmarks-section {
        padding: 30px 16px;
    }

    .landmark-item {
        padding: 14px 16px;
    }

    .landmark-icon {
        font-size: 24px;
    }

    .landmark-name {
        font-size: 14px;
    }

    .landmark-distance {
        font-size: 16px;
    }
}

/* 5. Nearby Essential Facilities */
.nearby-facilities-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8f9fa;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.facility-category {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e9ecef;
}

.facility-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.facility-icon {
    font-size: 32px;
}

.facility-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.facility-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #495057;
    padding: 8px 0;
}

.facility-item::before {
    content: '•';
    color: #d4af37;
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 767px) {
    .nearby-facilities-section {
        padding: 30px 16px;
    }

    .facilities-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding-bottom: 0;
    }

    .facility-category {
        padding: 15px;
    }

    /* Hide scrollbar */
    .facilities-grid::-webkit-scrollbar {
        display: none;
    }

    .facility-icon {
        font-size: 24px;
    }

    .facility-title {
        font-size: 16px;
    }

    .facility-item {
        font-size: 13px;
    }
}

/* Quick Nav for Mobile */
.quick-nav {
    display: none;
    /* Hidden by default (Desktop) */
}

@media (max-width: 991px) {
    .quick-nav.mobile-only {
        display: flex;
        background: #fff;
        white-space: nowrap;
        overflow-x: auto;
        padding: 6px 10px;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 60px;
        z-index: 1021;
        -webkit-overflow-scrolling: touch;
        gap: 4px !important;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        padding-left: 95px !important;
        max-width: 100vw;
    }

    .quick-nav::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar */
    }

    .quick-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 8px !important;
        color: #666;
        text-decoration: none;
        font-size: 8.5px !important;
        font-weight: 700 !important;
        border: 1px solid #eee;
        border-radius: 50px;
        transition: all 0.3s ease;
        min-width: 50px;
        height: 26px !important;
        text-align: center;
        flex-shrink: 0;
    }

    .quick-nav a:hover,
    .quick-nav a.active {
        color: #000;
        background: #d4af37;
        border-color: #d4af37;
        font-weight: 700;
    }
}

/* Map Controls Styling */
.map-ctrl-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #444;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.map-ctrl-btn:hover {
    background: var(--primary-gold, #d4af37);
    color: white;
    border-color: var(--primary-gold, #d4af37);
}

#panzoom-element {
    cursor: grab;
}

#panzoom-element:active {
    cursor: grabbing;
}


/* Quick Overview Bar Optimization - Unified White Bar */
.quick-overview-bar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 15px;
    /* Matches reference */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    gap: 0;
    /* No gap because we use borders */
}

.quick-overview-bar::-webkit-scrollbar {
    display: none;
}

.overview-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 15px !important;
    margin: 0 !important;
    border-right: 1px solid #f0f0f0;
    /* Soft divider */
    min-width: 0;
}

.overview-card:last-child {
    border-right: none;
}

.overview-card i {
    font-size: 1.6rem !important;
    margin-bottom: 10px !important;
    color: #d4af37;
}

.overview-card h4 {
    font-size: 0.7rem !important;
    margin-bottom: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #889098;
    font-weight: 600;
}

.overview-card p {
    font-size: 0.9rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    font-weight: 700;
    color: #1a1a1a;
}

@media (max-width: 767px) {
    .quick-overview-bar {
        /* Reset desktop styles */
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;

        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 15px 10px;
        gap: 10px;
    }

    .quick-overview-bar::-webkit-scrollbar {
        display: none;
    }

    .overview-card {
        /* Individual cards style for mobile */
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
        border-right: none;

        flex: 0 0 auto;
        min-width: 85px;
        padding: 10px 5px !important;
        margin: 0 !important;
    }

    .overview-card i {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
    }

    .overview-card h4 {
        font-size: 0.6rem !important;
    }

    .overview-card p {
        font-size: 0.7rem !important;
    }
}

/* Available Units CSS */
.units-filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #555;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
}

/* Mobile Filter Bar - Make it ALWAYS visible and scrollable */
@media (max-width: 768px) {
    .units-filter-bar {
        display: flex !important;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 15px 10px;
        margin-bottom: 20px;
        white-space: nowrap;
        scroll-snap-type: x mandatory;
    }

    .units-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        padding: 10px 18px;
        font-size: 0.85rem;
        min-width: fit-content;
        scroll-snap-align: start;
    }
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.unit-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.unit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-gold);
}

/* Fix Card Image Display */
.unit-card-image,
.project-card-image,
.building-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #f8f9fa;
}

/* Mobile Image Fix - Proper Aspect Ratio */
@media (max-width: 768px) {

    .unit-card-image,
    .project-card-image,
    .building-image,
    .project-card img,
    .offer-card img {
        width: 100% !important;
        height: 100px !important;
        /* Reduced from 180px for compact layout */
        object-fit: cover !important;
        object-position: center 35% !important;
        aspect-ratio: 4 / 3;
        border-radius: 12px 12px 0 0;
    }

    /* Ensure images in grid don't overflow */
    .projects-grid .project-card {
        overflow: hidden;
        border-radius: 12px;
    }

    .project-card-content {
        padding: 10px !important;
        /* Reduced from 12px */
    }
}

.unit-card-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unit-project-badge {
    background: var(--navy-deep);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.unit-status-text {
    font-size: 0.75rem;
    font-weight: 600;
}

.status-ready {
    color: #10b981;
}

.status-construction {
    color: #f59e0b;
}

.unit-card-body {
    padding: 20px;
}

.unit-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #555;
}

.unit-spec-item i {
    color: var(--primary-gold);
    margin-right: 5px;
}

.unit-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy-deep);
    margin-bottom: 5px;
}

.unit-code {
    font-size: 0.8rem;
    color: #999;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #888;
}


/* Integrated Project Card Styles (Matching Homepage) */
.available-buildings-section .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .available-buildings-section .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        /* Reduced from 12px for compact layout */
        padding: 0 5px;
    }

    /* Ensure proper card structure on mobile */
    .available-buildings-section .project-card,
    .unit-types-section .project-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 240px;
        /* Reduced from 280px */
    }

    /* Make sure images don't get squashed */
    .available-buildings-section .project-card img,
    .unit-types-section .project-card img {
        flex-shrink: 0;
        width: 100%;
        height: 100px !important;
        /* Reduced from 180px */
        object-fit: cover;
        border-radius: 12px 12px 0 0;
    }
}