 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Inter', sans-serif;
            background: #f0f2f5;
            color: #1a1a2e;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        .header {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: white;
            padding: 0.8rem 1rem;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .logo h1 {
            font-size: 1.3rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .logo h1 img {
            height: 32px;
            vertical-align: middle;
        }
        .logo p {
            font-size: 0.65rem;
            opacity: 0.8;
        }
        .last-update {
            background: rgba(255,255,255,0.1);
            padding: 0.3rem 0.8rem;
            border-radius: 40px;
            font-size: 0.7rem;
        }
        .hero-welcome {
            background: white;
            margin: 0.8rem 1rem;
            padding: 1rem 1.2rem;
            border-radius: 1.2rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
            border: 1px solid #eef2f8;
        }
        .hero-welcome p {
            color: #1e4a5f;
            line-height: 1.4;
            font-size: 0.85rem;
            margin-bottom: 0.5rem;
        }
        .hero-badge {
            background: #eef2ff;
            display: inline-block;
            padding: 0.2rem 0.8rem;
            border-radius: 40px;
            font-size: 0.65rem;
            font-weight: 600;
            color: #0c6b7e;
            margin-top: 0.3rem;
        }
        .add-to-home {
            background: #e8f4f8;
            padding: 0.8rem 1rem;
            border-radius: 0.8rem;
            margin-top: 0.8rem;
            font-size: 0.75rem;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }
        .add-to-home i {
            font-size: 1.2rem;
            color: #0f6b7c;
        }
        .add-to-home .ios-instruction, .add-to-home .android-instruction {
            display: inline-block;
            background: white;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.7rem;
        }
        .search-section {
            background: white;
            padding: 1rem;
            margin: 0 1rem 1rem 1rem;
            border-radius: 1.2rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
        }
        .search-box {
            display: flex;
            gap: 0.6rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }
        .search-input-wrapper {
            flex: 2;
            position: relative;
            min-width: 160px;
        }
        .search-input {
            width: 100%;
            padding: 0.8rem 0.8rem 0.8rem 2.5rem;
            border: 1.5px solid #e2edf2;
            border-radius: 1rem;
            font-size: 0.9rem;
            background: #fff;
        }
        .search-input:focus {
            border-color: #2c9c7c;
            outline: none;
        }
        .search-input-wrapper i {
            position: absolute;
            left: 0.8rem;
            top: 50%;
            transform: translateY(-50%);
            color: #7f8c8d;
            font-size: 0.9rem;
        }
        .search-btn, .location-btn, .view-toggle-btn, .share-btn {
            padding: 0.7rem 1rem;
            border: none;
            border-radius: 1rem;
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: 0.2s;
        }
        .search-btn {
            background: #0f6b7c;
            color: white;
        }
        .location-btn {
            background: #2c9c7c;
            color: white;
        }
        .view-toggle-btn {
            background: #5b6e8c;
            color: white;
        }
        .share-btn {
            background: #e67e22;
            color: white;
        }
        .filters-section {
            background: #f9fbfd;
            border-radius: 1rem;
            padding: 0.8rem;
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            align-items: flex-end;
        }
        .filter-group {
            flex: 1;
            min-width: 120px;
        }
        .filter-group label {
            font-size: 0.65rem;
            font-weight: 700;
            color: #3c6e71;
            text-transform: uppercase;
        }
        .filter-group select, .filter-group input {
            width: 100%;
            padding: 0.5rem;
            border-radius: 0.8rem;
            border: 1px solid #dce5ec;
            font-size: 0.8rem;
        }
        .apply-filters-btn {
            background: #2c9c7c;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            font-size: 0.8rem;
        }
        .results-section {
            margin: 1rem;
            flex: 1;
        }
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin-bottom: 1rem;
        }
        .sort-options {
            display: flex;
            gap: 0.5rem;
        }
        .sort-btn {
            background: white;
            border: 1px solid #cbdde6;
            border-radius: 2rem;
            padding: 0.3rem 1rem;
            font-size: 0.75rem;
            cursor: pointer;
        }
        .sort-btn.active {
            background: #0f6b7c;
            color: white;
        }
        .stations-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
        @media (max-width: 680px) {
            .stations-grid {
                grid-template-columns: 1fr;
            }
        }
        .station-card {
            background: white;
            border-radius: 1.2rem;
            overflow: hidden;
            transition: 0.2s;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            border: 1px solid #e9f0f5;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .station-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }
        .card-header {
            padding: 0.8rem 1rem 0.5rem;
            border-bottom: 1px solid #eff3f8;
        }
        .station-name-line {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.4rem;
            margin-bottom: 0.3rem;
        }
        .station-name {
            font-weight: 800;
            font-size: 1rem;
            color: #022c3a;
            flex: 1;
        }
        .brand-badge {
            background: #d9eaf0;
            color: #0c6b7e;
            padding: 0.2rem 0.6rem;
            border-radius: 40px;
            font-size: 0.65rem;
            font-weight: 700;
        }
        .status-time-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 0.3rem 0;
            flex-wrap: wrap;
            gap: 0.3rem;
        }
        .open-badge {
            background: #d1fae5;
            color: #0b5e42;
            padding: 0.2rem 0.6rem;
            border-radius: 40px;
            font-size: 0.65rem;
            font-weight: 600;
        }
        .closed-badge {
            background: #ffe4e2;
            color: #b91c1c;
        }
        .postcode-distance {
            font-size: 0.65rem;
            color: #5f7f8c;
            display: flex;
            gap: 0.4rem;
        }
        .card-body {
            padding: 0.8rem 1rem;
            flex: 1;
        }
        .main-price {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            background: #f1f9fe;
            padding: 0.6rem 0.8rem;
            border-radius: 1rem;
            margin-bottom: 0.8rem;
        }
        .price {
            font-size: 1.6rem;
            font-weight: 800;
        }
        .fuel-type-badge {
            background: #e9ecef;
            padding: 0.2rem 0.6rem;
            border-radius: 40px;
            font-size: 0.65rem;
            font-weight: 600;
        }
        .all-prices {
            background: #ffffff;
            border-radius: 0.8rem;
        }
        .price-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
            border-bottom: 1px solid #edf2f7;
            flex-wrap: wrap;
            gap: 0.3rem;
            font-size: 0.75rem;
        }
        .price-row:last-child {
            border: none;
        }
        .fuel {
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            flex-wrap: wrap;
        }
        .stock-status {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .stock-btn {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            padding: 0 3px;
        }
        .stock-thumb-up {
            color: #2b7e5c;
        }
        .stock-thumb-down {
            color: #b91c1c;
        }
        .stock-badge {
            font-size: 0.6rem;
            font-weight: 600;
            padding: 0.15rem 0.5rem;
            border-radius: 30px;
        }
        .stock-good {
            background: #d1fae5;
            color: #0b5e42;
        }
.ad-space {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    margin: 10px;
    border: 1px solid #eee;
}

/* Label center */
.ad-label {
    text-align: center;
    font-size: 10px;
    color: #999;
    margin-bottom: 6px;
}

/* 🔥 MAIN FIX */
.ad-box {
    width: 100%;
    min-height: auto;   /* ❌ remove fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix ad content alignment */
.ad-box iframe,
.ad-box img,
.ad-box div {
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Mobile optimization */
@media (max-width: 480px) {
    .ad-space {
        padding: 8px;
        margin: 8px;
    }
}
        .station-card-ad {
            margin: 0.5rem 0;
            text-align: center;
            background: #fafafa;
            border-radius: 8px;
            overflow: hidden;
        }
        .stock-low {
            background: #ffedd5;
            color: #b45309;
        }
        .stock-out {
            background: #fee2e2;
            color: #b91c1c;
        }
        .price-row.in-stock-good {
            background: #ecfdf5;
            border-radius: 0.6rem;
            margin: 0.2rem 0;
            padding: 0.4rem 0.6rem;
        }
        .price-row.out-of-stock {
            background: #fef2f2;
            border-radius: 0.6rem;
            margin: 0.2rem 0;
            padding: 0.4rem 0.6rem;
            opacity: 0.85;
        }
        .updated-warning {
            background: #fee2e2;
            color: #b91c1c;
            font-size: 0.6rem;
            padding: 0.5rem;
            border-radius: 0.8rem;
            margin-top: 0.5rem;
            text-align: center;
            font-weight: 600;
            border-left: 3px solid #b91c1c;
        }
        .updated-info {
            font-size: 0.6rem;
            padding: 0.3rem;
            color: #5f7f8c;
            margin-top: 0.3rem;
            text-align: right;
        }
        .card-footer {
            padding: 0.6rem 1rem;
            background: #fafdff;
            border-top: 1px solid #eef3f8;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.4rem;
        }
        .directions-link, .station-permalink {
            background: #0f6b7c;
            color: #ffffff;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            text-decoration: none;
            font-size: 0.7rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .map-container {
            display: none;
            background: white;
            border-radius: 1rem;
            overflow: hidden;
            margin-top: 1rem;
        }
        #map {
            height: 400px;
            width: 100%;
        }
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }
        .modal-content {
            background: white;
            border-radius: 1.5rem;
            max-width: 550px;
            width: 90%;
            max-height: 85vh;
            overflow-y: auto;
            animation: fadeInUp 0.2s ease;
        }
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .modal-header {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: white;
            padding: 0.8rem 1.2rem;
            display: flex;
            justify-content: space-between;
            position: sticky;
            top: 0;
            border-radius: 1.5rem 1.5rem 0 0;
        }
        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            line-height: 1;
        }
        .modal-body {
            padding: 1rem;
        }
        .detail-row {
            padding: 0.7rem 0;
            border-bottom: 1px solid #eef2f8;
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .detail-label {
            font-weight: 700;
            color: #2c6e6b;
            min-width: 100px;
            font-size: 0.8rem;
        }
        .detail-value {
            flex: 1;
            font-size: 0.85rem;
            word-break: break-word;
        }
        .modal-share-section {
            background: #f8fafc;
            padding: 0.8rem;
            border-radius: 1rem;
            margin-top: 0.8rem;
            text-align: center;
        }
        .modal-share-links {
            display: flex;
            justify-content: center;
            gap: 0.8rem;
            flex-wrap: wrap;
            margin-top: 0.5rem;
        }
        .modal-share-link {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.4rem 0.9rem;
            border-radius: 2rem;
            text-decoration: none;
            font-size: 0.7rem;
            font-weight: 500;
        }
        .modal-share-link.facebook {
            background: #1877f2;
            color: white;
        }
        .modal-share-link.email {
            background: #ea4335;
            color: white;
        }
        .modal-share-link.whatsapp {
            background: #25d366;
            color: white;
        }
        .amenity-tag {
            background: #eef2ff;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.65rem;
            margin-right: 4px;
            display: inline-block;
            margin-bottom: 4px;
        }
        .footer {
            background: #022c3a;
            color: #b9d8e3;
            padding: 1.2rem;
            text-align: center;
            margin-top: 1.5rem;
            font-size: 0.7rem;
        }
        .footer a {
            color: #b9d8e3;
            text-decoration: none;
        }
        .footer a:hover {
            text-decoration: underline;
        }
        .loading {
            text-align: center;
            padding: 2rem;
        }
        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #0f6b7c;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
        .no-results {
            text-align: center;
            padding: 2rem;
            background: white;
            border-radius: 1rem;
            grid-column: 1/-1;
        }
        .send-to-friend {
            background: #8b5cf6;
            color: white;
            border: none;
            padding: 0.4rem 1rem;
            border-radius: 2rem;
            font-size: 0.75rem;
            cursor: pointer;
        }
        #thankYouPopup {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            z-index: 10001;
            max-width: 280px;
            animation: slideInRight 0.3s ease;
        }
        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        .map-filters {
            padding: 0.6rem;
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            background: white;
            border-bottom: 1px solid #e2e8f0;
        }
        .map-filters select, .map-filters button {
            padding: 0.4rem 0.6rem;
            border-radius: 1rem;
            font-size: 0.7rem;
            border: 1px solid #cbd5e1;
            background: white;
        }
        .contact-email {
            margin-top: 0.5rem;
            font-size: 0.7rem;
        }
        .contact-email a {
            color: #b9d8e3;
            text-decoration: none;
        }
        .contact-email a:hover {
            text-decoration: underline;
        }
        @media (max-width: 480px) {
            .search-box {
                flex-direction: column;
                gap: 0.8rem;
            }
            .search-input-wrapper {
                width: 100%;
            }
            .button-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 0.6rem;
                width: 100%;
            }
            .button-grid .search-btn,
            .button-grid .location-btn,
            .button-grid .view-toggle-btn,
            .button-grid .share-btn {
                margin: 0;
                width: 100%;
                text-align: center;
                justify-content: center;
            }
            .filter-group {
                min-width: 100px;
            }
            .header-content {
                flex-direction: column;
                align-items: flex-start;
            }
            .hero-welcome {
                margin: 0.5rem;
            }
            .search-section {
                margin: 0 0.5rem 0.8rem;
            }
            .results-section {
                margin: 0.5rem;
            }
        }
        /* Fuel prices row - horizontal layout across full width */
