.drl-map-marker {
    width: 24px;
    height: 24px;
    background: var(--gray-900, #1a1a1a);
    border: 2px solid var(--white, #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--white, #fff);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.drl-map-marker:hover,
.drl-map-marker--active {
    background: var(--success-500, #17B26A);
}

/* Cluster markers */

.drl-cluster-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-900, #181D27);
    border: 2px solid var(--white, #fff);
    color: var(--white, #fff);
    font-size: 13px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.drl-cluster-marker:hover {
    background: var(--success-500, #17B26A);
}

/* ── Desktop map popup (custom, replaces Google InfoWindow) ── */

.drl-iw-overlay {
    position: fixed;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.drl-iw-overlay--visible {
    pointer-events: auto;
    opacity: 1;
}

.drl-iw-wrap {
    position: relative;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
    background: var(--white, #fff);
    animation: drl-iw-in 0.2s ease;
}

@keyframes drl-iw-in {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.drl-iw__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
    color: var(--gray-600, #535862);
    transition: background 0.15s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drl-iw__close:hover {
    background: var(--white, #fff);
    color: var(--gray-900, #181D27);
}

.drl-iw {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 280px;
    overflow: hidden;
}

.drl-iw:hover {
    text-decoration: none;
    color: inherit;
}

.drl-iw__img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-100, #f3f4f6);
}

.drl-iw__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100, #f3f4f6);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23d1d5db' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
}

.drl-iw__body {
    padding: 14px 16px 16px;
}

.drl-iw__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900, #181D27);
    margin: 0 0 2px;
}

.drl-iw__address {
    font-size: 13px;
    color: var(--gray-500, #6b7280);
    line-height: 1.4;
    margin: 0 0 10px;
}

.drl-iw__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-600, #3F6257);
    transition: gap 0.2s ease;
}

.drl-iw:hover .drl-iw__cta {
    gap: 6px;
}

/* Map shimmer placeholder */

.drl-map-shimmer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: var(--gray-100, #f3f4f6);
    transition: opacity 0.4s ease;
}

.drl-map-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    animation: drl-shimmer 1.5s ease-in-out infinite;
}

@keyframes drl-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Map reset-view button */

.drl-map-reset {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-lg, 10px);
    background: var(--gray-900, #181D27);
    color: var(--white, #fff);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drl-map-reset--visible {
    opacity: 1;
    pointer-events: auto;
}

.drl-map-reset:hover {
    background: var(--gray-700, #344054);
}

.drl-map-reset svg {
    flex-shrink: 0;
}

/* Map loading state */

.drl-map-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
    background: var(--gray-50, #f9fafb);
}

.drl-map-loading p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-400, #9ca3af);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.drl-map-spinner {
    position: relative;
    width: 44px;
    height: 44px;
}

.drl-map-spinner::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2.5px solid var(--gray-200, #e5e7eb);
    border-top-color: var(--gray-900, #181D27);
    border-radius: 50%;
    animation: drl-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.drl-map-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    background: var(--gray-900, #181D27);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5s2.5 1.12 2.5 2.5S13.38 11.5 12 11.5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5s2.5 1.12 2.5 2.5S13.38 11.5 12 11.5z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    opacity: 0.35;
}

@keyframes drl-spin {
    to { transform: rotate(360deg); }
}
