/**
 * Map Info Cards Styles
 * Styles for child listing markers and info cards display
 */

/* ==========================================================================
   Map Wrapper
   ========================================================================== */

.jv-map-block-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
    margin-bottom: 32px;
}

.jv-map-block-wrapper.has-child-markers {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ==========================================================================
   Map Container
   ========================================================================== */

.jv-map-block {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

/* Popup styling shared across map providers */
.javo-map-popup-container .leaflet-popup-content-wrapper,
.javo-map-popup-container.mapboxgl-popup .mapboxgl-popup-content {
    background: #ffffff !important;
    border-radius: 18px !important;
    border: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    padding: 0;
    animation: javoMapPopupIn 0.18s ease-out;
    transform-origin: center bottom;
}

@keyframes javoMapPopupIn {
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.javo-map-popup-container .leaflet-popup-content,
.javo-map-popup-container.mapboxgl-popup .mapboxgl-popup-content {
    background: #ffffff !important;
    border-radius: 18px !important;
    margin: 0;
    padding: 10px 12px 11px;
}

.javo-map-popup-container .leaflet-popup-tip,
.javo-map-popup-container.mapboxgl-popup .mapboxgl-popup-tip {
    background: #ffffff !important;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
}

.leaflet-container .javo-map-popup-container a.leaflet-popup-close-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1);
    right: 0;
    top: 0;
    opacity: 1;
    font-size: 14px;
    line-height: 1;
}

.leaflet-container .javo-map-popup-container a.leaflet-popup-close-button:hover {
    background: #f8fafc;
    color: #0f172a;
}

.javo-map-popup-container.mapboxgl-popup .mapboxgl-popup-close-button {
    width: 44px;
    height: 44px;
    right: 0;
    top: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1);
}

.jv-map-block .gm-style .gm-style-iw-c {
    border-radius: 18px !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14) !important;
    padding: 0 !important;
    border: none !important;
}

.jv-map-block .gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.jv-map-block .gm-style .gm-ui-hover-effect {
    width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1);
    top: 8px !important;
    right: 8px !important;
}

.jv-map-popup {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 250px;
    max-width: 250px;
}

.javo-map-popup__thumb,
.javo-map-popup .javo-map-popup__thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.javo-map-popup__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.javo-map-popup__placeholder {
    font-size: 22px;
    color: #94a3b8;
}

.javo-map-popup__body {
    flex: 1;
    min-width: 0;
}

.javo-map-popup__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.javo-map-popup__meta {
    margin: 4px 0 0;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mapboxgl-popup.javo-map-popup-container {
    z-index: 30;
}

.javo-map-popup-container .javo-map-marker-popup,
.javo-map-marker-popup {
    width: 220px;
    max-width: calc(100vw - 64px);
    box-sizing: border-box;
}

.javo-map-popup-container .javo-map-marker-popup__title,
.javo-map-marker-popup__title {
    margin: 0 26px 6px 0 !important;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

.javo-map-popup-container .javo-map-marker-popup__address,
.javo-map-marker-popup__address {
    display: block;
    margin: 0 !important;
    color: #4b5563;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.42;
    letter-spacing: 0;
}

.javo-map-popup-container .javo-map-marker-popup__address span,
.javo-map-marker-popup__address span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.javo-map-popup-container .javo-map-marker-popup__directions,
.javo-map-marker-popup__directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 28px;
    margin-top: 10px !important;
    padding: 6px 10px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.javo-map-popup-container .javo-map-marker-popup__directions,
.javo-map-popup-container .javo-map-marker-popup__directions span {
    color: #ffffff !important;
}

.javo-map-marker-popup__directions:hover {
    background: #1e293b;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.javo-map-marker-popup__directions i {
    font-size: 14px;
}

.jv-map-no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ==========================================================================
   Marker Styles
   ========================================================================== */

/* Parent Marker */
.javo-map-parent-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ff5a5f;
    color: #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.javo-map-parent-marker i {
    transform: rotate(45deg);
    font-size: 18px;
}

.javo-map-parent-marker:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Child Marker */
.javo-map-child-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #4a90e2;
    color: #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.javo-map-child-marker i {
    transform: rotate(45deg);
    font-size: 16px;
}

.javo-map-child-marker:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Custom Marker Container */
.javo-custom-marker {
    background: transparent !important;
    border: none !important;
}

.javo-map-marker-wrapper {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    width: 32px !important;
    height: 39px !important;
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
}

.javo-map-marker-wrapper--size-small {
    width: 24px !important;
    height: 29px !important;
}

.javo-map-marker-wrapper--size-medium {
    width: 32px !important;
    height: 39px !important;
}

.javo-map-marker-wrapper--size-large {
    width: 42px !important;
    height: 51px !important;
}

