/* ═══════════════════════════════════════════════
   Oia Residence - Interactive Tourist Map
   WordPress Plugin - Scoped Styles
   ═══════════════════════════════════════════════ */

/* ═══ CONTAINER ═══ */
.oia-map-container {
    --deep-blue: #1a4b8c;
    --medium-blue: #2980b9;
    --light-blue: #74b9ff;
    --sky-blue: #a8d8ea;
    --white: #ffffff;
    --off-white: #f5f6fa;
    --cream: #faf3e8;
    --sand: #d4a574;
    --light-sand: #f0d9b5;
    --terracotta: #c0392b;
    --olive: #6b8e23;
    --coral: #e17055;
    --teal: #00cec9;
    --purple: #6c5ce7;
    --warm-gray: #636e72;
    --dark-text: #2d3436;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(26, 75, 140, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 50px;
    --font-sans: 'Josefin Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    font-family: var(--font-sans);
    color: var(--dark-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    line-height: 1.5;
}

.oia-map-container *,
.oia-map-container *::before,
.oia-map-container *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Fullscreen variant */
.oia-map-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 9999;
}

/* ═══ MAP ═══ */
.oia-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Leaflet control overrides */
.oia-map-container .leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--glass-shadow) !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    margin-bottom: 56px !important;
}

.oia-map-container .leaflet-control-zoom a {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: var(--deep-blue) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

.oia-map-container .leaflet-control-zoom a:hover {
    background: rgba(26, 75, 140, 0.12) !important;
}

.oia-map-container .leaflet-control-attribution {
    font-size: 10px !important;
    background: rgba(255,255,255,0.6) !important;
    backdrop-filter: blur(4px);
    margin-bottom: 52px !important;
}

.oia-map-container .leaflet-marker-icon {
    background: none !important;
    border: none !important;
}

/* ═══ VILLA MARKER ═══ */
.oia-map-container .marker-villa-container {
    background: none !important;
    border: none !important;
}

.oia-map-container .villa-marker-wrap {
    position: relative;
    width: 100px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oia-map-container .villa-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.35) 0%, rgba(212, 165, 116, 0) 70%);
    transform: translate(-50%, -55%);
    pointer-events: none;
}

.oia-map-container .villa-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 165, 116, 0.4);
    pointer-events: none;
}

.oia-map-container .villa-ring-1 {
    width: 56px;
    height: 56px;
    transform: translate(-50%, -55%);
    animation: oiaVillaRing 3s ease-in-out infinite;
}

.oia-map-container .villa-ring-2 {
    width: 76px;
    height: 76px;
    transform: translate(-50%, -55%);
    animation: oiaVillaRing 3s ease-in-out 1s infinite;
    border-color: rgba(212, 165, 116, 0.2);
}

.oia-map-container .villa-core {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin-top: -8px;
}

.oia-map-container .villa-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
}

/* ═══ DISTANCE LABELS ═══ */
.oia-map-container .distance-label {
    background: none !important;
    border: none !important;
}

.oia-map-container .distance-label span {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--warm-gray);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
}

/* ═══ LOADER ═══ */
.oia-loader {
    position: absolute;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a4b8c 0%, #2980b9 40%, #a8d8ea 100%);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.oia-loader.oia-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.oia-loader-content {
    text-align: center;
    color: var(--white);
}

.oia-loader-icon {
    margin-bottom: 20px;
    animation: oiaLoaderPulse 2s ease-in-out infinite;
}

.oia-loader-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    color: var(--white);
}

