/* Location-Based Pricing Styles */
.location-banner {
    font-size: 14px;
}

.location-banner strong {
    color: #2c3e50;
}

.cursor-pointer {
    cursor: pointer !important;
}

.hover-shadow {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.hover-shadow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.region-option {
    transition: all 0.3s ease;
}

.region-option:hover {
    background-color: #f8f9fa !important;
    cursor: pointer;
}

.region-option:active {
    transform: scale(0.98);
}

#currentCityDisplay {
    font-weight: 500;
}

/* Price display special styling */
.price-regional {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.price-eye-icon {
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s;
}

.price-eye-icon:hover {
    opacity: 1;
}

/* RTL Support for location elements */
[dir="rtl"] .location-banner {
    text-align: right;
}

[dir="rtl"] .region-option {
    text-align: right;
}

/* New styles for location detection and pricing – theme-neutral (override via --location-banner-* if needed) */
.location-banner {
    background: var(--location-banner-bg, #f1f5f9);
    color: var(--location-banner-text, #1e293b);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--location-banner-border, rgba(0, 0, 0, 0.1));
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Price Reveal Styles */
.price-blur-container {
    position: relative;
    display: inline-block;
    min-width: 80px;
}

.price-blurred {
    filter: blur(5px);
    user-select: none;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.price-revealed {
    filter: blur(0);
    opacity: 1;
}

.price-reveal-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.price-reveal-btn:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.price-container.revealed .price-blurred {
    filter: none;
    opacity: 1;
}

.price-container.revealed .price-reveal-btn {
    display: none;
}

/* Region modal – new design (Market V3) */
.region-modal .modal-content.region-modal__content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.region-modal .region-modal__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.region-modal .region-modal__body {
    padding: 1.25rem 1.5rem;
    max-height: 60vh;
}

.region-modal__intro {
    text-align: center;
    color: #64748b;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.region-modal__loading {
    text-align: center;
    padding: 2rem;
}

.region-modal__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.region-modal__heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 1rem 0 0.5rem;
    padding: 0;
}

.region-modal__heading:first-child {
    margin-top: 0;
}

.region-modal__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.region-modal__option:hover {
    background: #f8fafc;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.region-modal__option:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.region-modal__option:active {
    transform: scale(0.99);
}

.region-modal__option-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e293b;
}

.region-modal__option-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: #dcfce7;
    color: #166534;
}

.region-modal__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[dir="rtl"] .region-modal__option {
    text-align: right;
}