/* map-styles.css - Premium Map Page Styles for HAMONIC */

.map-page-section {
    padding: 120px 0 80px;
    background: #f8fafc;
    min-height: 100vh;
}

.map-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Header */
.map-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.map-title {
    font-size: 2.5rem;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.map-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #4fd18b, #3ab776);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.map-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Main Content Grid */
.map-content-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

/* Stores List & Cards */
.stores-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.store-card {
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    padding: 0;
}

.store-card:last-child {
    border-bottom: none;
}

.store-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    transition: background 0.2s ease;
}

.store-card-header:hover {
    background: #f8fafc;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.store-expand-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #4fd18b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Expanded State */
.store-card.expanded .store-card-header {
    background: #f0fdf4;
}

.store-card.expanded .store-name {
    color: #166534;
}

.store-card.expanded .store-expand-icon {
    background: #4fd18b;
    color: white;
    transform: rotate(180deg);
}

.store-details {
    padding: 0 1.5rem 1.5rem;
    background: #f0fdf4;
    border-top: 1px solid #dcfce7;
    animation: slideDown 0.3s ease-out;
}

.store-details p {
    font-size: 0.95rem;
    color: #334155;
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.store-details p strong {
    color: #1e293b;
}

/* Contact Buttons inside details */
.contact-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #bbf7d0;
}

.tns-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.tns-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.line-btn {
    background: #06c755;
    color: white;
}

.line-btn:hover {
    background: #05b04b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(6, 199, 85, 0.25);
}

.phone-btn {
    background: #1e293b;
    color: white;
}

.phone-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.25);
}

/* Map Container */
.map-frame-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: 550px;
    position: sticky;
    top: 100px;
}

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

/* Tab Bar */
.map-tab-bar {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: #f0fdf4;
    color: #166534;
}

.tab-btn:not(.active):hover {
    color: #4fd18b;
    background: #f8fafc;
}

/* Keyframes */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .map-content-layout {
        grid-template-columns: 1fr;
    }
    
    .map-frame-wrapper {
        height: 400px;
        position: static;
    }
}

@media (max-width: 768px) {
    .map-page-section {
        padding: 100px 0 60px;
    }
    
    .map-title {
        font-size: 2rem;
    }
}