.oia-loader-subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.oia-loader-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.oia-loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    animation: oiaLoaderDot 1.4s ease-in-out infinite;
}
.oia-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.oia-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ═══ FILTER BAR (floating dock at bottom) ═══ */
.oia-filter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 18px 0 16px;
    background: linear-gradient(to top, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 60%, rgba(255,255,255,0.4) 85%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.oia-filter-scroll {
    display: flex;
    gap: 7px;
    padding: 0 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    pointer-events: auto;
    mask-image: linear-gradient(to right, transparent 0px, black 14px, black calc(100% - 30px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 14px, black calc(100% - 30px), transparent 100%);
}

.oia-filter-scroll::-webkit-scrollbar {
    display: none;
}

.oia-filter-pill {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dark-text);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.oia-filter-pill:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.oia-filter-pill.active {
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.oia-filter-pill .pill-emoji {
    font-size: 0.85rem;
    line-height: 1;
}

.oia-filter-pill .pill-count {
    font-size: 0.62rem;
    font-weight: 600;
    opacity: 0.7;
    margin-left: 2px;
}

/* ═══ MARKERS ═══ */
.oia-map-container .marker {
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.3s ease;
    will-change: transform;
    animation: oiaMarkerEntry 0.5s ease-out backwards;
}

.oia-map-container .marker:hover {
    transform: scale(1.15);
    z-index: 10 !important;
}

.oia-map-container .marker.marker-active {
    transform: scale(1.3);
    z-index: 20 !important;
}

.oia-map-container .marker.marker-active .marker-pin {
    transition: background 0.3s, box-shadow 0.3s;
}

.oia-map-container .marker.marker-active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(26, 75, 140, 0.35);
    transform: translateX(-50%);
    animation: oiaMarkerPulse 2s ease-out infinite;
    pointer-events: none;
}

.oia-map-container .marker.marker-hidden {
    opacity: 0;
    transform: scale(0.3);
    pointer-events: none;
}

.oia-map-container .marker {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.oia-map-container .marker-pin {
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.25);
    border: none;
    transition: box-shadow 0.25s ease;
}

.oia-map-container .marker:hover .marker-pin {
    box-shadow: 0 3px 14px rgba(0,0,0,0.35);
}

.oia-map-container .marker-pin .pin-icon {
    transform: rotate(45deg);
    font-size: 10px;
    line-height: 1;
    filter: grayscale(0);
}

/* ═══ DETAIL PANEL ═══ */
.oia-detail-panel {
    position: absolute;
    z-index: 200;
    background: var(--white);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    transition: transform var(--transition);
    -webkit-overflow-scrolling: touch;
}

/* Desktop panel - right side */
@media (min-width: 769px) {
    .oia-detail-panel {
        top: 0;
        right: 0;
        bottom: 0;
        width: 400px;
        transform: translateX(100%);
        box-shadow: -8px 0 40px rgba(26, 75, 140, 0.12);
        border-left: 1px solid rgba(26, 75, 140, 0.06);
    }
    .oia-detail-panel.oia-panel-open {
        transform: translateX(0);
    }
    .oia-panel-drag-handle {
        display: none;
    }
}

/* Mobile panel - bottom sheet */
@media (max-width: 768px) {
    .oia-detail-panel {
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 55vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        box-shadow: 0 -8px 40px rgba(26, 75, 140, 0.15);
    }
    .oia-detail-panel.oia-panel-open {
        transform: translateY(0);
    }
}

.oia-panel-drag-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
    cursor: grab;
}

.oia-drag-bar {
    width: 48px;
    height: 5px;
    border-radius: 3px;
    background: #ccc;
}

.oia-panel-close {
    position: absolute;
    top: 60px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: #555;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.oia-panel-close:hover {
    background: rgba(255,255,255,0.95);
    color: #333;
    transform: scale(1.05);
}

.oia-panel-close:active {
    transform: scale(0.95);
}

.oia-panel-photo-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sky-blue), var(--light-blue));
}

.oia-panel-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.oia-panel-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

.oia-panel-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.oia-panel-body {
    padding: 0 20px 24px;
}

.oia-panel-title {
    font-family: var(--font-sans);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 2px;
    line-height: 1.2;
}

.oia-panel-greek {
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin-bottom: 14px;
    font-style: italic;
}

.oia-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.oia-panel-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--warm-gray);
    background: var(--off-white);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}

.oia-panel-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-text);
    margin-bottom: 16px;
}

.oia-panel-tips {
    background: linear-gradient(135deg, #fff9f0, #fef4e8);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
    border-left: 3px solid var(--sand);
}

.oia-panel-tips h3 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark-text);
}

.oia-panel-tips-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--warm-gray);
}

.oia-panel-info-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.oia-panel-info-row span {
    font-size: 0.78rem;
    color: var(--warm-gray);
    background: var(--off-white);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.oia-panel-actions {
    display: flex;
    gap: 10px;
}

.oia-btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--deep-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    flex: 1;
    justify-content: center;
}

.oia-btn-directions:hover {
    background: #15407a;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 75, 140, 0.3);
}

/* ═══ NEARBY SUGGESTIONS ═══ */
.oia-nearby-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--off-white);
}

