/* ===================================================================
   GYMKOMPASSEN.SE - KOMPLETT STYLESHEET
   För: Stockholm, Göteborg & Malmö
   MÖRKGRÅ DESIGN
   =================================================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #FFC107;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* === NAVBAR === */
.navbar {
    background: #4a4a4a;
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.2rem;
}

.logo .tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* === HERO SECTION === */
.hero {
    background: #4a4a4a;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1,
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* === SEARCH BAR === */
.search-bar {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
}

.search-bar input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.search-bar input:focus {
    outline: 3px solid var(--accent-color);
}

/* === BUTTONS === */
.btn-primary,
.btn-secondary,
.btn-visit,
.btn-large {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary-color);
}

.btn-visit {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-visit:hover {
    background: #e55a2b;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* === STATS SECTION === */
.stats-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* === POPULAR SECTION / CITIES === */
.popular-section {
    padding: 4rem 0;
}

.popular-section h2,
.info-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.city-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.city-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.city-name {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* === INFO SECTION (How it works) === */
.info-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.info-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-light);
}

/* === FILTERS SECTION === */
.filters-section {
    padding: 2rem 0;
    background: var(--bg-light);
}

.filters {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.filters h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-group select,
.filter-group input[type="range"] {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-group input[type="range"] {
    padding: 0;
    height: 8px;
    background: var(--bg-light);
    cursor: pointer;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.filter-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* === MAP SECTION === */
.map-section {
    padding: 3rem 0;
}

.map-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

#map,
#gymMap {
    height: 500px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* === RESULTS / GYM GRID === */
.results-section {
    padding: 3rem 0;
}

.results-header {
    margin-bottom: 2rem;
}

.results-header h3 {
    color: var(--text-dark);
}

.gym-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* === GYM CARD === */
.gym-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
}

.gym-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.gym-card.featured {
    border-color: var(--accent-color);
    border-width: 3px;
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.gym-image {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.gym-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gym-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.gym-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.gym-city {
    color: var(--text-light);
    font-size: 0.9rem;
}

.gym-price {
    text-align: right;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-light);
}

.gym-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars,
.stars-large {
    color: var(--accent-color);
}

.gym-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.facility-tag {
    background: var(--bg-light);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.gym-actions {
    margin-top: 0.5rem;
}

/* === GYM DETAIL PAGE === */
.gym-detail-hero {
    background: #4a4a4a;
    color: white;
    padding: 3rem 0;
}

.gym-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.gym-detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.gym-location {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.gym-rating-large {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars-large {
    font-size: 1.5rem;
}

.rating-text {
    font-size: 1rem;
    opacity: 0.9;
}

.gym-price-box {
    background: white;
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    min-width: 200px;
}

.price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

/* === QUICK INFO === */
.quick-info-section {
    padding: 2rem 0;
    background: var(--bg-light);
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.info-icon {
    font-size: 2.5rem;
}

.info-content {
    flex: 1;
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* === DESCRIPTION SECTION === */
.description-section {
    padding: 3rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.main-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.main-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.main-content p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.main-content ul {
    list-style: none;
    padding-left: 0;
}

.main-content ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    line-height: 1.6;
}

.main-content ul li strong {
    color: var(--text-dark);
}

.facilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.facility-item {
    padding: 0.8rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-weight: 500;
}

/* === SIDEBAR === */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-box {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-box h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.price-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.price-item.current {
    background: #fff3e0;
    border: 2px solid var(--primary-color);
}

/* === CTA SECTION === */
.cta-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* === FOOTER === */
footer {
    background: #4a4a4a;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: white;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .hero h1,
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .nav-links {
        gap: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .gym-detail-header {
        flex-direction: column;
    }

    .gym-price-box {
        width: 100%;
    }

    .cities-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .gym-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .gym-name {
        font-size: 1.1rem;
    }

    .price-amount {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    #map,
    #gymMap {
        height: 350px;
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gym-card,
.city-card,
.info-card,
.stat-card {
    animation: fadeIn 0.5s ease-out;
}
