/* ========================================
   COMPONENT: Office Locations
   ======================================== */

.office-locations-page {
    background: #ffffff;
}

/* Office Locations Hero Section */
.office-locations-hero {
    padding: 60px 0 40px;
    background: #ffffff;
    color: #111111;
    border-bottom: none;
}

.office-locations-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.office-locations-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.office-locations-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #4b5563;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.office-locations-gradient-line {
    width: 580px;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(90deg,
        #9d4edd 0%,
        #ff006e 25%,
        #ffbe0b 50%,
        #00f5ff 75%,
        #3a86ff 100%);
    border-radius: 2px;
}

/* Office Locations Section */
.office-locations-section {
    padding: 60px 0;
    background: #ffffff;
    color: #111111;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.location-region {
    border-bottom: 1px solid #e5e7eb;
    padding: 32px 0;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 1200px;
}

.location-region:last-child {
    border-bottom: none;
    padding-bottom: 56px;
}

.location-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.location-region {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #111111;
    flex: 1;
    text-align: center;
}

.location-toggle {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: #111111;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 0;
    position: absolute;
    right: 0;
}

.location-toggle:hover {
    color: var(--accent-color);
}

.location-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.location-toggle[aria-expanded="true"] svg {
    transform: none;
}

.location-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 24px 0;
}

.location-details {
    width: 100%;
    position: relative;
    background: url('../images/footer/footer-bg.jpg') center/cover no-repeat;
    padding: 24px 0;
    animation: slideDown 0.3s ease-out;
    max-height: 500px;
    overflow: hidden;
    border-radius: 16px;
}

.location-details::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    border-radius: inherit;
    pointer-events: none;
}

.location-details[style*="display: none"] {
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
        padding: 24px 0;
    }
}

.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.location-address,
.location-contact {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.location-address strong,
.location-contact strong {
    color: #111111;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Multi-Location Grid Layout */
.locations-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0 auto;
    padding: 0 24px;
    justify-content: center;
    justify-items: center;
    max-width: 900px;
}

.location-card {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    transition: all 0.3s ease;
    min-height: 280px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.location-card-media {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    height: 100%;
}

.location-card-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
}

.location-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    padding: 40px 48px;
    width: 50%;
    background: linear-gradient(135deg, rgba(93, 120, 140, 0.98), rgba(74, 100, 120, 0.98));
    min-width: 0;
    text-align: left;
    align-items: flex-start;
}

.location-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.location-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.location-card-address {
    font-size: 14px;
    line-height: 1.6;
    color: #e5e7eb;
    margin: 0;
}

.location-card-phone {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.location-card-link {
    font-size: 14px;
    color: #ffbe0b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 8px;
    display: inline-block;
}

.location-card-link:hover {
    text-decoration: underline;
    color: #ffd60a;
}

/* Dark Theme */
[data-theme="dark"] .office-locations-page {
    background: #060e14;
}

[data-theme="dark"] .office-locations-hero {
    background: #060e14;
    color: #f8fafc;
}

[data-theme="dark"] .office-locations-section {
    background: #060e14;
    color: #f8fafc;
}

[data-theme="dark"] .office-locations-title {
    color: #f8fafc;
}

[data-theme="dark"] .office-locations-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .location-region {
    border-bottom-color: rgba(148, 163, 184, 0.28);
}

[data-theme="dark"] .location-name,
[data-theme="dark"] .location-toggle {
    color: #f8fafc;
}

[data-theme="dark"] .location-toggle:hover {
    color: #67e8f9;
}

[data-theme="dark"] .location-details {
    background: url('../images/footer/footer-bg.jpg') center/cover no-repeat;
}

[data-theme="dark"] .location-details::before {
    background: rgba(6, 14, 20, 0.72);
}

[data-theme="dark"] .location-card {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .location-card-body {
    background: linear-gradient(135deg, rgba(7, 60, 80, 0.95), rgba(5, 44, 61, 0.95));
}

[data-theme="dark"] .location-card-title,
[data-theme="dark"] .location-card-phone {
    color: #f8fafc;
}

[data-theme="dark"] .location-card-address {
    color: #cbd5e1;
}

[data-theme="dark"] .location-card-link {
    color: #67e8f9;
}

[data-theme="dark"] .location-card-link:hover {
    color: #a5f3fc;
}

[data-theme="dark"] .location-card-image {
    filter: brightness(0.9) saturate(1.05);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .location-card {
        min-height: 240px;
    }

    .location-card-body {
        padding: 32px 40px;
    }
}

@media (max-width: 768px) {
    .office-locations-title {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .office-locations-subtitle {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .location-name {
        font-size: 26px;
    }

    .location-header {
        flex-wrap: wrap;
        gap: 16px;
    }

    .location-toggle {
        margin-left: 0;
    }

    .location-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .location-name {
        width: 100%;
    }

    .locations-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .location-card {
        min-height: 220px;
    }

    .location-card-media {
        height: 220px;
    }

    .location-card-image {
        width: 50%;
        height: 100%;
    }

    .location-card-body {
        width: 50%;
        padding: 24px 32px;
    }

    .location-card-title {
        font-size: 16px;
    }

    .location-card-address {
        font-size: 12px;
    }

    .office-locations-hero {
        padding: 40px 0 30px;
    }

    .office-locations-section {
        padding: 40px 0;
    }

    .location-region {
        padding: 20px 0;
    }

    .location-region:last-child {
        padding-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .office-locations-title {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .office-locations-subtitle {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .location-name {
        font-size: 24px;
    }

    .location-toggle {
        width: 40px;
        height: 40px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .location-card {
        padding: 0;
        min-height: auto;
        flex-direction: column;
    }

    .location-card-media {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        height: auto;
    }

    .location-card-image {
        width: 100%;
        height: 200px;
    }

    .location-card-body {
        width: 100%;
        padding: 20px 16px;
        text-align: left;
        align-items: flex-start;
    }

    .location-card-title {
        font-size: 18px;
    }

    .location-card-address {
        font-size: 12px;
    }

    .office-locations-hero {
        padding: 30px 0 20px;
    }

    .office-locations-section {
        padding: 20px 0;
    }

    .location-region {
        padding: 16px 0;
    }

    .location-region:last-child {
        padding-bottom: 28px;
    }

    .location-divider {
        margin: 12px 0;
    }

    .location-details {
        padding: 12px 0;
    }
}
