/* ==========================================================================
   FEATURED HIGHLIGHTS SECTION (Homepage)
   Golden-themed compact property cards linking to Properties page
   ========================================================================== */

/* Section wrapper */
.featured-highlights-section {
    background: linear-gradient(160deg, #0B132B 0%, #1a2744 60%, #0B132B 100%);
    position: relative;
    overflow: hidden;
}

.featured-highlights-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Section header row */
.fh-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.fh-section-head h2 {
    color: #FFFFFF;
    font-size: 1.85rem;
    font-weight: 800;
    margin: 6px 0 10px;
    line-height: 1.25;
}

.fh-section-head .tagline {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fh-section-head p {
    color: #94A3B8;
    font-size: 0.93rem;
    max-width: 520px;
    margin: 0;
    line-height: 1.6;
}

/* View All button in header */
.fh-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid rgba(212,175,55,0.5);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.fh-view-all-btn:hover {
    background: rgba(212,175,55,0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Grid */
.featured-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

/* Individual highlight card */
.fh-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.28s ease;
    cursor: pointer;
    position: relative;
}

.fh-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(212,175,55,0.18);
}

/* Card image */
.fh-card-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

/* GPU Accelerated Instant Slide Track (0ms Delay) */
.fh-card-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.fh-card-slide-img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.4s ease;
}

.fh-card:hover .fh-card-slide-img {
    transform: scale(1.05);
}

/* Status badge on image */
.fh-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 4;
}

/* In-Card Nav Buttons */
.fh-card-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(11, 19, 43, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 6;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.fh-card:hover .fh-card-nav-btn {
    opacity: 1;
}

.fh-card-nav-btn:hover {
    background: var(--accent);
    color: #0B132B;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.12);
}

.fh-card-nav-prev {
    left: 8px;
}

.fh-card-nav-next {
    right: 8px;
}

/* Photo Counter Badge (Click to open Gallery Modal) */
.fh-photo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(11, 19, 43, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.fh-photo-badge i.fa-camera {
    color: var(--accent);
    font-size: 0.7rem;
}

.fh-photo-badge:hover {
    background: var(--accent);
    color: #0B132B;
    border-color: var(--accent);
    transform: scale(1.05);
}

.fh-photo-badge:hover i.fa-camera {
    color: #0B132B;
}

/* Mini dots indicator */
.fh-photo-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    pointer-events: auto;
}

.fh-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.2s ease;
    cursor: pointer;
}

.fh-dot.active {
    background: var(--accent);
    width: 14px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Card body */
.fh-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fh-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
    line-height: 1.3;
}

.fh-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.fh-card-meta span {
    font-size: 0.78rem;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fh-card-meta i {
    color: var(--accent);
    width: 12px;
    flex-shrink: 0;
}

/* Price */
.fh-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
    margin-top: auto;
}

/* Card footer */
.fh-card-footer {
    border-top: 1px solid rgba(212,175,55,0.15);
    padding-top: 10px;
}

.fh-view-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.fh-card:hover .fh-view-btn {
    gap: 10px;
}

/* Bottom Modern Luxury CTA Banner */
.fh-bottom-cta {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(212, 175, 55, 0.08) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.fh-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fh-cta-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #D4AF37 0%, #AA820A 100%);
    color: #0B132B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.fh-cta-text h4 {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    letter-spacing: -0.2px;
}

.fh-cta-text p {
    color: #CBD5E1;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.45;
}

.fh-cta-glow-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #D4AF37 0%, #E6CA65 50%, #C59B27 100%);
    color: #0B132B;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 13px 26px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.fh-cta-glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.5);
    color: #0B132B;
}

.fh-cta-glow-btn i {
    transition: transform 0.2s ease;
}

.fh-cta-glow-btn:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .featured-highlights-grid {
        grid-template-columns: 1fr;
    }
    .fh-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .fh-section-head h2 {
        font-size: 1.5rem;
    }
    .fh-bottom-cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .fh-card-nav-btn {
        opacity: 0.85;
    }
}

/* ==========================================================================
   PHOTO GALLERY LIGHTBOX MODAL (Full Screen with Thumbnails Strip)
   ========================================================================== */
.pg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pg-modal.active {
    display: flex;
    opacity: 1;
}

.pg-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 25, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.pg-modal-container {
    position: relative;
    z-index: 2;
    background: #0B132B;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    max-width: 960px;
    width: 100%;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(212, 175, 55, 0.15);
    animation: pgScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Modal Header */
.pg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 11, 25, 0.7);
}

.pg-header-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pg-header-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.8px;
}

.pg-header-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.pg-header-loc {
    font-size: 0.8rem;
    color: #94A3B8;
}

.pg-header-loc i {
    color: var(--accent);
    font-size: 0.75rem;
}

.pg-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pg-counter {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pg-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pg-close-btn:hover {
    background: #E11D48;
    border-color: #E11D48;
    transform: rotate(90deg);
}

/* Stage / Viewport */
.pg-stage {
    position: relative;
    flex: 1;
    min-height: 380px;
    max-height: 520px;
    background: #050813;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y;
}

.pg-stage-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-stage-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.pg-slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.pg-slide-img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
}

.pg-stage-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(11, 19, 43, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.pg-stage-nav:hover {
    background: var(--accent);
    color: #0B132B;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.pg-stage-prev {
    left: 18px;
}

.pg-stage-next {
    right: 18px;
}

/* Thumbs Strip */
.pg-thumbs-container {
    background: rgba(7, 11, 25, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.pg-thumbs-container::-webkit-scrollbar {
    height: 5px;
}

.pg-thumbs-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.pg-thumbs-strip {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    min-width: min-content;
}

.pg-thumb-item {
    flex: 0 0 76px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: all 0.2s ease;
    background: #0B132B;
}

.pg-thumb-item:hover {
    opacity: 0.9;
    border-color: rgba(212, 175, 55, 0.5);
}

.pg-thumb-item.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
}

.pg-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modal Footer */
.pg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(7, 11, 25, 0.95);
    gap: 16px;
    flex-wrap: wrap;
}

.pg-footer-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
}

.pg-footer-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pg-btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
}

.pg-btn-brochure {
    background: linear-gradient(135deg, #D4AF37 0%, #AA820A 100%);
    color: #0B132B;
}

.pg-btn-brochure:hover {
    background: linear-gradient(135deg, #E6CA65 0%, #D4AF37 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.pg-btn-wa {
    background: #25D366;
    color: #FFFFFF;
}

.pg-btn-wa:hover {
    background: #1EBE5D;
    transform: translateY(-2px);
}

.pg-btn-view {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #FFFFFF;
}

.pg-btn-view:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .pg-modal {
        padding: 8px;
    }
    .pg-modal-container {
        max-height: 98vh;
        border-radius: 14px;
    }
    .pg-header {
        padding: 12px 16px;
    }
    .pg-header-title {
        font-size: 1.05rem;
    }
    .pg-stage {
        min-height: 260px;
        max-height: 360px;
    }
    .pg-stage-nav {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    .pg-stage-prev { left: 8px; }
    .pg-stage-next { right: 8px; }
    .pg-thumb-item {
        flex: 0 0 60px;
        height: 44px;
    }
    .pg-footer {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .pg-footer-cta {
        justify-content: center;
    }
    .pg-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}