.fuel-prices-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid #eef2f3;
    border-bottom: 1px solid #eef2f3;
    width: 100%;
}

.fuel-price-item {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 0.85rem;
}

.fuel-name {
    font-weight: 500;
    color: #2d3e50;
    white-space: nowrap;
}

.fuel-name i {
    margin-right: 0.25rem;
    color: #0f6b7c;
}

.fuel-price {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.stock-votes {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.stock-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.stock-thumb-up:hover {
    background: #2b7e5c;
    color: white;
    border-color: #2b7e5c;
}

.stock-thumb-down:hover {
    background: #b91c1c;
    color: white;
    border-color: #b91c1c;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .fuel-prices-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .fuel-price-item {
        min-width: auto;
        flex-wrap: wrap;
    }
    
    .stock-votes {
        margin-left: 0;
    }
}
/* Modal Styles - Mobile First */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 1.5rem 1.5rem 0 0;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 1.5rem 1.5rem 0 0;
}

.modal-header h3 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:active {
    background: rgba(255,255,255,0.3);
    transform: scale(0.95);
}

.modal-body {
    padding: 1rem;
}

/* Station Detail Styles */
.station-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eef2f8;
}

.station-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #022c3a;
    margin: 0;
}

.modal-brand {
    background: #d9eaf0;
    color: #0c6b7e;
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 700;
}

