/**
 * RD Airbnb Interactive Map 3D Gold v2.0 - Elementor Widget Stylesheet
 */
.rd-airbnb-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    user-select: none;
    display: flex;
    flex-direction: column;
}

.rd-airbnb-map-wrapper.rd-fullscreen-mode {
    max-width: 100% !important;
    border-radius: 0 !important;
    height: 85vh !important;
}

/* Background Photo Styles */
.rd-map-photo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

.rd-map-photo-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    pointer-events: none;
}

/* Themes */
.rd-airbnb-map-wrapper.rd-theme-gold-3d-black {
    background: #000000;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.rd-airbnb-map-wrapper.rd-theme-caribe-ocean {
    background: radial-gradient(circle at 50% 50%, #0d2137 0%, #06111e 100%);
}

.rd-airbnb-map-wrapper.rd-theme-dark-luxury {
    background: #0f172a;
}

/* Filter Bar */
.rd-map-filters {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.rd-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.rd-filter-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

.rd-filter-btn.active {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    border-color: #ffd700;
    color: #000000;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

/* Map Stage */
.rd-map-stage {
    position: relative;
    z-index: 5;
    width: 100%;
    flex: 1;
    min-height: 480px;
    overflow: hidden;
    perspective: 1200px;
}

.rd-map-svg-holder {
    width: 100%;
    height: 100%;
}

.rd-svg-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.rd-svg-canvas.rd-3d-tilt {
    transform: rotateX(16deg) scale(0.98);
}

.rd-land-mass {
    fill: url(#rdGoldGradient);
    stroke: #ffffff;
    stroke-width: 2.2;
    cursor: pointer;
}

.rd-3d-bevel {
    opacity: 0.9;
}

.rd-provinces-lines {
    fill: none;
    stroke: rgba(0, 0, 0, 0.35);
    stroke-width: 1.2px;
}

.rd-island {
    fill: url(#rdGoldGradient);
    stroke: #ffffff;
    stroke-width: 1.5;
}

/* Pins */
.rd-map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 20;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rd-map-pin.dragging {
    cursor: grabbing !important;
    z-index: 35 !important;
    transform: translate(-50%, -50%) scale(1.3) !important;
}

.rd-map-pin:hover,
.rd-map-pin.active {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 25;
}

.rd-pin-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #000000;
    border: 2px solid #ffd700;
    border-radius: 9999px;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.8), 0 4px 10px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
    color: #ffd700;
    font-size: 11px;
    font-weight: 900;
}

.rd-pin-icon {
    font-size: 12px;
    line-height: 1;
}

.rd-pin-price {
    font-family: inherit;
    letter-spacing: -0.02em;
}

.rd-pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    background: rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rd-pulse 2s infinite ease-out;
    z-index: 1;
}

@keyframes rd-pulse {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.rd-pin-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 3px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.9);
    color: #ffd700;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    pointer-events: none;
}

/* Gliding Floating Logo */
.rd-gliding-logo {
    position: absolute;
    transform: translate(-50%, -100%);
    margin-top: -8px;
    pointer-events: none;
    z-index: 30;
}

.rd-logo-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -15px;
    left: -15px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.7) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    filter: blur(8px);
    animation: rd-glow 2s infinite alternate ease-in-out;
}

.rd-logo-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffd700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.6);
}

@keyframes rd-glow {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0.9; }
}

/* Property Hover Card */
.rd-property-card {
    position: absolute;
    width: 280px;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.2);
    z-index: 40;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.rd-property-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.rd-card-thumb {
    position: relative;
    height: 140px;
    width: 100%;
}

.rd-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-card-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.rd-card-body {
    padding: 14px 16px;
    color: #f8fafc;
}

.rd-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 6px;
}

.rd-card-rating {
    color: #fbbf24;
    font-weight: 700;
}

.rd-badge-superhost {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: #000000;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}

.rd-card-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
    color: #ffffff;
}

.rd-card-loc {
    font-size: 11px;
    color: #ffd700;
    margin: 0 0 10px;
}

.rd-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rd-amount {
    font-size: 18px;
    font-weight: 900;
    color: #ffd700;
}

.rd-night {
    font-size: 11px;
    color: #94a3b8;
}

.rd-btn-booking {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: #000000;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.rd-btn-booking:hover {
    transform: scale(1.05);
}

.rd-map-footer-bar {
    padding: 10px 16px;
    background: #000000;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
}

.rd-footer-tag {
    color: #ffd700;
    font-weight: 700;
}