.javo-map-marker {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: var(--javo-marker-width, 32px);
    height: var(--javo-marker-height, 39px);
    --javo-marker-width: 32px;
    --javo-marker-height: 39px;
    --javo-marker-shape: 32px;
    --javo-marker-icon-size: 13px;
    --javo-marker-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --javo-marker-bg: #111827;
    --javo-marker-fg: #ffffff;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #ffffff;
    color: var(--javo-marker-fg);
    line-height: 1;
    filter: none;
    cursor: pointer;
    transform: translateZ(0);
    transform-origin: center bottom;
    transition: none;
    overflow: visible;
    padding: 0;
    box-shadow: none;
}

.javo-map-marker--size-small {
    --javo-marker-width: 24px;
    --javo-marker-height: 29px;
    --javo-marker-shape: 24px;
    --javo-marker-icon-size: 10px;
    --javo-marker-shadow: 0 7px 10px -4px rgba(0, 0, 0, 0.16), 0 3px 5px -3px rgba(0, 0, 0, 0.12);
}

.javo-map-marker--size-medium {
    --javo-marker-width: 32px;
    --javo-marker-height: 39px;
    --javo-marker-shape: 32px;
    --javo-marker-icon-size: 13px;
    --javo-marker-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.javo-map-marker--size-large {
    --javo-marker-width: 42px;
    --javo-marker-height: 51px;
    --javo-marker-shape: 42px;
    --javo-marker-icon-size: 17px;
    --javo-marker-shadow: 0 12px 18px -4px rgba(0, 0, 0, 0.13), 0 5px 8px -4px rgba(0, 0, 0, 0.1);
}

.javo-map-marker__shape {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--javo-marker-shape, 32px);
    height: var(--javo-marker-shape, 32px);
    background: var(--javo-marker-bg);
    color: var(--javo-marker-fg);
    border: 2px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    box-shadow: var(--javo-marker-shadow);
    box-sizing: border-box;
    pointer-events: none;
    transform: rotate(-45deg);
    transform-origin: center center;
}

.javo-map-marker__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--javo-marker-fg);
    font-size: var(--javo-marker-icon-size, 13px);
    line-height: 1;
    transform: rotate(45deg);
}

.javo-map-marker__icon i {
    display: block;
    font-size: var(--javo-marker-icon-size, 13px);
    line-height: 1;
}

.javo-map-marker:hover {
    transform: translateZ(0);
    filter: none;
}

.javo-map-marker--child {
    --javo-marker-bg: #2563eb;
}

.mapboxgl-marker .javo-map-marker {
    pointer-events: auto;
}

/* ==========================================================================
   Marker Click Effects
   ========================================================================== */

@keyframes markerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.14);
        opacity: 0.8;
    }
}

@keyframes markerBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes markerGlow {
    0%, 100% {
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.8), 0 3px 6px rgba(0, 0, 0, 0.2);
    }
}

@keyframes markerRipple {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7), 0 3px 6px rgba(0, 0, 0, 0.2);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(74, 144, 226, 0), 0 3px 6px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0), 0 3px 6px rgba(0, 0, 0, 0.2);
    }
}

.javo-map-marker-pulse {
    animation: markerPulse 0.6s ease-in-out;
}

.javo-map-marker-bounce {
    animation: markerBounce 0.5s ease-in-out;
}

.javo-map-marker-glow {
    animation: markerGlow 2s ease-in-out;
}

.javo-map-marker-ripple {
    animation: markerRipple 1s ease-out;
}

/* ==========================================================================
   Info Cards Container
   ========================================================================== */

.jv-map-info-cards {
    position: relative;
    width: 100%;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 16px;
}

.jv-map-info-cards.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Position Variants */
.jv-map-info-cards.jv-info-cards-bottom {
    position: relative;
}