.detail-section {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 0.8rem;
}

.detail-icon-row {
    display: flex;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #eef2f8;
}

.detail-icon-row:last-child {
    border-bottom: none;
}

.detail-icon-row i {
    width: 24px;
    font-size: 1.1rem;
    color: #0f6b7c;
    margin-top: 0.2rem;
}

.detail-text {
    flex: 1;
    line-height: 1.4;
}

.detail-text strong {
    display: block;
    font-size: 0.75rem;
    color: #5f7f8c;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-link {
    color: #0f6b7c;
    text-decoration: none;
    font-weight: 600;
}

.phone-link:active {
    color: #2c9c7c;
}

.opening-hours {
    font-size: 0.85rem;
    color: #2c6e6b;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.amenity-tag {
    background: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #0f6b7c;
    border: 1px solid #d9eaf0;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #022c3a;
    margin: 0 0 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prices-section {
    background: white;
    border: 1px solid #eef2f8;
}

/* Price rows in modal */
.modal-body .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #edf2f7;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-body .price-row:last-child {
    border-bottom: none;
}

.fuel-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-body .fuel {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2d3e50;
}

.modal-body .fuel i {
    margin-right: 0.3rem;
    color: #0f6b7c;
    width: 18px;
}

.price-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.price-value {
    font-size: 1rem;
    font-weight: 800;
}