.oia-nearby-title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.oia-nearby-counter {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--medium-blue);
    text-transform: none;
    letter-spacing: 0;
    background: rgba(41, 128, 185, 0.08);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.oia-nearby-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oia-nearby-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--off-white);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
}

.oia-nearby-item:hover {
    background: rgba(26, 75, 140, 0.06);
    border-color: rgba(26, 75, 140, 0.1);
}

.oia-nearby-item:active {
    transform: scale(0.97);
    background: rgba(26, 75, 140, 0.1);
}

.oia-nearby-item-emoji {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.oia-nearby-item-info {
    flex: 1;
    min-width: 0;
}

.oia-nearby-item-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--dark-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oia-nearby-item-dist {
    font-size: 0.68rem;
    color: var(--warm-gray);
    margin-top: 1px;
}

.oia-nearby-item-go {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(26, 75, 140, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.oia-nearby-item:hover .oia-nearby-item-go {
    background: var(--deep-blue);
}

.oia-nearby-item-arrow {
    color: var(--deep-blue);
    font-size: 0.8rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.oia-nearby-item:hover .oia-nearby-item-arrow {
    color: var(--white);
    transform: translateX(1px);
}

.oia-nearby-item.oia-nearby-entering {
    animation: oiaNearbySlideIn 0.3s ease-out both;
}

.oia-nearby-item.oia-nearby-selected {
    background: var(--deep-blue) !important;
    border-color: var(--deep-blue) !important;
    transform: scale(0.96);
}
.oia-nearby-item.oia-nearby-selected .oia-nearby-item-name,
.oia-nearby-item.oia-nearby-selected .oia-nearby-item-dist,
.oia-nearby-item.oia-nearby-selected .oia-nearby-item-arrow {
    color: var(--white) !important;
}
.oia-nearby-item.oia-nearby-selected .oia-nearby-item-go {
    background: rgba(255,255,255,0.2);
}
.oia-nearby-item.oia-nearby-selected .oia-nearby-item-emoji {
    background: rgba(255,255,255,0.15) !important;
}

.oia-nearby-item.oia-nearby-exiting {
    animation: oiaNearbySlideOut 0.25s ease-in both;
}

@keyframes oiaNearbySlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes oiaNearbySlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px) scale(0.95); }
}

/* ═══ AIRPORT TRANSPORT SECTION ═══ */
.oia-airport-transport {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--off-white);
}

.oia-transport-title,
.oia-rentcar-title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.oia-rentcar-title {
    margin-top: 18px;
}

.oia-transport-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oia-map-container .transport-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.04);
}

.oia-map-container .transport-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.oia-map-container .transport-card-body {
    flex: 1;
    min-width: 0;
}

.oia-map-container .transport-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.oia-map-container .transport-card-name {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-text);
}

.oia-map-container .transport-card-tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--deep-blue);
    color: var(--white);
}

.oia-map-container .transport-card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.oia-map-container .transport-card-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--deep-blue);
}

.oia-map-container .transport-card-time {
    font-size: 0.72rem;
    color: var(--warm-gray);
}

.oia-map-container .transport-card-note {
    font-family: var(--font-body);
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--warm-gray);
}

.oia-rentcar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oia-map-container .rentcar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--off-white);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.oia-map-container .rentcar-item:hover {
    background: rgba(21, 101, 192, 0.06);
    border-color: rgba(21, 101, 192, 0.12);
    transform: translateX(2px);
}

.oia-map-container .rentcar-item-info {
    display: flex;
    flex-direction: column;
}

.oia-map-container .rentcar-item-name {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-text);
}

.oia-map-container .rentcar-item-type {
    font-size: 0.65rem;
    color: var(--warm-gray);
}

.oia-map-container .rentcar-item-link {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--deep-blue);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ═══ BACK TO VILLA FAB ═══ */
.oia-back-to-villa {
    position: fixed;
    bottom: 56px;
    left: 12px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(26, 75, 140, 0.18);
    color: var(--deep-blue);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.oia-back-to-villa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(26, 75, 140, 0.25);
}

.oia-back-to-villa.oia-fab-hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.oia-fab-label {
    letter-spacing: 0.02em;
}

/* Desktop overrides */
@media (min-width: 769px) {
    .oia-panel-close {
        display: none;
    }
    .oia-back-to-villa {
        left: auto;
        right: 14px;
    }
}

