﻿/* Premium marker styles with theme-matching colors */
.premium-price-marker {
    background: none !important;
    border: none !important;
}

.premium-marker {
    position: relative;
    width: 50px;
    height: 50px;
    text-align: center;
}

.premium-marker__shadow {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    filter: blur(1px);
}

.premium-marker__container {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    margin: 0 auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

/* Updated to use theme primary color instead of green */
.premium-marker__container.available {
    background: #0d47a1; /* Using theme primary color */
}

.premium-marker__container.unavailable {
    background: #c62828; /* Using theme danger color */
}

.premium-marker__price {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 13px;
    transform: rotate(45deg);
}

.premium-marker__rating {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #ef6c00; /* Theme warning color for rating */
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Hover and active states */
.premium-marker.hover .premium-marker__container,
.premium-marker.active .premium-marker__container {
    transform: rotate(-45deg) scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Enhanced popup styling */
.premium-popup-container .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
}

.premium-popup-container .leaflet-popup-content {
    margin: 0;
    width: 300px !important;
}

.premium-popup {
    padding: 20px;
}

.premium-popup__title {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: #212121;
}

.premium-popup__badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.premium-popup__badge.available {
    background-color: rgba(13, 71, 161, 0.15); /* Using theme primary */
    color: #0d47a1;
}

.premium-popup__badge.unavailable {
    background-color: rgba(198, 40, 40, 0.15);
    color: #c62828;
}

.premium-popup__rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.premium-popup__rating-stars {
    color: #ef6c00;
    margin-right: 5px;
}

.premium-popup__rating-count {
    color: #757575;
    font-size: 14px;
}

.premium-popup__price {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
}

.premium-popup__amount {
    font-size: 24px;
    font-weight: 500;
    color: #212121;
}

.premium-popup__currency {
    font-size: 16px;
    color: #212121;
    margin-left: 1px;
}

.premium-popup__period {
    font-size: 14px;
    color: #757575;
    margin-left: 5px;
}

.premium-popup__time-notice {
    background-color: rgba(13, 71, 161, 0.1);
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    color: #0d47a1;
    margin-bottom: 20px;
    text-align: center;
}

.premium-popup__actions {
    display: flex;
    gap: 10px;
}

.premium-popup__btn {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.premium-popup__btn--outline {
    border: 1px solid #D1D5DB;
    color: #0d47a1; /* Using theme primary color */
    background: white;
}

.premium-popup__btn--outline:hover {
    background-color: #F9FAFB;
}

/* Fixed to ensure white text color */
.premium-popup__btn--primary {
    background-color: #0d47a1; /* Using theme primary color */
    color: white !important; /* Added !important to override any conflicting rules */
    border: none;
}

.premium-popup__btn--primary:hover {
    background-color: #083679; /* Darker version of primary */
}

/* Style for teardrop marker (like the blue one in your first image) */
.marker-container {
    position: relative;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #2196F3;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.marker-pin:after {
    content: '';
    width: 14px;
    height: 14px;
    margin: 6px 0 0 6px;
    background: white;
    position: absolute;
    border-radius: 50%;
}

.marker-pin.available {
    background: #2196F3; /* Blue */
}

.marker-price {
    position: absolute;
    width: 40px;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    z-index: 1;
}

/* Style for circular marker (like the one in your second image) */
.blue-circle-marker {
    width: 24px;
    height: 24px;
    background-color: #2196F3;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Blue circular marker for location picker (matches the image) */
.location-marker-icon {
    background: none !important;
    border: none !important;
}