.vote-buttons {
    display: flex;
    gap: 0.5rem;
}

.modal-body .stock-btn {
    background: #f0f2f5;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.modal-body .stock-thumb-up {
    color: #2b7e5c;
}

.modal-body .stock-thumb-down {
    color: #b91c1c;
}

.modal-body .stock-thumb-up:active {
    background: #2b7e5c;
    color: white;
    border-color: #2b7e5c;
}

.modal-body .stock-thumb-down:active {
    background: #b91c1c;
    color: white;
    border-color: #b91c1c;
}

/* Stock badges */
.stock-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.stock-good {
    background: #d1fae5;
    color: #0b5e42;
}

.stock-low {
    background: #ffedd5;
    color: #b45309;
}

.stock-out {
    background: #fee2e2;
    color: #b91c1c;
}

/* Update warnings */
.updated-warning {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.7rem;
    padding: 0.6rem;
    border-radius: 0.8rem;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.updated-info {
    font-size: 0.65rem;
    padding: 0.4rem;
    color: #5f7f8c;
    text-align: center;
    background: #f8fafc;
    border-radius: 0.8rem;
}

/* Ad space in modal */
.ad-space-modal {
    background: #fafafa;
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
    margin: 0.5rem 0;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.8rem;
    margin: 0.5rem 0;
}

.directions-btn, .copy-link-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    text-align: center;
}

