/* ========================================================== */
/**
 * /templates/rent/css/locationslist.css
 * Locations List Page Styles — AutoRent Dark Map Edition
 */

:root {
    --loc-primary:     #FE5001;
    --loc-primary-h:   #E54801;
    --loc-dark:        #111827;
    --loc-muted:       #6b7280;
    --loc-border:      #e5e7eb;
    --loc-bg-soft:     #f9fafb;
    --loc-radius:      12px;
    --loc-radius-sm:   8px;
    --loc-shadow:      0 1px 3px rgba(0,0,0,.08);
    --loc-shadow-lg:   0 10px 40px rgba(0,0,0,.12);
}

/* ==========================================================
   MAP CONTAINER
   ========================================================== */

.ar-map-container {
    border: none;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e5e7eb;
    /* Light mode professional shadow */
    box-shadow:
        0 0 0 1px rgba(254, 80, 1, 0.35),
        0 0 32px rgba(254, 80, 1, 0.12),
        0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Top accent bar */
.ar-map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #FE5001 40%, #ff7a33 60%, transparent 100%);
    z-index: 1000;
}

/* Subtle corner pip */
.ar-map-container::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: #FE5001;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 0 8px 2px rgba(254, 80, 1, 0.6);
    animation: ar-pulse 2s ease-in-out infinite;
}

@keyframes ar-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.5); }
}

.ar-map-canvas {
    width: 100%;
    height: 520px;
    border-radius: 0;

}

/* Leaflet attribution */
.leaflet-control-attribution {
    display: none !important;
}

/* Zoom controls */
.leaflet-control-zoom a {
    background: #fff !important;
    color: #374151 !important;
    border-color: #e5e7eb !important;
    transition: background .15s, color .15s;
}

.leaflet-control-zoom a:hover {
    background: #FE5001 !important;
    color: #fff !important;
    border-color: #FE5001 !important;
}

/* Leaflet Map Customization */
/* Popup — dark card style */
.ar-map-popup {
    font-size: 13px;
}

.ar-map-popup h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.ar-map-popup p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.leaflet-popup-content-wrapper {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.15), 0 0 16px rgba(254,80,1,.10) !important;
    color: #111827 !important;
}

.leaflet-popup-tip {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
}

.leaflet-popup-close-button {
    color: #888 !important;
    transition: color .15s;
}

.leaflet-popup-close-button:hover {
    color: #FE5001 !important;
}

/* ==========================================================
   MAP OVERLAY LABEL (optional top-left badge on map)
   ========================================================== */

.ar-map-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(8px);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    pointer-events: none;
}

.ar-map-label span {
    color: #FE5001;
}

/* ==========================================================
   TWO COLUMN LAYOUT
   ========================================================== */

.ar-locations-two-col {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
    align-items: start;
}

.ar-locations-col-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ar-locations-col-right {
    position: relative;
}

/* ==========================================================
   LOCATIONS GRID
   ========================================================== */

.ar-locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* ==========================================================
   LOCATION CARD
   ========================================================== */

.ar-location-card {
    background: #fff;
    border: 1px solid var(--loc-border);
    border-radius: var(--loc-radius);
    padding: 24px;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
}

.ar-location-card:hover {
    box-shadow: var(--loc-shadow-lg);
    transform: translateY(-2px);
    border-color: var(--loc-primary);
}

/* Card Header */
.ar-location-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ar-location-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(254, 80, 1, .08);
    color: var(--loc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ar-location-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--loc-dark);
    margin: 0;
    line-height: 1.3;
}

/* Card Info */
.ar-location-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.ar-location-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--loc-dark);
    line-height: 1.5;
}

.ar-location-row svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--loc-muted);
}

.ar-location-label {
    font-weight: 500;
    color: var(--loc-muted);
    margin-right: 4px;
}

.ar-location-time {
    font-weight: 600;
    color: var(--loc-dark);
}

.ar-location-description {
    font-size: 14px;
    color: var(--loc-muted);
    line-height: 1.5;
    margin-top: 4px;
}

/* Card Footer */
.ar-location-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--loc-border);
}

.ar-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--loc-primary);
    text-decoration: none;
    transition: color .15s;
}

.ar-location-btn:hover {
    color: var(--loc-primary-h);
}

.ar-location-btn svg {
    transition: transform .15s;
}

.ar-location-card:hover .ar-location-btn svg {
    transform: translateX(3px);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {
    .ar-locations-two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ar-locations-grid {
        grid-template-columns: 0.5fr 0.5fr;
    }

    .ar-locations-col-right {
        order: -1;
    }

    .ar-map-container.sticky {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .ar-map-canvas {
        height: 320px;
    }

    .ar-locations-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ar-location-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ar-map-canvas {
        height: 280px;
    }
}

/* ==========================================================
   GOOGLE MAPS INFO WINDOW (fallback)
   ========================================================== */

.vrcgmapinfow {
    padding: 4px;
}

.vrcgmapinfow h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--loc-dark);
}

.vrcgmapinfowdescr {
    font-size: 12px;
    color: var(--loc-muted);
    margin: 0;
    line-height: 1.4;
}

.container {
    max-width: 100%;
}