.jv-map-info-cards.jv-info-cards-overlay-bottom {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    width: auto;
    max-width: none;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.jv-map-info-cards.jv-info-cards-side {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    margin: 0;
    border-radius: 0;
    transform: translateX(100%);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

.jv-map-info-cards.jv-info-cards-side.active {
    transform: translateX(0);
}

/* ==========================================================================
   Info Cards Inner Container
   ========================================================================== */

.jv-info-cards-container {
    position: relative;
    padding: 16px;
}

.jv-info-cards-bottom .jv-info-cards-container,
.jv-info-cards-overlay-bottom .jv-info-cards-container {
    padding: 12px 56px 12px 12px;
}

.jv-info-cards-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.jv-info-cards-close:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: scale(1.1);
}

.jv-info-cards-close i {
    font-size: 14px;
    color: #495057;
}

/* ==========================================================================
   Info Cards Scroll Area
   ========================================================================== */

.jv-info-cards-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.jv-info-cards-scroll::-webkit-scrollbar {
    height: 6px;
}

.jv-info-cards-scroll::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.jv-info-cards-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.jv-info-cards-scroll::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.jv-info-cards-bottom .jv-info-cards-scroll,
.jv-info-cards-overlay-bottom .jv-info-cards-scroll {
    overflow-y: visible;
}

/* ==========================================================================
   Info Cards List
   ========================================================================== */

.jv-info-cards-list {
    display: flex;
    gap: 12px;
    padding: 4px 0;
    min-width: min-content;
}

.jv-info-cards-bottom .jv-info-cards-list,
.jv-info-cards-overlay-bottom .jv-info-cards-list {
    align-items: stretch;
    min-width: 0;
}

/* Side panel layout */
.jv-info-cards-side .jv-info-cards-list {
    flex-direction: column;
}

/* ==========================================================================
   Individual Info Card
   ========================================================================== */

.jv-info-card {
    flex: 0 0 auto;
    width: 280px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.jv-info-card:hover {
    border-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
    transform: translateY(-2px);
}

.jv-info-card.active {
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

/* Side panel cards */
.jv-info-cards-side .jv-info-card {
    width: 100%;
}

.jv-info-cards-bottom .jv-info-card,
.jv-info-cards-overlay-bottom .jv-info-card {
    width: min(640px, 100%);
    min-width: min(520px, 100%);
    border-width: 1px;
}

.jv-info-cards-bottom .jv-info-card:only-child,
.jv-info-cards-overlay-bottom .jv-info-card:only-child {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

/* ==========================================================================
   Info Card Inner
   ========================================================================== */

.jv-info-card-inner {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.jv-info-cards-bottom .jv-info-card-inner,
.jv-info-cards-overlay-bottom .jv-info-card-inner {
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
}

.jv-info-card-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.jv-info-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jv-info-card:hover .jv-info-card-image img {
    transform: scale(1.05);
}

.jv-info-cards-bottom .jv-info-card-image,
.jv-info-cards-overlay-bottom .jv-info-card-image {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
}

.jv-info-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jv-info-cards-bottom .jv-info-card-content,
.jv-info-cards-overlay-bottom .jv-info-card-content {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.jv-info-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #212529;
}

.jv-info-cards-bottom .jv-info-card-title,
.jv-info-cards-overlay-bottom .jv-info-card-title {
    flex: 0 1 auto;
    max-width: 240px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jv-info-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jv-info-card-title a:hover {
    color: #4a90e2;
}

.jv-info-card-address,
.jv-info-card-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.jv-info-cards-bottom .jv-info-card-address,
.jv-info-cards-bottom .jv-info-card-phone,
.jv-info-cards-overlay-bottom .jv-info-card-address,
.jv-info-cards-overlay-bottom .jv-info-card-phone {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.jv-info-cards-bottom .jv-info-card-address span,
.jv-info-cards-bottom .jv-info-card-phone a,
.jv-info-cards-overlay-bottom .jv-info-card-address span,
.jv-info-cards-overlay-bottom .jv-info-card-phone a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jv-info-card-address i,
.jv-info-card-phone i {
    flex: 0 0 auto;
    width: 14px;
    font-size: 12px;
    color: #adb5bd;
}

.jv-info-card-phone a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jv-info-card-phone a:hover {
    color: #4a90e2;
}

.jv-info-card-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.jv-info-cards-bottom .jv-info-card-actions,
.jv-info-cards-overlay-bottom .jv-info-card-actions {
    margin-left: auto;
}

.jv-info-card-focus {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jv-info-card-focus:hover {
    background: #4a90e2;
    border-color: #4a90e2;
    color: #ffffff;
}

.jv-info-card-focus i {
    font-size: 14px;
}

/* ==========================================================================
   Animation Variants
   ========================================================================== */

/* Slide animation */
.jv-info-cards-animate-slide {
    transform: translateY(20px);
}

.jv-info-cards-animate-slide.active {
    transform: translateY(0);
}

.jv-map-info-cards.jv-info-cards-side.jv-info-cards-animate-slide {
    transform: translateX(100%);
}

.jv-map-info-cards.jv-info-cards-side.jv-info-cards-animate-slide.active {
    transform: translateX(0);
}

/* Fade animation */
.jv-info-cards-animate-fade {
    opacity: 0;
    transform: none;
}

.jv-info-cards-animate-fade.active {
    opacity: 1;
}

/* Scale animation */
.jv-info-cards-animate-scale {
    opacity: 0;
    transform: scale(0.95);
}

.jv-info-cards-animate-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .jv-info-card {
        width: 260px;
    }

    .jv-info-cards-side {
        width: 100%;
        max-width: 320px;
    }

    .jv-info-cards-overlay-bottom {
        margin: 12px;
        max-width: calc(100% - 24px);
    }
}

@media (max-width: 480px) {
    .jv-info-card {
        width: 240px;
    }

    .jv-info-card-inner {
        flex-direction: column;
        gap: 8px;
    }

    .jv-info-card-image {
        width: 100%;
        height: 140px;
    }

    .jv-info-card-actions {
        justify-content: flex-end;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .jv-map-info-cards {
        display: none !important;
    }

    .jv-info-cards-close {
        display: none !important;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.jv-info-card:focus,
.jv-info-card-focus:focus,
.jv-info-cards-close:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .jv-map-info-cards,
    .jv-info-card,
    .jv-info-card-image img,
    .javo-map-parent-marker,
    .javo-map-child-marker {
        transition: none;
        animation: none;
    }
}

/* ==========================================================================
   Zoom Controls
   ========================================================================== */

.javo-map-embed-wrapper .leaflet-control-zoom,
.javo-map-embed-wrapper .mapboxgl-ctrl-group {
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.javo-map-embed-wrapper .leaflet-control-zoom a,
.javo-map-embed-wrapper .mapboxgl-ctrl-group button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-family: inherit;
    font-weight: 700;
    line-height: 1 !important;
    text-indent: 0;
    text-decoration: none;
    text-shadow: none;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.javo-map-embed-wrapper .leaflet-control-zoom a:last-child,
.javo-map-embed-wrapper .mapboxgl-ctrl-group button:last-child {
    border-bottom: 0 !important;
}

.javo-map-embed-wrapper .leaflet-control-zoom a:hover,
.javo-map-embed-wrapper .mapboxgl-ctrl-group button:hover {
    background: #f8fafc !important;
    color: #020617 !important;
}

.javo-map-embed-wrapper .leaflet-control-zoom-in,
.javo-map-embed-wrapper .leaflet-control-zoom-out {
    font-size: 0 !important;
}

.javo-map-embed-wrapper .leaflet-control-zoom-in::before,
.javo-map-embed-wrapper .leaflet-control-zoom-out::before {
    display: block;
    color: inherit;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.javo-map-embed-wrapper .leaflet-control-zoom-in::before {
    content: "+";
    transform: translateY(-1px);
}

.javo-map-embed-wrapper .leaflet-control-zoom-out::before {
    content: "\2212";
    transform: translateY(-2px);
}

.javo-map-controls--small .leaflet-control-zoom a,
.javo-map-controls--small .mapboxgl-ctrl-group button {
    width: 34px !important;
    height: 34px !important;
}

.javo-map-controls--small .mapboxgl-ctrl-icon {
    background-size: 16px 16px !important;
}

.javo-map-controls--medium .leaflet-control-zoom a,
.javo-map-controls--medium .mapboxgl-ctrl-group button {
    width: 42px !important;
    height: 42px !important;
}

.javo-map-controls--medium .mapboxgl-ctrl-icon {
    background-size: 22px 22px !important;
}

.javo-map-controls--large .leaflet-control-zoom a,
.javo-map-controls--large .mapboxgl-ctrl-group button {
    width: 50px !important;
    height: 50px !important;
}

.javo-map-controls--large .mapboxgl-ctrl-icon {
    background-size: 30px 30px !important;
}

@media (max-width: 767px), (pointer: coarse) {
    .javo-map-embed-wrapper .leaflet-control-zoom a,
    .javo-map-embed-wrapper .mapboxgl-ctrl-group button {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
    }
}

/* ==========================================================================
   OSM tile tones
   ========================================================================== */

.javo-map-embed--carto-light-blue.leaflet-container {
    isolation: isolate;
    background: #cbd8e6 !important;
}

.javo-map-embed--carto-light-blue .leaflet-tile-pane {
    opacity: 0.74 !important;
}

.javo-map-embed--carto-light-blue .leaflet-tile.javo-map-tile-carto-light-blue,
.javo-map-embed--carto-light-blue .leaflet-tile {
    filter: saturate(0.86) brightness(1.04) !important;
}

.javo-map-embed--carto-light-blue.leaflet-container::after {
    content: none;
}

.javo-map-embed--carto-light-blue .leaflet-tooltip,
.javo-map-embed--carto-light-blue .leaflet-popup-content-wrapper,
.javo-map-embed--carto-light-blue .leaflet-popup-content,
.javo-map-embed--carto-light-blue .leaflet-popup-tip {
    background: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
}

/* ==========================================================================
   Compact Attribution (Post Meta Map)
   ========================================================================== */

.javo-post-meta-map .leaflet-control-attribution {
    font-size: 10px;
    line-height: 1.25;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.88);
    color: rgba(15, 23, 42, 0.84);
    border-top-left-radius: 6px;
}

.javo-post-meta-map .leaflet-control-attribution a {
    color: rgba(3, 105, 161, 0.92);
    text-decoration: none;
}

.javo-post-meta-map .leaflet-control-attribution a:hover {
    color: rgba(2, 132, 199, 1);
}