.directions-btn {
    background: #0f6b7c;
    color: white;
    border: none;
}

.directions-btn:active {
    background: #0a4d5a;
    transform: scale(0.98);
}

.copy-link-btn {
    background: #2c9c7c;
    color: white;
    border: none;
    cursor: pointer;
}

.copy-link-btn:active {
    background: #1f7a60;
    transform: scale(0.98);
}

/* Share section */
.share-section {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
}

.share-section p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    color: #2d3e50;
}

.share-buttons {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.share-btn-icon:active {
    opacity: 0.7;
}

.share-btn-icon.facebook {
    background: #1877f2;
    color: white;
}

.share-btn-icon.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn-icon.email {
    background: #ea4335;
    color: white;
}

/* Tablet and Desktop */
@media (min-width: 641px) {
    .modal {
        align-items: center;
    }
    
    .modal-content {
        border-radius: 1.5rem;
        max-height: 85vh;
        animation: fadeInUp 0.3s ease;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .modal-close:hover {
        background: rgba(255,255,255,0.3);
        transform: scale(1.05);
    }
    
    .directions-btn:hover, .copy-link-btn:hover {
        transform: translateY(-2px);
    }
    
    .share-btn-icon:hover {
        opacity: 0.85;
        transform: translateY(-2px);
    }
}

/* Small phones */
@media (max-width: 480px) {
    .modal-body {
        padding: 0.8rem;
    }
    
    .station-title {
        font-size: 1.1rem;
    }
    
    .detail-icon-row {
        gap: 0.6rem;
        padding: 0.6rem 0;
    }
    
    .detail-icon-row i {
        font-size: 1rem;
        width: 20px;
    }
    
    .price-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .vote-buttons {
        gap: 0.8rem;
    }
    
    .modal-body .stock-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn-icon {
        justify-content: center;
        padding: 0.7rem 1rem;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}


/* Navigation Tabs - Added without affecting existing design */
        .nav-tabs {
            background: white;
            border-bottom: 1px solid #e2e8f0;
            padding: 0 20px;
            margin-top: 0;
        }
        .nav-tabs-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            gap: 8px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
        }
        .nav-tab {
            padding: 14px 24px;
            font-size: 16px;
            font-weight: 600;
            color: #4a5568;
            background: none;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            white-space: nowrap;
            font-family: 'Inter', sans-serif;
        }
        .nav-tab i {
            margin-right: 8px;
        }
        .nav-tab:hover {
            color: #0f6b7c;
        }
        .nav-tab.active {
            color: #0f6b7c;
        }
        .nav-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 3px;
            background: #0f6b7c;
            border-radius: 3px 3px 0 0;
        }
        @media (max-width: 640px) {
            .nav-tab {
                padding: 12px 16px;
                font-size: 14px;
            }
        }
        
        /* About Page Styles */
        .about-page, .contact-page, .lines-page {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
            background: white;
            border-radius: 16px;
            margin-top: 20px;
            margin-bottom: 20px;
        }
        .about-page h1, .contact-page h1, .lines-page h1 {
            font-size: 32px;
            color: #1e293b;
            margin-bottom: 24px;
            font-weight: 700;
        }
        .about-page h2, .contact-page h2, .lines-page h2 {
            font-size: 22px;
            color: #0f6b7c;
            margin: 24px 0 16px 0;
            font-weight: 600;
        }
        .about-page h3 {
            font-size: 18px;
            color: #1e293b;
            margin: 20px 0 12px 0;
            font-weight: 600;
        }
        .about-page p, .contact-page p, .lines-page p {
            line-height: 1.6;
            color: #334155;
            margin-bottom: 16px;
        }
        .about-page ul, .contact-page ul, .lines-page ul {
            margin: 16px 0;
            padding-left: 24px;
        }
        .about-page li, .contact-page li, .lines-page li {
            margin: 8px 0;
            line-height: 1.5;
            color: #334155;
        }
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            margin: 32px 0;
        }
        .info-card {
            background: #f8fafc;
            padding: 24px;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }
        .info-card i {
            font-size: 32px;
            color: #0f6b7c;
            margin-bottom: 16px;
        }
        .info-card h4 {
            font-size: 18px;
            margin-bottom: 12px;
            color: #1e293b;
        }
        .keyword-section {
            background: #f1f5f9;
            padding: 24px;
            border-radius: 12px;
            margin: 24px 0;
        }
        .keyword-tag {
            display: inline-block;
            background: white;
            padding: 6px 12px;
            margin: 4px;
            border-radius: 20px;
            font-size: 13px;
            color: #0f6b7c;
            border: 1px solid #cbd5e1;
        }
        
        /* Contact Form Styles */
        .contact-form {
            background: #f8fafc;
            padding: 32px;
            border-radius: 16px;
            margin-top: 24px;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #1e293b;
        }
        .form-group input, .form-group textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            font-size: 16px;
            font-family: 'Inter', sans-serif;
            transition: border-color 0.2s;
        }
        .form-group input:focus, .form-group textarea:focus {
            outline: none;
            border-color: #0f6b7c;
            box-shadow: 0 0 0 3px rgba(15, 107, 124, 0.1);
        }
        .captcha-container {
            background: #f1f5f9;
            padding: 16px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .captcha-code {
            font-size: 28px;
            font-weight: bold;
            letter-spacing: 8px;
            font-family: monospace;
            background: white;
            padding: 8px 16px;
            border-radius: 6px;
            display: inline-block;
            border: 1px solid #cbd5e1;
        }
        .refresh-captcha-btn {
            background: #0f6b7c;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.2s;
        }
        .refresh-captcha-btn:hover {
            background: #0a4f5c;
        }
        .submit-btn {
            background: #0f6b7c;
            color: white;
            padding: 14px 32px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }
        .submit-btn:hover {
            background: #0a4f5c;
        }
        .form-message {
            margin-top: 16px;
            padding: 12px;
            border-radius: 8px;
            display: none;
        }
        .form-message.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
            display: block;
        }
        .form-message.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
            display: block;
        }
        
        /* Lines Page Styles */
        .lines-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin: 24px 0;
        }
        .line-item {
            background: #f8fafc;
            padding: 20px;
            border-radius: 12px;
            border-left: 4px solid #0f6b7c;
        }
        .line-item h3 {
            margin: 0 0 8px 0;
            color: #0f6b7c;
        }
        .line-item p {
            margin: 0;
            color: #64748b;
        }
        
        /* Hide main content on non-home pages */
        .main-content {
            display: <?php echo $currentPage === 'home' ? 'block' : 'none'; ?>;
        }