/**
 * Ados Locations - Frontend Styles
 * Elegant dark theme with golden accents
 */

/* ===== CSS Variables (Defaults - overridden by plugin settings) ===== */
:root {
    --ados-bg-color: #111111;
    --ados-card-bg-color: #1a1a1a;
    --ados-primary-color: #c9a962;
    --ados-text-color: #ffffff;
    --ados-text-muted: #a0a0a0;
    --ados-border-radius: 12px;
    --ados-transition: all 0.3s ease;
}

/* ===== Main Wrapper ===== */
.ados-locations-wrapper {
    background-color: var(--ados-bg-color);
    padding: 60px 40px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

.ados-locations-wrapper *,
.ados-locations-wrapper *::before,
.ados-locations-wrapper *::after {
    box-sizing: border-box;
}

/* ===== Filter Tabs ===== */
.ados-locations-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.ados-filter-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.ados-filter-tab {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ados-text-muted);
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--ados-transition);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.ados-filter-tab:hover {
    color: var(--ados-text-color);
    background: rgba(255, 255, 255, 0.08);
}

.ados-filter-tab.active {
    color: var(--ados-bg-color);
    background: var(--ados-primary-color);
    font-weight: 600;
}

/* ===== Locations Grid ===== */
.ados-locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.ados-locations-grid[data-columns="1"] {
    grid-template-columns: 1fr;
    max-width: 700px;
}

.ados-locations-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.ados-locations-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== Location Card ===== */
.ados-location-card {
    background: var(--ados-card-bg-color);
    border-radius: var(--ados-border-radius);
    overflow: hidden;
    transition: var(--ados-transition);
    opacity: 1;
    transform: translateY(0);
}

.ados-location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ados-location-card.ados-hidden {
    display: none;
}

/* Animation for filtering */
.ados-location-card.ados-fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.ados-location-card.ados-fade-in {
    animation: adosFadeIn 0.4s ease forwards;
}

@keyframes adosFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Map Section ===== */
.ados-location-map {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background: #2a2a2a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.ados-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ados-transition);
}

.ados-location-card:hover .ados-map-image {
    transform: scale(1.05);
}

.ados-map-embed {
    width: 100%;
    height: 100%;
    border: none;
}

.ados-map-interactive {
    width: 100%;
    height: 100%;
}

.ados-map-link {
    display: block;
    width: 100%;
    height: 100%;
}

.ados-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: var(--ados-text-muted);
    font-size: 14px;
    gap: 10px;
}

.ados-map-placeholder .ados-map-icon,
.ados-map-placeholder span:first-child {
    font-size: 32px;
}

/* ===== Details Section ===== */
.ados-location-details {
    padding: 25px 5px;
}

.ados-detail-item {
    margin-bottom: 18px;
}

.ados-detail-item:last-child {
    margin-bottom: 0;
}

.ados-detail-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ados-primary-color);
    margin-bottom: 2px;
}

.ados-detail-value {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ados-text-color);
}

.ados-contact-link,
.ados-email-link {
    color: var(--ados-text-color);
    text-decoration: none;
    transition: var(--ados-transition);
}

.ados-contact-link:hover,
.ados-email-link:hover {
    color: var(--ados-primary-color);
}

/* ===== No Locations Message ===== */
.ados-no-locations {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--ados-text-muted);
    font-size: 16px;
    padding: 60px 20px;
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 1200px) {
    .ados-locations-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .ados-locations-wrapper {
        padding: 50px 30px;
    }

    .ados-locations-grid,
    .ados-locations-grid[data-columns="3"],
    .ados-locations-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .ados-location-map {
        height: 220px;
    }
}

@media screen and (max-width: 768px) {
    .ados-locations-wrapper {
        padding: 40px 20px;
    }

    .ados-filter-tabs {
        width: 100%;
        justify-content: center;
        padding: 6px;
    }

    .ados-filter-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .ados-locations-grid,
    .ados-locations-grid[data-columns="2"],
    .ados-locations-grid[data-columns="3"],
    .ados-locations-grid[data-columns="4"] {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
    }

    .ados-location-map {
        height: 200px;
    }

    .ados-location-details {
        padding: 20px 25px 25px;
    }

    .ados-detail-value {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .ados-locations-wrapper {
        padding: 30px 15px;
    }

    .ados-locations-filter {
        margin-bottom: 35px;
    }

    .ados-filter-tabs {
        gap: 5px;
    }

    .ados-filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .ados-location-map {
        height: 180px;
    }

    .ados-location-details {
        padding: 18px 20px 22px;
    }

    .ados-detail-label {
        font-size: 11px;
    }

    .ados-detail-value {
        font-size: 13px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .ados-locations-wrapper {
        background: white;
        padding: 20px;
    }

    .ados-locations-filter {
        display: none;
    }

    .ados-location-card {
        break-inside: avoid;
        background: #f5f5f5;
        border: 1px solid #ddd;
    }

    .ados-detail-label {
        color: #666;
    }

    .ados-detail-value,
    .ados-contact-link,
    .ados-email-link {
        color: #333;
    }
}