/*
//  Created by Mohammad Rabi on 17/05/2026.
//  Copyright © 2026 Horizon Stay. All rights reserved.
*/

/* =========================================
   1. VARIABLES & BASE SETUP
   ========================================= */
:root {
    --bg-color: #0d1126;
    --card-bg: #151b36; 
    --grad-start: #ed4264; 
    --grad-end: #ffedbc;
    --text-color: #e0e0e0;
    --skeleton-base: #1f294a;
    --skeleton-highlight: #2a365e;
    
    /* Brand Colors */
    --airbnb-color: #FF5A5F;
    --booking-color: #003580;
    --whatsapp-color: #25D366;
}

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

body {
    background-color: var(--bg-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    display: flex; flex-direction: column;
    min-height: 100vh;
    padding-top: 80px;
}

/* Helper: Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background-color: rgba(13, 17, 38, 0.85);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px max(30px, calc(50% - 600px));
    transition: padding 0.3s ease;
}

.logo-img { width: 180px; height: auto; display: block; }

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px; /* Space between city dropdown and nav links */
}

/* Global City Selector in Header */
.header-city-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px; /* Slightly taller for better tapping */
    transition: background 0.2s ease;
    position: relative;
    cursor: pointer;
    min-width: 110px; /* <--- FIX: Forces the button to stay a nice, clickable size */
}

.header-city-selector:hover { background: rgba(255, 255, 255, 0.1); }

.location-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    pointer-events: none;
}

.display-city {
    color: white;
    font-size: 1rem;
    font-weight: 300;
    padding-right: 18px; /* Space for the arrow */
    pointer-events: none; /* Lets the click pass through to the invisible dropdown */
}

.header-city-dropdown {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    opacity: 0; 
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font-size: 16px; /* <--- FIX: Prevents iPhones from rendering a tiny popup menu */
}

.header-city-selector::after {
    content: '▼';
    font-size: 0.6rem;
    color: #888;
    position: absolute;
    right: 12px;
    pointer-events: none;
}

.header-city-dropdown option {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.main-nav { display: flex; gap: 15px; padding-top: 5px;}

.nav-link {
    text-decoration: none; color: #888; font-size: 1rem; font-weight: 300;
    padding-bottom: 5px; position: relative; transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: white; }

.nav-link.active::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    border-radius: 2px; box-shadow: 0 2px 10px rgba(237, 66, 100, 0.5);
}

/* Mobile Header Adjustment */
@media (max-width: 540px) {
    header { 
        flex-direction: column; 
        align-items: flex-start; /* <--- ADDED THIS: Anchors the logo to the left */
        padding: 15px 20px; 
        gap: 15px;
    }
    .header-controls {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    body { padding-top: 110px; } /* Pushes content down to account for taller mobile header */
}

/* =========================================
   3. MAIN CONTENT (GRID & CARDS)
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; flex-grow: 1; }

.section-header {
    text-align: left; margin-bottom: 30px; margin-top: 30px;
    border-left: 3px solid rgba(237, 66, 100, 0.5); padding-left: 25px;
}

.section-title {
    font-size: 2.8rem; text-transform: uppercase; letter-spacing: 2px;
    color: white; margin-bottom: 15px; font-weight: 300; display: block;
}
.section-title span {
    font-weight: 700;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc { max-width: 600px; font-size: 1.1rem; line-height: 1.6; color: #b0b0b0; }

/* Grid Layout */
.apartment-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem; margin-bottom: 80px;
}

/* Cards */
.card {
    background-color: var(--card-bg); border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(237, 66, 100, 0.15);
    border-color: rgba(237, 66, 100, 0.4);
}

/* Skeleton & Images */
.skeleton-anim::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--skeleton-highlight), transparent);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.img-wrapper {
    width: 100%; height: 220px; position: relative;
    background-color: var(--skeleton-base); overflow: hidden;
}

.card-image {
    width: 100%; height: 100%; object-fit: cover; opacity: 0;
    transition: opacity 0.5s ease-in; position: absolute; top: 0; left: 0; z-index: 2;
}
.card-image.loaded { opacity: 1; }

