/* Locales Widget Styles */

/* Main Wrapper - Two Column Layout */
.rnz-locales-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
    padding: 0;
}

/* Left Column */
.rnz-locales-left {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    padding: calc(6 * .25rem);
    background-color: #ffffff0d;
    border: 1px solid #ffffff1a;
    border-radius: 12px;
    overflow: hidden;
}

/* Header */
.rnz-locales-header {
    padding: 30px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1f1f1f 100%);
}

.rnz-locales-header-icon {
    font-size: 24px;
    color: #e74c3c;
    margin-bottom: 15px;
    display: inline-block;
}

.rnz-locales-header-icon svg {
    width: 24px;
    height: 24px;
    fill: #e74c3c;
}

.rnz-locales-header-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.rnz-locales-header-description {
    font-size: 14px;
    color: #cccccc;
    margin: 0;
    line-height: 1.5;
}

/* Locations List */
.rnz-locations-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 450px;
}

/* Custom Scrollbar */
.rnz-locations-list::-webkit-scrollbar {
    width: 6px;
}

.rnz-locations-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.rnz-locations-list::-webkit-scrollbar-thumb {
    background: rgba(231, 76, 60, 0.5);
    border-radius: 10px;
}

.rnz-locations-list::-webkit-scrollbar-thumb:hover {
    background: rgba(231, 76, 60, 0.7);
}

/* Location Item */
.rnz-location-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid transparent;
}

.rnz-location-item:last-child {
    margin-bottom: 0;
}

.rnz-location-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.rnz-location-item.active {
    background-color: rgba(231, 76, 60, 0.2);
    border-left-color: #e74c3c;
}

/* Location Number Badge */
.rnz-location-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #e74c3c;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.rnz-location-item.active .rnz-location-number {
    background-color: #c0392b;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.3);
}

/* Location Content */
.rnz-location-content {
    flex: 1;
}

.rnz-location-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.rnz-location-address {
    font-size: 14px;
    color: #cccccc;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.rnz-location-hours {
    font-size: 13px;
    color: #999999;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rnz-location-hours i {
    font-size: 12px;
}

/* Main Button */
.rnz-locales-button {
    display: block;
    width: calc(100% - 40px);
    margin: 20px;
    padding: 15px 30px;
    background-color: #e74c3c;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.rnz-locales-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Right Column */
.rnz-locales-right {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Location Count Badge */
.rnz-location-count-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #ffffff;
    color: #333333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rnz-location-count-badge strong {
    font-weight: 700;
    color: #e74c3c;
}

/* Map Container */
.rnz-locales-map {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

/* Leaflet Map Adjustments */
.rnz-locales-map .leaflet-container {
    border-radius: 12px;
}

.rnz-locales-map .leaflet-popup-content-wrapper {
    background-color: #2c2c2c;
    color: #ffffff;
    border-radius: 8px;
}

.rnz-locales-map .leaflet-popup-content {
    margin: 15px;
    font-size: 14px;
}

.rnz-locales-map .leaflet-popup-tip {
    background-color: #2c2c2c;
}

/* Map Overlay */
.rnz-map-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    z-index: 1000;
}

.rnz-map-overlay-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.rnz-map-overlay-description {
    font-size: 14px;
    color: #cccccc;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* Map Overlay Buttons */
.rnz-map-overlay-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.rnz-map-button {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.rnz-map-button-primary {
    background-color: #e74c3c;
    color: #ffffff;
    border: 2px solid #e74c3c;
}

.rnz-map-button-primary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.rnz-map-button-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.rnz-map-button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .rnz-locales-left {
        flex: 0 0 40%;
    }

    .rnz-locations-list {
        max-height: 350px;
    }

    .rnz-locales-map {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .rnz-locales-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .rnz-locales-left {
        flex: 1 1 auto;
    }

    .rnz-locations-list {
        max-height: 300px;
    }

    .rnz-locales-map {
        height: 400px;
    }

    .rnz-map-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 20px;
    }

    .rnz-map-overlay-title {
        font-size: 20px;
    }

    .rnz-map-overlay-buttons {
        flex-direction: column;
    }

    .rnz-map-button {
        width: 100%;
        text-align: center;
    }

    .rnz-location-count-badge {
        top: 15px;
        left: 15px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .rnz-locales-header {
        padding: 20px;
    }

    .rnz-locales-header-title {
        font-size: 22px;
    }

    .rnz-locations-list {
        padding: 15px;
    }

    .rnz-location-item {
        padding: 15px;
        gap: 12px;
    }

    .rnz-location-name {
        font-size: 16px;
    }

    .rnz-location-address {
        font-size: 13px;
    }

    .rnz-locales-button {
        margin: 15px;
        width: calc(100% - 30px);
    }

    .rnz-locales-map {
        height: 350px;
    }
}

/* Animation for active state transition */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.rnz-location-item.active .rnz-location-number {
    animation: pulse 2s infinite;
}