/* ═══ ANIMATIONS ═══ */
@keyframes oiaVillaRing {
    0% { transform: translate(-50%, -55%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -55%) scale(1.3); opacity: 0; }
    100% { transform: translate(-50%, -55%) scale(1); opacity: 0; }
}

@keyframes oiaLoaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes oiaLoaderDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

@keyframes oiaMarkerPulse {
    0% { transform: translateX(-50%) scale(1); opacity: 0.7; }
    100% { transform: translateX(-50%) scale(2.5); opacity: 0; }
}

@keyframes oiaMarkerEntry {
    0% { transform: scale(0) translateY(-20px); opacity: 0; }
    60% { transform: scale(1.1) translateY(0); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

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

.oia-panel-open .oia-panel-body > * {
    animation: oiaPanelSlideIn 0.4s ease-out backwards;
}
.oia-panel-open .oia-panel-body > *:nth-child(1) { animation-delay: 0.05s; }
.oia-panel-open .oia-panel-body > *:nth-child(2) { animation-delay: 0.1s; }
.oia-panel-open .oia-panel-body > *:nth-child(3) { animation-delay: 0.15s; }
.oia-panel-open .oia-panel-body > *:nth-child(4) { animation-delay: 0.2s; }
.oia-panel-open .oia-panel-body > *:nth-child(5) { animation-delay: 0.25s; }
.oia-panel-open .oia-panel-body > *:nth-child(6) { animation-delay: 0.3s; }
.oia-panel-open .oia-panel-body > *:nth-child(7) { animation-delay: 0.35s; }
.oia-panel-open .oia-panel-body > *:nth-child(8) { animation-delay: 0.4s; }
.oia-panel-open .oia-panel-body > *:nth-child(9) { animation-delay: 0.45s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) and (min-width: 769px) {
    .oia-detail-panel {
        width: 360px;
    }
}

@media (max-width: 768px) {
    .oia-map-container {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    .oia-filter-bar {
        padding: 8px 0 8px;
    }

    .oia-filter-pill {
        padding: 7px 12px;
        font-size: 0.7rem;
    }

    .oia-detail-panel {
        max-height: 55vh;
    }

    .oia-panel-photo-wrap {
        height: 120px;
    }

    .oia-panel-title {
        font-size: 1.3rem;
    }

    .oia-panel-description {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .oia-panel-body {
        padding: 0 14px 16px;
    }

    .oia-panel-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        background: rgba(255,255,255,0.9);
        color: #555;
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        font-size: 1rem;
        font-weight: 400;
        z-index: 20;
    }

    .oia-panel-tips {
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .oia-panel-tips-text {
        font-size: 0.8rem;
    }

    .oia-panel-meta {
        margin-bottom: 10px;
    }

    .oia-panel-meta span {
        font-size: 0.78rem;
        padding: 4px 10px;
    }

    .oia-nearby-section {
        margin-top: 14px;
        padding-top: 12px;
    }

    .oia-nearby-item {
        padding: 14px 12px;
        gap: 10px;
    }

    .oia-nearby-item-emoji {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .oia-nearby-item-name {
        font-size: 0.88rem;
    }

    .oia-nearby-item-dist {
        font-size: 0.72rem;
    }

    .oia-nearby-item-go {
        width: 32px;
        height: 32px;
    }

    .oia-back-to-villa {
        bottom: 52px;
        left: 10px;
        padding: 7px 12px;
        font-size: 0.68rem;
    }

    .oia-panel-actions {
        flex-direction: column;
    }

    .oia-btn-directions {
        padding: 12px 16px;
        font-size: 0.82rem;
    }
}

@media (max-width: 375px) {
    .oia-detail-panel {
        max-height: 55vh;
    }

    .oia-panel-photo-wrap {
        height: 140px;
    }

    .oia-panel-title {
        font-size: 1.35rem;
    }

    .oia-panel-description {
        font-size: 0.9rem;
    }

    .oia-filter-pill {
        padding: 5px 8px;
        font-size: 0.65rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .oia-detail-panel {
        max-height: 100%;
        width: 50%;
        left: auto;
        right: 0;
        border-radius: 0;
        transform: translateX(100%);
    }
    .oia-detail-panel.oia-panel-open {
        transform: translateX(0);
    }
    .oia-panel-photo-wrap {
        height: 140px;
    }
    .oia-panel-drag-handle {
        display: none;
    }
}

/* Very short screens (portrait) - keep map visible */
@media (max-width: 768px) and (max-height: 600px) and (orientation: portrait) {
    .oia-detail-panel {
        max-height: 50vh;
    }
}

/* ═══ LIST PILL (outlined) ═══ */
.oia-filter-pill-list {
    background: transparent !important;
    border: 1.5px solid var(--deep-blue) !important;
    color: var(--deep-blue) !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.oia-filter-pill-list:hover {
    background: var(--deep-blue) !important;
    color: #fff !important;
}

/* ═══ ATTRACTION LIST POPUP ═══ */
.oia-attrlist-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.oia-attrlist-backdrop.oia-attrlist-open {
    opacity: 1;
    visibility: visible;
}

.oia-attrlist-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.oia-attrlist-open .oia-attrlist-modal {
    transform: scale(1) translateY(0);
}

.oia-attrlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e4e8ed;
    flex-shrink: 0;
}

.oia-attrlist-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
}

.oia-attrlist-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f2f5;
    color: #8b919a;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1;
}

.oia-attrlist-close:hover {
    background: #e0e3e8;
    color: var(--dark-text);
}

.oia-attrlist-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 max(4px, env(safe-area-inset-bottom));
    flex: 1;
    overscroll-behavior: contain;
}

.oia-attrlist-section {
    margin-bottom: 2px;
}

.oia-attrlist-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-left: 3px solid transparent;
    background: #f0f2f5;
    position: sticky;
    top: 0;
    z-index: 1;
}

.oia-attrlist-section-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.oia-attrlist-section-count {
    font-size: 0.72rem;
    color: #8b919a;
    font-weight: 500;
}

.oia-attrlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 26px;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.oia-attrlist-item:hover {
    background: rgba(26, 75, 140, 0.04);
}

.oia-attrlist-item:active {
    background: rgba(26, 75, 140, 0.08);
}

.oia-attrlist-item-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.oia-attrlist-item-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark-text);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oia-attrlist-item-region {
    font-size: 0.72rem;
    color: #8b919a;
    flex-shrink: 0;
}

/* Mobile fullscreen slide-up */
@media (max-width: 768px) {
    .oia-attrlist-backdrop {
        align-items: flex-end;
    }

    .oia-attrlist-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .oia-attrlist-open .oia-attrlist-modal {
        transform: translateY(0);
    }

    .oia-attrlist-header {
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .oia-attrlist-section-header {
        padding: 10px 16px;
    }

    .oia-attrlist-item {
        padding: 13px 16px 13px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oia-map-container *,
    .oia-map-container *::before,
    .oia-map-container *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .oia-attrlist-backdrop,
    .oia-attrlist-modal {
        transition: none;
    }
}

/* ═══ GOOGLE RATING STARS ═══ */
.oia-panel-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 10px 0 4px;
    font-size: 0.9rem;
}
.oia-star {
    font-size: 1.15rem;
    line-height: 1;
}
.oia-star-full {
    color: #f4b400;
}
.oia-star-half {
    color: #f4b400;
    opacity: 0.6;
}
.oia-star-empty {
    color: #ccc;
}
.oia-rating-number {
    font-weight: 600;
    color: var(--dark-text);
    margin-left: 4px;
    font-size: 0.95rem;
}
.oia-rating-reviews {
    color: var(--warm-gray);
    font-size: 0.8rem;
    margin-left: 2px;
}

/* ═══ SEO CONTENT (visually hidden, crawlable) ═══ */
.oia-seo-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ═══ MARKER CLUSTER (spiderfy) ═══ */
.marker-cluster {
    background: rgba(26, 75, 140, 0.18);
    border-radius: 50%;
    cursor: pointer !important;
    transition: transform 0.15s ease;
}
.marker-cluster:hover {
    transform: scale(1.15);
}
.marker-cluster:active {
    transform: scale(0.95);
}
.marker-cluster div {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    margin: 4px;
    border-radius: 50%;
    background: var(--oia-deep-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.marker-cluster-small div { background: #3dabf5; }
.marker-cluster-medium div { background: #ff8a65; font-size: 0.9rem; }
.marker-cluster-large div { background: #ef5350; font-size: 0.95rem; }