.card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.apt-title { font-size: 1.5rem; margin-bottom: 8px; }
.apt-details { font-size: 0.95rem; color: #ccc; margin-bottom: 25px; line-height: 1.6; }

/* Explore Button */
.btn-container { margin-top: auto; }
.btn-explore {
    display: block; width: 100%; padding: 14px; border-radius: 8px;
    font-weight: bold; text-align: center; text-decoration: none;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    color: var(--bg-color); 
    box-shadow: 0 4px 15px rgba(237, 66, 100, 0.3);
    transition: opacity 0.3s ease, transform 0.2s ease; cursor: pointer;
    border: none; outline: none;
}
.btn-explore:hover { opacity: 0.95; transform: scale(1.02); }

/* =========================================
   4. SHARED MODAL STYLES
   ========================================= */
.modal-overlay,
.share-overlay,
#calendar-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    overscroll-behavior: contain;
    touch-action: none;
}

.modal-overlay.active, 
.share-overlay.active, 
#calendar-modal.active { 
    opacity: 1; visibility: visible; 
}

/* Close Button (Shared) */
.close-modal, .close-share, .calendar-close-btn, .header-icon-btn, .fs-close-btn {
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none;
    transition: background 0.2s ease;
}

/* Specific Style for Modal Close */
.close-modal {
    position: absolute; top: 20px; right: 20px; z-index: 50; 
    width: 44px; height: 44px; background-color: rgba(0, 0, 0, 0.5); 
    border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.close-modal svg { width: 22px; height: 22px; fill: white; pointer-events: none; }
.close-modal:hover { background-color: rgba(237, 66, 100, 0.8); }

/* =========================================
   5. APARTMENT DETAILS MODAL
   ========================================= */
.modal-content {
    background-color: var(--bg-color); width: 90%; max-width: 1000px;
    height: 90vh; border-radius: 20px; 
    position: relative; display: flex; flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    overflow: hidden;
}
.modal-overlay.active .modal-content { transform: scale(1); opacity: 1; }

.modal-body { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

/* Gallery */
.modal-gallery {
    position: relative; background-color: black;
    display: flex; flex-direction: column; justify-content: center;
    flex: 1; min-height: 300px;
}

.main-image-container {
    flex-grow: 1; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    height: 350px; background-color: var(--bg-color); min-height: 0;
}

.modal-main-img {
    width: 100%; height: 100%; object-fit: cover; 
    opacity: 0; transition: opacity 0.3s ease;
    position: relative; z-index: 2;
}
.modal-main-img.visible { opacity: 1; }

/* Gallery Nav Arrows */
.gallery-nav {
    position: absolute; background: rgba(0,0,0,0.5); 
    color: white; border: none; padding: 10px 15px; 
    cursor: pointer; font-size: 1.5rem;
    transition: background 0.1s ease;
    z-index: 5; display: none;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent; outline: none; user-select: none;
}
.gallery-nav:hover { background: rgba(0,0,0,0.5); }
.gallery-nav:active { background: rgba(237, 66, 100, 0.8) !important; }
.gallery-nav:focus { background: rgba(0,0,0,0.5); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Thumbnails */
.thumbnails-row {
    display: flex; gap: 10px; padding: 10px; overflow-x: auto; overflow-y: hidden;
    background: var(--bg-color); flex-shrink: 0; height: 70px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.thumbnails-row::-webkit-scrollbar { display: none; width: 0; height: 0; }

.thumb {
    width: 70px; height: 50px; object-fit: cover; border-radius: 4px;
    opacity: 0.5; cursor: pointer; border: 2px solid transparent; flex-shrink: 0;
    transition: opacity 0.2s, border-color 0.2s;
}
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--grad-start); }

/* Info Section */
.modal-info { padding: 30px; display: flex; flex-direction: column; position: relative; overflow-y: auto; flex: 1; }
.modal-title { font-size: 1.5rem; margin-bottom: 10px; color: white; margin-top: 0px; padding-right: 30px; }
.modal-desc { font-size: 1rem; line-height: 1.7; color: #ccc; margin-bottom: 30px; white-space: pre-line; }

/* Header Actions (Header Share/Close) */
.modal-header-actions {
    position: absolute; top: 15px; right: 15px; z-index: 100;
    display: flex; align-items: center; gap: 10px; 
}
.header-icon-btn {
    width: 40px; height: 40px; background-color: rgba(0, 0, 0, 0.6); 
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}
.header-icon-btn svg { width: 24px; height: 24px; fill: white; pointer-events: none; }
.header-icon-btn img { width: 20px; height: 20px; filter: brightness(0) invert(1); display: block; pointer-events: none; }

/* Hide old close button if new header actions exist */
.modal-content > .close-modal { display: none !important; }

/* Action Buttons */
.modal-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 10px; flex-shrink: 0; }
.booking-row { display: flex; gap: 12px; width: 100%; }

.action-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 50px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem; cursor: pointer;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: white;
    transition: all 0.2s ease;
}
.action-btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.action-btn img { width: 24px; height: 24px; object-fit: contain; }

.btn-share {
    background-color: #4a5568; border: none; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px; border-radius: 8px; font-weight: bold; font-size: 0.95rem;
    transition: transform 0.2s, opacity 0.2s;
}
.btn-share:hover { background-color: #2d3748; transform: translateY(-2px); }
.btn-share img { width: 24px; height: 24px; }

.btn-avail { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white; }
.btn-avail:hover { background: rgba(255,255,255,0.05); }

/* --- FIX: Desktop Layout Override --- */
/* This restores the side-by-side view exactly */
@media(min-width: 768px) {
    .modal-content { height: 750px; max-height: 90vh; }
    .modal-body { flex-direction: row; }
    
    .modal-gallery { 
        width: 60%; 
        height: 100%; 
        flex: none; /* Prevents shrinking/growing errors */
    }
    .modal-info { 
        width: 40%; 
        height: 100%; 
        flex: none; /* Prevents shrinking/growing errors */
    }
}

/* Modal Mobile Fixes */
@media (max-width: 600px), (max-height: 500px) and (orientation: landscape) {
    .section-header { padding-left: 15px; margin-bottom: 20px; }
    .section-title { font-size: 2rem; }
    .modal-content {
        height: 100% !important; max-height: 100% !important; width: 100% !important;
        border-radius: 0; display: block !important; overflow-y: auto !important;
    }
    .modal-body { height: auto !important; border-radius: 0; display: block !important; overflow: visible !important; }
    .modal-gallery { flex: none !important; height: auto !important; }
    .main-image-container { height: 300px !important; }
    .modal-info { height: auto !important; overflow: visible !important; flex: none !important; padding-bottom: 60px; }
    .close-modal { position: fixed; top: 15px; right: 15px; z-index: 100; }
    .modal-title { font-size: 1.5rem; margin-top: 0px; }
}

/* =========================================
   6. SHARE POPUP
   ========================================= */
.share-box {
    background-color: var(--bg-color); width: 90%; max-width: 400px;
    border-radius: 12px; padding: 20px; overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.share-overlay.active .share-box { transform: scale(1); }

.share-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* FIX: Restored Gradient Text for Share Title */
.share-header h3 { 
    font-size: 1.3rem; 
    margin: 0; 
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.close-share {
    width: 36px; height: 36px; flex-shrink: 0; background-color: rgba(0, 0, 0, 0.5); 
    border-radius: 50%; border: none; padding: 0;
}
.close-share:hover { background-color: rgba(237, 66, 100, 0.8); }
.close-share svg { width: 24px; height: 24px; fill: white; pointer-events: none; }

.share-input-group { display: flex; gap: 10px; margin-bottom: 25px; }
#share-url-input {
    flex-grow: 1; background: rgba(0, 0, 0, 0.3); min-width: 0; border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc; padding: 12px 15px; border-radius: 6px; outline: none; font-size: 0.9rem;
}
#share-url-input:focus { border-color: var(--grad-start); }

#btn-copy-link {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: white;
    font-weight: 600; padding: 0 20px; border-radius: 6px; cursor: pointer;
    transition: all 0.2s ease; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
#btn-copy-link:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.share-socials { display: flex; justify-content: space-between; gap: 10px; }
.social-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    text-decoration: none; padding: 10px; border-radius: 8px;
    background: rgba(255,255,255,0.05); transition: background 0.2s;
}
.social-btn:hover { background: rgba(255,255,255,0.1); }
.social-btn img { width: 24px; margin-bottom: 5px; }
.social-btn span { color: #ccc; font-size: 0.8rem; }
.social-btn.fb:hover { background: #3b5998; }
.social-btn.email:hover { background: #555; }
.social-btn.wa:hover { background: #25D366; }

/* =========================================
   7. CALENDAR POPUP
   ========================================= */
.calendar-popup {
    position: relative; width: 100% !important; max-width: 360px !important;
    height: auto !important; max-height: 85vh !important;
    background: var(--bg-color); border-radius: 20px !important;
    padding: 20px; margin: 0 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; overflow-y: auto;
    transition: height 0.2s ease;
    user-select: none; -webkit-user-select: none; touch-action: manipulation;
    transform: scale(0.9); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
#calendar-modal.active .calendar-popup { transform: scale(1); opacity: 1; }

.cal-top-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-right: 40px; position: relative;
}
#calendar-apt-title { font-size: 1.3rem; margin: 0; line-height: 1.2; text-align: left; }

.calendar-close-btn {
    position: absolute; right: 0; width: 36px; height: 36px;
    background-color: rgba(0, 0, 0, 0.5); border-radius: 50%;
    z-index: 10;
}
.calendar-close-btn:hover { background-color: rgba(237, 66, 100, 0.8); }
.calendar-close-btn svg { width: 24px; height: 24px; fill: white; pointer-events: none; }

.month-nav-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; background: transparent; padding: 0 10px;
}
#calendar-month-title { color: white; font-size: 1.0rem; margin: 0; font-weight: 600; }

.cal-nav-btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: transparent; border: none; cursor: pointer;
    border-radius: 50%; opacity: 0.8;
    transition: background-color 0.2s ease, transform 0.2s ease;
    will-change: transform; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.cal-nav-btn:focus-visible { background-color: rgba(237, 66, 100, 0.4); }
.cal-nav-btn img { width: 18px; height: 18px; object-fit: contain; display: block; filter: brightness(0) invert(1); pointer-events: none; }

/* Calendar Grid */
.cal-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-size: 0.9rem; background: #1f294a; color: white; user-select: none;
}
.cal-day.header { background: none; color: #888; font-size: 0.75rem; font-weight: bold; }
.cal-day.empty { background: transparent; }
.cal-day.free { background: rgba(37, 211, 102, 0.15); border: 1px solid rgba(37, 211, 102, 0.4); color: #25D366; }
.cal-day.booked { background: rgba(237, 66, 100, 0.15); border: 1px solid rgba(237, 66, 100, 0.4); color: #aaa; text-decoration: line-through; }
.cal-day.past { opacity: 0.3; }

.cal-skeleton-cell {
    aspect-ratio: 1; border-radius: 6px; background: #1f294a; position: relative; overflow: hidden;
}
.cal-skeleton-cell::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmer 1.5s infinite;
}

.legend {
    display: flex; align-items: center; justify-content: center; gap: 25px;
    margin-top: auto; padding-top: 15px; font-size: 0.85rem; color: #bbb; font-weight: 500;
}
.legend-item { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dot.free { background-color: #25D366; opacity: 0.8; }
.dot.booked { background-color: #ed4264; opacity: 0.8; }

/* Calendar Responsive Overrides */
@media (max-width: 480px) {
    .calendar-popup { width: 90% !important; max-height: 80vh !important; border-radius: 16px !important; }
}
@media (max-width: 400px) {
    .cal-days-grid { gap: 4px; }
    .cal-day { font-size: 0.8rem; }
}
@media (min-width: 768px) {
    .calendar-popup { max-width: 450px !important; padding: 35px; min-height: 540px; }
}

/* =========================================
   8. FULLSCREEN MODE (New Feature)
   ========================================= */
.expand-btn {
    position: absolute; top: 15px; left: 15px; z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
}

#fullscreen-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--bg-color);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: none;
}
#fullscreen-modal.active { opacity: 1; visibility: visible; }

.fs-main-image {
    max-width: 95%; max-height: 95%; object-fit: contain;
    transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none; -webkit-user-select: none;
}
#fullscreen-modal.active .fs-main-image { transform: scale(1); }

.fs-close-btn {
    position: absolute; top: 15px; right: 15px; z-index: 100;
    width: 40px; height: 40px;
}

.fs-nav {
    display: block !important; width: 60px; height: 60px; font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
}
.fs-nav:active {
    background-color: rgba(237, 66, 100, 0.9);
    transition: none !important; transform: scale(0.95);
}
.fs-prev { left: 20px; }
.fs-next { right: 20px; }

/* Mobile Fullscreen Nav */
@media (max-width: 600px) {
    .fs-nav {
        width: 40px !important; height: 40px !important; font-size: 1.2rem !important;
        background-color: rgba(0, 0, 0, 0.6);
        display: flex !important; align-items: center; justify-content: center; padding: 0;
    }
    .fs-prev { left: 15px; }
    .fs-next { right: 15px; }
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: #151b36; text-align: center; padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: auto;
}
.footer-text { color: #888; font-size: 0.8rem; letter-spacing: 1px; }


/* =========================================
   3.2 PARTNERSHIP BADGE (Listing Page)
   ========================================= */
.listing-partnership {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 5px 0px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .listing-partnership:hover {
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
}

.listing-partnership:active {
    transform: scale(0.98);
}

.partner-text {
    color: #b0b0b0; /* Matches the section description color perfectly */
    font-size: 0.9rem;
    font-weight: 300;
}

.ks-underline {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.listing-partner-logo {
    height: 50px; /* Kept slightly smaller so it doesn't overpower the page title */
    width: auto;
    object-fit: contain;
}

/* =========================================
   10. GLOBAL POPUP BUTTON HIGHLIGHT FIX
   ========================================= */

/* Base: remove ugly mobile tap flash everywhere */
.calendar-popup button, .modal-content button, .share-box button,
.gallery-nav, .header-icon-btn, .modal-content a, .cal-nav-btn, .calendar-close-btn, .close-share {
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    outline: none; user-select: none; will-change: transform, background-color;
}

/* DESKTOP HOVER (only when mouse exists) */
@media (hover: hover) and (pointer: fine) {
    .calendar-popup button:hover, .modal-content button:hover, .share-box button:hover,
    .gallery-nav:hover, .header-icon-btn:hover, .fs-nav:hover, .cal-nav-btn:hover, 
    .calendar-close-btn:hover, .close-share:hover {
        background-color: rgba(237, 66, 100, 0.85) !important;
        transform: scale(1.02); opacity: 1;
    }
    /* Specific overrides for desktop hover */
    .cal-nav-btn:hover { background-color: rgba(255, 255, 255, 0.15); transform: scale(1.1); }
    .btn-share:hover { background-color: #2d3748 !important; transform: translateY(-2px); }
    .action-btn:hover, #btn-copy-link:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;  transform: translateY(-2px);
    }
    .action-btn:hover, #btn-copy-link:hover {
        background-color: rgba(237, 66, 100, 0.85) !important; 
        transform: translateY(-2px);
    }
}

/* MOBILE + DESKTOP PRESS (ACTIVE STATE) */
.calendar-popup button:active, .modal-content button:active, .action-btn:active, .share-box button:active,
.gallery-nav:active, .header-icon-btn:active, .cal-nav-btn:active, 
.calendar-close-btn:active, .close-share:active {
    transition: none !important; /* Kill delay */
    background-color: rgba(237, 66, 100, 0.9) !important; /* Strong visible red */
    transform: scale(1.0); opacity: 1;
    box-shadow: 0 0 0 6px rgba(237, 66, 100, 0.25);
}

/* Specific overrides for Active State */
.cal-nav-btn:active { transform: scale(0.9); box-shadow: 0 0 0 6px rgba(237, 66, 100, 0.15); }

/* Keyboard focus (accessibility) */
.calendar-popup button:focus-visible, .modal-content button:focus-visible, 
.share-box button:focus-visible, .gallery-nav:focus-visible, .header-icon-btn:focus-visible, 
.cal-nav-btn:focus-visible, .calendar-close-btn:focus-visible, .close-share:focus-visible {
    outline: 2px solid rgba(237, 66, 100, 0.8); outline-offset: 2px;
}