/* Container when inside modal drawer */
#modal-ShopsMapModal .drawer-body {
    padding: 0 !important;
    padding-top: 3.5rem !important;
    overflow: hidden !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.tz-map-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #f8fafc;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 768px) {
    .tz-map-modal-container {
        height: 100%;
        min-height: 100%;
        padding: 0 !important;
    }
}

/* Fullscreen Map Canvas */
#tzShopsMap {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    z-index: 1;
}

/* Remove default leaflet container outline */
.leaflet-container {
    font-family: inherit !important;
}

/* Top Floating Search & Filter Bar */
.tz-map-top-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.tz-map-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.tz-map-search-box:focus-within {
    border-color: #4361ee;
    box-shadow: 0 4px 18px rgba(67, 97, 238, 0.18);
}

.tz-map-search-icon {
    color: #64748b;
    font-size: 0.85rem;
    margin-right: 8px;
}

.tz-map-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    background: transparent;
}

.tz-map-search-input::placeholder {
    color: #94a3b8;
}

.tz-map-counter-pill {
    background: #ffffff;
    color: #4361ee;
    border: 1px solid #dbeafe;
    border-radius: 50px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Floating GPS Locate Button */
.tz-map-locate-btn {
    position: absolute;
    right: 16px;
    bottom: 230px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tz-map-locate-btn:hover {
    background: #4361ee;
    color: #ffffff;
    border-color: #4361ee;
    transform: scale(1.05);
}

.tz-map-locate-btn:active {
    transform: scale(0.95);
}

/* Custom Leaflet Marker Styling */
.tz-map-pin-wrapper {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}

.tz-map-pin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #4361ee;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
}

.tz-map-pin::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #4361ee;
}

.tz-map-pin:hover,
.tz-map-pin.active {
    background: #4361ee;
    color: #ffffff;
    transform: scale(1.15) translateY(-3px);
    z-index: 999 !important;
    box-shadow: 0 6px 18px rgba(67, 97, 238, 0.35);
}

.tz-map-pin.active::after {
    border-top-color: #4361ee;
}

.tz-map-pin-price {
    color: #ff6b00;
    font-weight: 800;
}

.tz-map-pin:hover .tz-map-pin-price,
.tz-map-pin.active .tz-map-pin-price {
    color: #fef08a;
}

/* User Location GPS Dot */
.tz-user-gps-dot {
    width: 14px;
    height: 14px;
    background: #3b82f6;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
    animation: tzGpsPulse 2s infinite;
}

@keyframes tzGpsPulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Bottom Floating Salon Cards Carousel */
.tz-map-bottom-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 12px calc(14px + var(--safe-bottom, env(safe-area-inset-bottom, 0px))) 12px;
    pointer-events: none;
}

.tz-map-cards-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px 4px 4px;
    pointer-events: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.tz-map-cards-scroll::-webkit-scrollbar {
    display: none;
}

/* Individual Salon Preview Card in Map */
.tz-map-shop-card {
    flex: 0 0 300px;
    width: 300px;
    max-width: 85vw;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    scroll-snap-align: center;
    position: relative;
}

.tz-map-shop-card.active {
    border-color: #4361ee;
    box-shadow: 0 8px 28px rgba(67, 97, 238, 0.25);
    transform: translateY(-2px);
}

.tz-map-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tz-map-card-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.tz-map-card-info {
    flex: 1;
    min-width: 0;
}

.tz-map-card-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tz-map-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 3px;
}

.tz-map-card-rating {
    background: #fef3c7;
    color: #b45309;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tz-map-card-wait {
    background: #fff7ed;
    color: #c2410c;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.tz-map-card-wait--zero {
    background: #f0fdf4;
    color: #15803d;
}

.tz-map-card-services {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tz-map-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.tz-map-card-price-box {
    display: flex;
    flex-direction: column;
}

.tz-map-card-price-label {
    font-size: 0.62rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tz-map-card-price-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ff6b00;
}

.tz-map-card-btn-view {
    background: #4361ee;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.tz-map-card-btn-view:hover {
    background: #3b50d6;
    transform: scale(1.03);
}

.tz-map-card-btn-view:active {
    transform: scale(0.97);
}
