/* ==========================================================================
   THE HARD SHOULDER - Service Station Mode CSS
   Motorway blue/amber color scheme for the Easter egg site
   ========================================================================== */

/* Override CSS variables for services mode */
body.services-mode {
    --primary-color: #1e3a5f;
    --secondary-color: #2c5282;
    --accent-color: #f39c12;
    --primary-color-dark: #152a45;
    --primary-color-light: #3d5a80;
}

/* ==========================================================================
   Header Branding for Services Mode
   ========================================================================== */

body.services-mode .site-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-bottom: 3px solid var(--accent-color);
}

body.services-mode .services-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

body.services-mode .services-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

body.services-mode .services-site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    body.services-mode .services-site-name {
        font-size: 1rem;
    }
}

body.services-mode .site-logo a {
    color: #ffffff;
}

body.services-mode .site-logo .custom-logo {
    filter: brightness(0) invert(1);
}

body.services-mode .main-navigation a {
    color: rgba(255, 255, 255, 0.9);
}

body.services-mode .main-navigation a:hover {
    color: var(--accent-color);
}

body.services-mode .header-icon-btn {
    color: rgba(255, 255, 255, 0.9);
}

body.services-mode .header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.services-mode .menu-toggle span {
    background: #ffffff;
}

/* Login button in header */
body.services-mode .user-login-trigger {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

body.services-mode .user-login-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* ==========================================================================
   Buttons for Services Mode
   ========================================================================== */

body.services-mode .btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

body.services-mode .btn:hover {
    background: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

body.services-mode .btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.services-mode .btn-outline:hover {
    background: var(--primary-color);
    color: #ffffff;
}

body.services-mode .btn-accent {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #1a1a1a;
}

body.services-mode .btn-accent:hover {
    background: #e67e22;
    border-color: #e67e22;
}

/* ==========================================================================
   Hero Section for Services
   ========================================================================== */

body.services-mode .hero-section,
body.services-mode .page-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1f33 100%);
}

body.services-mode .hero-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(243,156,18,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
}

/* ==========================================================================
   Cards and Content Boxes
   ========================================================================== */

body.services-mode .course-card:hover,
body.services-mode .station-card:hover {
    border-color: var(--accent-color);
}

body.services-mode .course-card .course-rating,
body.services-mode .station-card .station-rating {
    background: var(--accent-color);
    color: #1a1a1a;
}

/* ==========================================================================
   Rating Coffee Cups (instead of cookies)
   ========================================================================== */

body.services-mode .cookie,
body.services-mode .rating-cookie {
    color: #8B4513; /* Coffee brown */
}

body.services-mode .cookie.filled,
body.services-mode .rating-cookie.filled {
    color: #5D3A1A; /* Darker coffee */
}

/* Coffee cup icon styling */
body.services-mode .coffee-cup {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

body.services-mode .coffee-cup.filled {
    color: #5D3A1A;
}

body.services-mode .coffee-cup.empty {
    color: #d4c4b0;
}

/* ==========================================================================
   Footer for Services Mode
   ========================================================================== */

body.services-mode .site-footer {
    background: #0f1f33;
    border-top: 3px solid var(--accent-color);
}

body.services-mode .site-footer a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Service Station Specific Styles
   ========================================================================== */

/* Motorway badge styling */
.motorway-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #1e3a5f;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.motorway-badge svg {
    width: 16px;
    height: 16px;
}

/* Operator badge */
.operator-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--accent-color);
    color: #1a1a1a;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Facilities icons grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 1rem;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.875rem;
}

.facility-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.facility-item.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.facility-item.available svg {
    color: #2e7d32;
}

.facility-item.unavailable {
    background: #ffebee;
    color: #c62828;
    opacity: 0.6;
}

/* ==========================================================================
   Rating Criteria Cards for Service Stations
   ========================================================================== */

.rating-criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 1.5rem 0;
}

.rating-criteria-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.rating-criteria-item .criteria-label {
    font-size: 0.8125rem;
    color: var(--text-medium);
    margin-bottom: 8px;
    font-weight: 500;
}

.rating-criteria-item .criteria-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-criteria-item .criteria-cups {
    margin-top: 8px;
}

/* ==========================================================================
   Services Archive/Listing Page
   ========================================================================== */

body.services-mode .archive-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #ffffff;
    padding: 3rem 0;
}

body.services-mode .archive-header h1 {
    color: #ffffff;
}

body.services-mode .archive-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Filter tabs for motorways */
.motorway-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.motorway-filter-tab {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.motorway-filter-tab:hover {
    border-color: var(--primary-color);
}

.motorway-filter-tab.active {
    background: var(--primary-color);
    color: #ffffff;
}

/* ==========================================================================
   Mobile Header for Services
   ========================================================================== */

body.services-mode .mobile-header-icons .mobile-activity-btn {
    color: rgba(255, 255, 255, 0.9);
}

body.services-mode .mobile-header-icons .mobile-profile-avatar {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Search Results for Services
   ========================================================================== */

body.services-mode .search-results-header {
    background: var(--primary-color);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .rating-criteria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    .rating-criteria-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Services Homepage Styles
   ========================================================================== */

/* Services Hero */
.services-hero {
    background: linear-gradient(135deg, #0f1f33 0%, #1e3a5f 50%, #2c5282 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><line x1="0" y1="50" x2="100" y2="50" stroke="rgba(243,156,18,0.1)" stroke-width="2" stroke-dasharray="20,10"/></svg>') repeat;
    background-size: 200px 100px;
    opacity: 0.5;
}

.services-hero .hero-content {
    position: relative;
    z-index: 2;
}

.services-hero h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.services-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.services-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.services-hero-badge svg {
    width: 18px;
    height: 18px;
}

/* Archive Hero - Smaller version */
.services-archive-hero {
    min-height: 40vh;
    padding: 4rem 0;
}

.services-archive-hero h1 {
    font-size: 2.75rem;
}

.services-archive-hero p {
    font-size: 1.125rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .services-archive-hero {
        min-height: 35vh;
        padding: 3rem 0;
    }

    .services-archive-hero h1 {
        font-size: 2rem;
    }

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

.btn-services {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
}

.btn-services:hover {
    background: #e67e22;
    border-color: #e67e22;
    color: #ffffff;
}

/* Rating Criteria Section */
.rating-criteria-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.rating-criteria-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.criteria-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.criteria-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.criteria-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.criteria-icon svg {
    color: #ffffff;
}

.criteria-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.criteria-card p {
    color: var(--text-medium);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Featured Stations Section */
.featured-stations {
    padding: 5rem 0;
}

.featured-stations h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.station-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.station-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.station-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.station-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-light);
}

.station-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.station-card:hover .station-card-image img {
    transform: scale(1.05);
}

.station-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: rgba(255, 255, 255, 0.5);
}

/* Rating badge on station cards */
.station-card-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.station-card-rating .rating-coffee {
    font-size: 1rem;
}

.station-card-rating .rating-value {
    color: #f39c12;
}

.station-card-content {
    padding: 1.25rem;
}

.station-card-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.station-motorway {
    display: inline-block;
    background: #1e3a5f;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 6px;
}

.station-operator {
    display: inline-block;
    background: var(--accent-color);
    color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.no-stations-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-medium);
}

.no-stations-message svg {
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

.no-stations-message h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Motorway Links Section */
.motorway-links {
    padding: 5rem 0;
    background: var(--bg-light);
}

.motorway-links h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.motorway-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.motorway-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.motorway-tag:hover {
    border-color: #1e3a5f;
    background: #1e3a5f;
    color: #ffffff;
}

.motorway-tag .count {
    background: var(--bg-light);
    color: var(--text-medium);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.motorway-tag:hover .count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.no-motorways {
    text-align: center;
    color: var(--text-medium);
    font-style: italic;
}

/* Services Activity Feed */
.services-activity-feed {
    border-top: 3px solid var(--accent-color);
}

.services-activity-feed .activity-rating {
    background: var(--primary-color);
}

.services-activity-feed .activity-coffee {
    font-size: 1rem;
}

.services-activity-feed .activity-station-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0.25rem 0;
    line-height: 1.3;
}

.services-activity-feed .activity-station-name a {
    color: var(--text-dark);
    text-decoration: none;
}

.services-activity-feed .activity-station-name a:hover {
    color: var(--primary-color);
}

.services-activity-feed .activity-motorway {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(30, 58, 95, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.services-activity-feed .activity-card-placeholder {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

.services-activity-feed .activity-card-placeholder svg {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.5rem;
    }

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

@media (max-width: 576px) {
    .criteria-grid {
        grid-template-columns: 1fr;
    }

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

    .services-hero h1 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Single Service Station Template Styles
   ========================================================================== */

/* Station Hero */
.station-hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.station-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Station Layout */
.single-station-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.single-station-wrapper.has-map {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.single-station-map-container {
    position: sticky;
    top: 100px;
    height: calc(100vh - 140px);
    min-height: 500px;
}

#station-map {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.single-station-content-container {
    flex: 1;
    min-width: 0;
}

/* When map is present, make content single column (no sidebar) */
.single-station-wrapper.has-map .station-body {
    grid-template-columns: 1fr;
}

.single-station-wrapper.has-map .station-sidebar {
    display: none;
}

/* Station Header */
.station-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.station-title-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.station-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.btn-edit-station {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    color: #ffffff !important;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-edit-station:hover {
    background: var(--primary-color-dark);
    color: #ffffff !important;
}

.btn-edit-station svg {
    stroke: currentColor;
}

/* Station Meta */
.station-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.station-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.station-rating .rating-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.station-rating .rating-count {
    color: var(--text-medium);
    font-size: 0.875rem;
}

.station-motorways,
.station-operator {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.station-bucket-list-action .bucket-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.station-bucket-list-action .bucket-list-btn:hover {
    border-color: var(--accent-color);
}

.station-bucket-list-action .bucket-list-btn.on-list {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #1a1a1a;
}

.bucket-list-visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2e7d32;
    font-weight: 500;
}

/* Station Body */
.station-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.station-main {
    min-width: 0;
}

.station-description {
    margin-bottom: 2.5rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.station-description p {
    margin-bottom: 1.25rem;
}

.station-description p:last-child {
    margin-bottom: 0;
}

/* Station Details Section */
.station-details-section {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.station-details-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.8125rem;
    color: var(--text-medium);
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

.detail-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8125rem;
}

.detail-badge.detail-yes {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Rating Breakdown */
.rating-breakdown-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.rating-breakdown-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.rating-breakdown-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-breakdown-item {
    display: grid;
    grid-template-columns: 140px 1fr 50px;
    align-items: center;
    gap: 1rem;
}

.breakdown-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.breakdown-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3a5f, var(--accent-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.breakdown-value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

/* Facilities Section (legacy) */
.station-facilities-section {
    margin-bottom: 2.5rem;
}

.station-facilities-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

/* Amenities Section */
.station-amenities-section {
    margin-bottom: 2.5rem;
}

.station-amenities-section > h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.amenity-category {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.25rem;
}

.amenity-category .category-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.amenity-items {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.amenity-item svg {
    flex-shrink: 0;
    color: #22c55e;
}

/* Station Gallery */
.station-gallery-section {
    margin-bottom: 2.5rem;
}

.station-gallery-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

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

.station-gallery .gallery-item-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.station-gallery .gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
}

.station-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.station-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

/* Station Location */
.station-location-section {
    margin-bottom: 2rem;
}

.station-location-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.station-address {
    margin: 0;
}

.station-address .address-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
}

.station-address .address-link:hover {
    text-decoration: underline;
}

/* Station Sidebar */
.station-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.station-sidebar .sidebar-widget {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
}

.station-sidebar .sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.station-sidebar .sidebar-widget p {
    margin: 0 0 0.75rem;
}

.station-sidebar .sidebar-widget p:last-child {
    margin-bottom: 0;
}

/* Full Width Sections */
.station-full-width-sections {
    margin-top: 3rem;
}

/* Reviews Section */
.station-reviews-section {
    background: var(--bg-light);
    padding: 3rem 0;
}

.station-reviews-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Review Ratings Breakdown (individual review) */
.review-ratings-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0.75rem 0;
}

.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

body.services-mode .rating-chip {
    background: #e8eff5;
}

.rating-chip svg {
    color: var(--primary-color);
}

/* Review Form */
.btn-toggle-review.btn-services {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.services-mode .review-form-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.station-review-form .rating-criteria-inputs {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.rating-criteria-intro {
    margin: 0 0 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.rating-criteria-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-criteria-group:last-of-type {
    margin-bottom: 0;
}

.rating-criteria-group label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--text-dark);
}

.rating-input-5 {
    display: flex;
    gap: 8px;
}

.rating-input-5 .rating-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-input-5 .rating-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.rating-input-5 .rating-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* Station review form textarea and general inputs */
.station-review-form .form-group {
    margin-bottom: 1.5rem;
}

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

.station-review-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition-fast);
}

.station-review-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* Photo upload styling for station reviews */
body.services-mode .file-upload-wrapper {
    margin-bottom: 0.5rem;
}

body.services-mode .file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

body.services-mode .file-upload-label:hover {
    border-color: var(--primary-color);
    background: #f0f4f8;
}

body.services-mode .file-upload-label.has-files {
    border-style: solid;
    border-color: var(--primary-color);
    background: rgba(30, 58, 95, 0.05);
}

body.services-mode .file-upload-wrapper input[type="file"] {
    display: none;
}

.station-review-form .form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-medium);
    font-size: 0.8125rem;
}

/* Review form actions */
.station-review-form .review-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.station-review-form .review-form-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Form messages */
body.services-mode .form-messages {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
}

body.services-mode .form-messages.error {
    background: #fde8e8;
    color: #c53030;
    border: 1px solid #feb2b2;
}

body.services-mode .form-messages.success {
    background: #e6fffa;
    color: #234e52;
    border: 1px solid #81e6d9;
}

body.services-mode .form-messages:empty {
    display: none;
}

/* Responsive adjustments for rating criteria */
@media (max-width: 576px) {
    .rating-criteria-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .rating-input-5 .rating-btn {
        width: 36px;
        height: 36px;
    }
}

/* Coffee Cups Rating Display */
.coffee-cups-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.coffee-cups-rating.coffee-cups-small .coffee-cup {
    width: 16px;
    height: 16px;
}

.coffee-cups-rating.coffee-cups-medium .coffee-cup {
    width: 20px;
    height: 20px;
}

.coffee-cups-rating.coffee-cups-large .coffee-cup {
    width: 28px;
    height: 28px;
}

.coffee-cup svg {
    width: 100%;
    height: 100%;
}

.coffee-cup.filled {
    color: #5D3A1A;
}

.coffee-cup.half {
    color: #5D3A1A;
}

.coffee-cup.empty {
    color: #d4c4b0;
}

/* Archive Page Styles */
.services-archive-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.services-archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.services-archive-badge svg {
    width: 18px;
    height: 18px;
}

/* Station Filters */
.station-filters {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.station-filters .filter-form {
    display: block;
}

.station-filters .filter-group {
    flex: 1;
    min-width: 180px;
}

.station-filters .filter-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.station-filters .filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    background: #ffffff;
}

.station-filters .filter-btn {
    padding: 10px 24px;
}

.station-filters .clear-filters {
    padding: 10px 16px;
    color: var(--text-medium);
    font-size: 0.875rem;
}

/* ==========================================================================
   Full-Width Filter Row
   ========================================================================== */

.station-filters .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.station-filters .filter-group {
    flex: none;
    min-width: 0;
}

.station-filters .filter-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.station-filters .filter-btn {
    padding: 10px 28px;
    white-space: nowrap;
}

.station-filters .clear-filters {
    padding: 10px 16px;
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.station-filters .clear-filters:hover {
    color: #dc2626;
}

/* ==========================================================================
   Apple-Inspired Collapsible Facilities Filter
   ========================================================================== */

.facilities-filter-wrapper {
    margin-top: 1rem;
}

/* Toggle Button */
.facilities-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.facilities-toggle:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.facilities-filter-wrapper.is-expanded .facilities-toggle {
    border-color: var(--primary-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.facilities-toggle .toggle-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.facilities-toggle .toggle-icon-filter {
    color: var(--primary-color);
    opacity: 0.7;
}

.facilities-toggle .toggle-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
}

.facilities-toggle .selected-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 11px;
}

.facilities-toggle .toggle-chevron {
    color: var(--text-medium);
    transition: transform 0.25s ease;
}

.facilities-filter-wrapper.is-expanded .facilities-toggle .toggle-chevron {
    transform: rotate(180deg);
}

/* Facilities Panel */
.facilities-panel {
    display: none;
    padding: 20px 24px 16px;
    background: #ffffff;
    border: 1px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.facilities-filter-wrapper.is-expanded .facilities-panel {
    display: block;
    animation: panelExpand 0.25s ease;
}

@keyframes panelExpand {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Panel Footer */
.facilities-panel-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.facilities-panel-footer .clear-facilities {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-medium);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.facilities-panel-footer .clear-facilities:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.facility-category {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.facility-category .category-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 2px;
}

/* Facility Chips - Apple pill style */
.facility-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.facility-chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.facility-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.facility-chip .chip-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 450;
    color: var(--text-dark);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.facility-chip:hover .chip-label {
    background: rgba(0, 0, 0, 0.06);
}

.facility-chip.is-selected .chip-label,
.facility-chip input[type="checkbox"]:checked + .chip-label {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 500;
}

.facility-chip:active .chip-label {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 1200px) {
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .station-filters .filter-row {
        grid-template-columns: 1fr 1fr;
    }

    .station-filters .filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .facilities-filter-panel {
        padding: 16px 20px 20px;
        border-radius: 12px;
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .facility-chip .chip-label {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .station-filters .filter-row {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* Archive Grid Stations */
.stations-grid .station-card {
    display: flex;
    flex-direction: column;
}

.stations-grid .station-card-image {
    position: relative;
    display: block;
    text-decoration: none;
}

.stations-grid .station-rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 36px;
    height: 36px;
    background: #ffffff;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    border-radius: 0 0 12px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.12);
    z-index: 2;
    transition: all 0.2s ease;
}

.stations-grid .station-card:hover .station-rank-badge {
    background: var(--accent-color);
    color: #1a1a1a;
}

@media (min-width: 768px) {
    .stations-grid .station-rank-badge {
        min-width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.stations-grid .station-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stations-grid .station-card-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.stations-grid .station-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.stations-grid .station-card-title a:hover {
    color: var(--primary-color);
}

.stations-grid .station-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.station-motorway-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--text-medium);
}

.station-motorway-tag svg {
    width: 14px;
    height: 14px;
}

.station-motorway-tag .junction-info {
    color: var(--text-dark);
    font-weight: 500;
}

.station-operator-tag {
    background: var(--accent-color);
    color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.station-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.station-rating-link .station-score {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

.station-rating-link .station-review-count {
    font-size: 0.8125rem;
    color: var(--text-medium);
}

.station-rating-link:hover .station-review-count {
    text-decoration: underline;
    color: var(--primary-color);
}

.station-no-rating-link {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-medium);
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.station-no-rating-link:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Station List Layout (with map)
   ========================================================================== */

.stations-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.station-list-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.station-list-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.1);
}

.station-list-item.is-highlighted {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.15);
    background: rgba(30, 58, 95, 0.02);
}

.station-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.station-list-image {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--background-alt);
}

.station-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.station-list-item:hover .station-list-image img {
    transform: scale(1.05);
}

.station-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-alt);
    color: var(--text-light);
}

.station-list-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.station-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.station-list-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.station-list-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.station-list-title a:hover {
    color: var(--primary-color);
}

.station-list-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex-shrink: 0;
}

.station-list-rating .score {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark);
}

.station-list-rating .count {
    font-size: 0.8125rem;
    color: var(--text-medium);
}

.station-list-rating:hover .count {
    text-decoration: underline;
}

.station-list-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-medium);
    margin-bottom: 0.625rem;
}

.station-list-meta .station-motorway {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.station-list-meta .junction {
    color: var(--text-dark);
    font-weight: 500;
}

.station-list-meta .station-operator {
    background: var(--accent-color);
    color: #1a1a1a;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.station-list-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.station-list-facilities .facility {
    font-size: 0.75rem;
    color: var(--text-medium);
    padding: 2px 0;
}

.station-list-facilities .facility:not(:last-child)::after {
    content: '•';
    margin-left: 6px;
    color: var(--text-light);
}

/* Responsive list adjustments */
@media (max-width: 640px) {
    .station-list-item {
        flex-direction: column;
    }

    .station-list-image {
        width: 100%;
        height: 180px;
    }

    .station-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.stations-grid .station-card-excerpt {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

/* Station Card Facilities */
.station-card-facilities {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 1rem;
    flex: 1;
}

.station-card-facilities .facility-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-size: 0.8125rem;
}

.station-card-facilities .facility-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.stations-grid .btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    align-self: flex-start;
}

/* No Results */
.services-no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.services-no-results svg {
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

.services-no-results h2 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.services-no-results p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .single-station-wrapper.has-map {
        grid-template-columns: 1fr;
    }

    .single-station-map-container {
        position: relative;
        top: 0;
        height: 350px;
        min-height: 0;
    }

    .station-body {
        grid-template-columns: 1fr;
    }

    .rating-breakdown-item {
        grid-template-columns: 120px 1fr 40px;
    }
}

@media (max-width: 768px) {
    .station-title {
        font-size: 1.75rem;
    }

    .station-meta {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .rating-criteria-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .station-filters .filter-form {
        flex-direction: column;
    }

    .station-filters .filter-group {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .station-hero {
        height: 250px;
    }

    .station-gallery {
        grid-template-columns: 1fr;
    }

    .rating-breakdown-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .breakdown-value {
        text-align: left;
    }
}

/* ==========================================================================
   Services Profile Page Styles
   ========================================================================== */

body.services-mode .profile-page.services-profile {
    background-color: #f8f9fa;
}

body.services-mode .profile-page .profile-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-bottom: 3px solid var(--accent-color);
}

body.services-mode .profile-page .profile-name,
body.services-mode .profile-page .profile-username {
    color: #ffffff;
}

body.services-mode .profile-page .profile-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

body.services-mode .profile-page .stat-item .stat-value,
body.services-mode .profile-page .stat-item .stat-label {
    color: #ffffff;
}

body.services-mode .profile-page .profile-info .info-item {
    color: rgba(255, 255, 255, 0.9);
}

body.services-mode .profile-page .profile-info .info-item svg {
    stroke: var(--accent-color);
}

/* Services rating display with coffee cups */
body.services-mode .review-rating.services-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

body.services-mode .review-rating .rating-coffee {
    font-size: 1.25rem;
    color: var(--accent-color);
}

/* Button styles for services profile */
body.services-mode .profile-page .btn {
    background: var(--accent-color);
    color: #1e3a5f;
    font-weight: 600;
}

body.services-mode .profile-page .btn:hover {
    background: #e67e22;
}

body.services-mode .profile-page .btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

body.services-mode .profile-page .btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Section styling for services profile */
body.services-mode .profile-page .profile-edit-section {
    border-left: 3px solid var(--accent-color);
}

body.services-mode .profile-page .section-header h2 {
    color: var(--primary-color);
}

body.services-mode .profile-page .btn-link {
    color: var(--accent-color);
}

body.services-mode .profile-page .btn-link:hover {
    color: #e67e22;
}

/* User review items in services mode */
body.services-mode .profile-page .user-review-item {
    border-left: 3px solid var(--accent-color);
}

body.services-mode .profile-page .user-review-item h3 a {
    color: var(--primary-color);
}

body.services-mode .profile-page .user-review-item h3 a:hover {
    color: var(--accent-color);
}

/* Friend action buttons in services profile */
body.services-mode .profile-page .friend-status-badge.friends {
    background: rgba(243, 156, 18, 0.15);
    color: #b8860b;
}

body.services-mode .profile-page .btn-add-friend {
    background: var(--accent-color);
    color: #1e3a5f;
}

/* ==========================================================================
   Services Mode Profile Map - Yellow/Amber Markers
   ========================================================================== */

/* Visited stations marker (yellow/amber instead of green) */
body.services-mode .toggle-marker.played,
body.services-mode .toggle-marker.services-marker {
    background-color: var(--accent-color); /* Amber #f39c12 */
}

/* Map marker dots for visited stations */
body.services-mode .profile-map-marker.played .marker-dot,
body.services-mode .custom-profile-marker.played {
    background-color: var(--accent-color);
    border-color: #e67e22;
}

/* Leaflet custom markers for services mode */
body.services-mode #profile-courses-map .profile-marker-played {
    background-color: var(--accent-color);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Service Station Archive Map Layout
   ========================================================================== */

.stations-archive-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Full width when no map */
.stations-archive-wrapper:not(.has-map) .stations-content-container {
    width: 100%;
}

/* With map: 1/3 map, 2/3 content */
.stations-archive-wrapper.has-map {
    gap: 2.5rem;
    padding-top: 2rem;
}

.stations-map-container {
    flex: 0 0 33.333%;
    position: sticky;
    top: 100px;
    height: calc(100vh - 140px);
    min-height: 600px;
}

#stations-map {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.stations-content-container {
    flex: 1;
    min-width: 0;
}

/* Responsive adjustments for archive map */
@media (max-width: 1024px) {
    .stations-archive-wrapper.has-map {
        flex-direction: column;
    }

    .stations-map-container {
        flex: 0 0 auto;
        width: 100%;
        position: relative;
        top: 0;
        height: 500px;
        min-height: 500px;
    }

    .stations-content-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .stations-map-container {
        height: 400px;
        min-height: 400px;
    }
}

/* ==========================================================================
   Station Map Marker Styles
   ========================================================================== */

/* Custom station marker (amber/orange for services) */
.custom-station-marker {
    background: transparent;
}

.station-marker-dot {
    background-color: var(--accent-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.station-marker-dot.highlighted {
    background-color: #1e3a5f;
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(30,58,95,0.5);
}

/* User location marker */
.user-location-marker {
    background: transparent;
}

.user-marker-dot {
    position: relative;
    width: 20px;
    height: 20px;
    background-color: #2196F3;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.user-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Locate control button */
.locate-control {
    margin-top: 10px;
}

.locate-control .locate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.locate-control .locate-btn:hover {
    background: #f4f4f4;
}

.locate-control .locate-btn.locating {
    animation: spin 1s linear infinite;
}

.locate-control .locate-btn.located {
    color: #2196F3;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Station Map Popup Styles
   ========================================================================== */

.services-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.services-popup .leaflet-popup-content {
    margin: 1rem;
    font-family: inherit;
}

.station-map-popup {
    min-width: 200px;
}

.station-map-popup .popup-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.station-map-popup .popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.station-map-popup h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.station-map-popup .operator {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-medium);
    margin-bottom: 0.25rem;
}

.station-map-popup .rating {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    display: block;
}

.station-map-popup a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.station-map-popup a:hover {
    background: var(--primary-color-dark) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* User location popup */
.user-location-popup {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.25rem 0;
}

/* ==========================================================================
   Single Station Map - Current & Other Station Markers
   ========================================================================== */

/* Current station marker (highlighted amber/orange) */
.custom-current-station-marker {
    background: transparent;
}

.current-station-marker-dot {
    width: 32px;
    height: 32px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.5), 0 0 0 3px rgba(243, 156, 18, 0.3);
    animation: currentStationPulse 2s infinite;
}

@keyframes currentStationPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(243, 156, 18, 0.5), 0 0 0 3px rgba(243, 156, 18, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(243, 156, 18, 0.7), 0 0 0 6px rgba(243, 156, 18, 0.2);
    }
}

/* Other motorway station markers (muted blue) */
.custom-other-station-marker {
    background: transparent;
}

.other-station-marker-dot {
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-other-station-marker:hover .other-station-marker-dot {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.5);
}

/* Current station popup label */
.current-station-popup .current-marker-label {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 4px;
}

/* Current station popup styling */
.current-popup .leaflet-popup-content-wrapper {
    border: 2px solid var(--accent-color);
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS FOR SERVICES MODE
   ========================================================================== */

/* Fix mobile navigation - white text on white background issue */
@media (max-width: 768px) {
    body.services-mode .main-navigation {
        background: var(--primary-color);
    }

    body.services-mode .main-navigation a {
        color: #ffffff;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    body.services-mode .main-navigation a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent-color);
    }

    body.services-mode .main-navigation li {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    /* Mobile menu extras */
    body.services-mode .mobile-menu-extras {
        background: rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.services-mode .mobile-menu-search input {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }

    body.services-mode .mobile-menu-search input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    body.services-mode .mobile-menu-login a {
        color: #ffffff;
    }

    /* Header login link */
    body.services-mode .user-login-trigger {
        color: #ffffff;
    }
}

/* ==========================================================================
   Mobile Services Hero
   ========================================================================== */

@media (max-width: 768px) {
    .services-hero {
        min-height: 50vh;
        padding: 2rem 1rem;
    }

    .services-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .services-hero p {
        font-size: 0.9375rem;
        padding: 0 0.5rem;
    }

    .services-hero-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .services-hero .btn {
        padding: 12px 24px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .services-hero {
        min-height: 45vh;
    }

    .services-hero h1 {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Mobile Archive Header
   ========================================================================== */

@media (max-width: 768px) {
    .services-archive-header {
        padding: 2rem 0 1.5rem;
    }

    .services-archive-header h1 {
        font-size: 1.75rem;
    }

    .services-archive-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   Mobile Station Filters - Full Width & Stacked
   ========================================================================== */

@media (max-width: 768px) {
    .station-filters {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .station-filters .filter-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .station-filters .filter-group label {
        font-size: 0.75rem;
    }

    .station-filters .filter-select {
        padding: 12px 14px;
        font-size: 1rem;
    }

    .station-filters .filter-actions {
        flex-direction: row;
        justify-content: space-between;
        padding-top: 0.5rem;
    }

    .station-filters .filter-btn {
        flex: 1;
        padding: 12px 20px;
    }

    .station-filters .clear-filters {
        padding: 12px 16px;
    }

    /* Facilities Filter on Mobile */
    .facilities-toggle {
        padding: 12px 16px;
    }

    .facilities-toggle .toggle-label {
        font-size: 0.875rem;
    }

    .facilities-panel {
        padding: 16px;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .facility-category {
        background: var(--bg-light);
        padding: 12px;
        border-radius: 10px;
    }

    .facility-checkboxes {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .facility-chip .chip-label {
        padding: 8px 12px;
        font-size: 0.8125rem;
    }
}

/* ==========================================================================
   Mobile Station List Items
   ========================================================================== */

@media (max-width: 768px) {
    .stations-list {
        gap: 1rem;
    }

    .station-list-item {
        padding: 1rem;
        gap: 1rem;
    }

    .station-list-image {
        width: 100px;
        height: 80px;
    }

    .station-rank {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        top: 6px;
        left: 6px;
    }

    .station-list-title {
        font-size: 1rem;
    }

    .station-list-rating {
        margin-top: 0.25rem;
    }

    .station-list-rating .score {
        font-size: 0.875rem;
    }

    .station-list-meta {
        font-size: 0.75rem;
        gap: 0.375rem 0.5rem;
    }

    .station-list-meta .station-operator {
        padding: 2px 8px;
        font-size: 0.6875rem;
    }

    .station-list-facilities {
        gap: 4px;
    }

    .station-list-facilities .facility {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .station-list-item {
        flex-direction: column;
    }

    .station-list-image {
        width: 100%;
        height: 160px;
    }

    .station-list-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .station-list-title {
        font-size: 1.0625rem;
    }
}

/* ==========================================================================
   Mobile Stations Grid (Homepage)
   ========================================================================== */

@media (max-width: 768px) {
    .stations-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .station-card {
        border-radius: 12px;
    }

    .station-card-image {
        aspect-ratio: 16 / 9;
    }

    .station-card-rating {
        top: 10px;
        right: 10px;
        padding: 5px 8px;
        font-size: 0.8125rem;
    }

    .station-card-content {
        padding: 1rem;
    }

    .station-card-content h3 {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Mobile Map Container
   ========================================================================== */

@media (max-width: 1024px) {
    .stations-archive-wrapper.has-map {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 1rem;
    }

    .stations-map-container {
        flex: 0 0 auto;
        width: 100%;
        position: relative;
        top: 0;
        height: 350px;
        min-height: 350px;
        order: -1; /* Map appears above list on mobile */
    }

    #stations-map {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .stations-map-container {
        height: 280px;
        min-height: 280px;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }

    #stations-map {
        border-radius: 0;
    }
}

/* ==========================================================================
   Mobile Single Station Page
   ========================================================================== */

@media (max-width: 992px) {
    .single-station-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .single-station-wrapper.has-map {
        grid-template-columns: 1fr;
    }

    .single-station-map-container {
        position: relative;
        top: 0;
        height: 300px;
        min-height: 300px;
        order: -1;
    }

    #station-map {
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .station-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .station-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .station-title {
        font-size: 1.5rem;
    }

    .station-meta {
        gap: 0.75rem;
    }

    .station-rating .rating-value {
        font-size: 1.125rem;
    }

    .motorway-badge,
    .operator-badge {
        padding: 3px 10px;
        font-size: 0.8125rem;
    }

    /* Station details section */
    .station-details-section {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Rating breakdown */
    .rating-breakdown-section {
        padding: 1.25rem;
    }

    .rating-breakdown-item {
        grid-template-columns: 100px 1fr 36px;
        gap: 0.75rem;
    }

    .breakdown-label {
        font-size: 0.8125rem;
    }

    /* Amenities */
    .amenities-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .amenity-category {
        padding: 1rem;
    }

    /* Gallery */
    .station-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .single-station-map-container {
        height: 250px;
        min-height: 250px;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }

    #station-map {
        border-radius: 0;
    }

    .station-title {
        font-size: 1.375rem;
    }

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

    .rating-breakdown-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .breakdown-bar {
        order: 2;
    }

    .breakdown-value {
        order: 1;
        text-align: left;
    }

    .station-gallery {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Mobile Review Form
   ========================================================================== */

@media (max-width: 768px) {
    body.services-mode .review-form-container {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .station-review-form .rating-criteria-inputs {
        padding: 1rem;
    }

    .rating-criteria-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .rating-criteria-group label {
        font-size: 0.8125rem;
    }

    .rating-input-5 {
        justify-content: flex-start;
    }

    .rating-input-5 .rating-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .station-review-form textarea {
        padding: 12px 14px;
        font-size: 1rem;
        min-height: 120px;
    }

    .station-review-form .review-form-actions {
        flex-direction: column;
    }

    .station-review-form .review-form-actions .btn {
        max-width: none;
        width: 100%;
    }
}

/* ==========================================================================
   Mobile Criteria Cards (Homepage)
   ========================================================================== */

@media (max-width: 768px) {
    .rating-criteria-section {
        padding: 3rem 0;
    }

    .criteria-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .criteria-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .criteria-icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .criteria-card h3 {
        font-size: 1rem;
    }

    .criteria-card p {
        font-size: 0.875rem;
    }

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

/* ==========================================================================
   Mobile Motorway Tags
   ========================================================================== */

@media (max-width: 768px) {
    .motorway-links {
        padding: 3rem 0;
    }

    .motorway-tags {
        gap: 8px;
    }

    .motorway-tag {
        padding: 8px 14px;
        font-size: 0.875rem;
    }

    .motorway-tag .count {
        font-size: 0.6875rem;
        padding: 2px 6px;
    }
}

/* ==========================================================================
   Mobile Featured Stations Section
   ========================================================================== */

@media (max-width: 768px) {
    .featured-stations {
        padding: 3rem 0;
    }

    .featured-stations h2 {
        font-size: 1.5rem;
    }

    .section-cta {
        margin-top: 2rem;
    }

    .section-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ==========================================================================
   Mobile Map Popups
   ========================================================================== */

@media (max-width: 768px) {
    .station-map-popup {
        min-width: 180px;
    }

    .station-map-popup .popup-image {
        height: 80px;
    }

    .station-map-popup h3 {
        font-size: 0.9375rem;
    }

    .station-map-popup .operator {
        font-size: 0.75rem;
    }

    .station-map-popup .rating {
        font-size: 0.875rem;
    }

    .station-map-popup a {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ==========================================================================
   Mobile Pagination
   ========================================================================== */

@media (max-width: 768px) {
    body.services-mode .pagination {
        margin-top: 2rem;
        gap: 0.5rem;
    }

    body.services-mode .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Mobile Activity Feed for Services
   ========================================================================== */

@media (max-width: 768px) {
    .services-activity-feed .activity-card {
        flex-direction: column;
    }

    .services-activity-feed .activity-image {
        width: 100%;
        height: 140px;
    }

    .services-activity-feed .activity-content {
        padding: 1rem;
    }

    .services-activity-feed .activity-station-name {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Touch-Friendly Improvements
   ========================================================================== */

@media (max-width: 768px) {
    /* Larger tap targets */
    body.services-mode .btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    body.services-mode .filter-select {
        min-height: 44px;
    }

    /* Better spacing for touch */
    .station-list-item {
        -webkit-tap-highlight-color: transparent;
    }

    .station-card {
        -webkit-tap-highlight-color: transparent;
    }

    /* Smooth scrolling */
    .stations-list {
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   No Results Mobile
   ========================================================================== */

@media (max-width: 768px) {
    .services-no-results {
        padding: 3rem 1.5rem;
    }

    .services-no-results svg {
        width: 48px;
        height: 48px;
    }

    .services-no-results h2 {
        font-size: 1.25rem;
    }

    .services-no-results p {
        font-size: 0.9375rem;
    }
}

/* ==========================================================================
   Services Forum Mobile Styles
   ========================================================================== */

@media (max-width: 768px) {
    /* Forum container */
    body.services-mode .forum-container {
        padding: 0;
    }

    body.services-mode .forum-header {
        padding: 1.5rem;
        text-align: center;
    }

    body.services-mode .forum-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    body.services-mode .forum-description {
        font-size: 0.9375rem;
    }

    /* New Topic Button */
    body.services-mode #forum-new-topic-btn {
        width: 100%;
        margin-top: 1rem;
    }

    /* Form container */
    body.services-mode .forum-form-container {
        margin: 1rem;
        padding: 1.25rem;
        border-radius: 12px;
    }

    body.services-mode .forum-form-container h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Form inputs */
    body.services-mode .forum-form input[type="text"] {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 12px;
    }

    /* Quill Editor Mobile Fixes */
    body.services-mode .quill-editor {
        min-height: 180px;
        border-radius: 8px;
    }

    body.services-mode .ql-toolbar {
        padding: 8px;
        flex-wrap: wrap;
        border-radius: 8px 8px 0 0 !important;
    }

    body.services-mode .ql-toolbar .ql-formats {
        margin-right: 8px;
        margin-bottom: 4px;
    }

    body.services-mode .ql-toolbar button {
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    body.services-mode .ql-container {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    body.services-mode .ql-editor {
        min-height: 150px;
        padding: 12px;
        font-size: 16px; /* Prevents iOS zoom */
        line-height: 1.5;
        -webkit-user-select: text;
        user-select: text;
        -webkit-touch-callout: default;
    }

    body.services-mode .ql-editor.ql-blank::before {
        font-size: 16px;
        left: 12px;
    }

    /* Fix for iOS keyboard pushing content */
    body.services-mode .forum-form-container {
        position: relative;
    }

    /* Form actions */
    body.services-mode .forum-form .form-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    body.services-mode .forum-form .form-actions .btn {
        width: 100%;
    }

    /* Search form */
    body.services-mode .forum-search-container {
        padding: 0 1rem;
        margin: 1rem 0;
    }

    body.services-mode .forum-search-form input {
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Topics list */
    body.services-mode .forum-topics-list {
        margin: 0 1rem;
    }

    body.services-mode .forum-topics-header {
        display: none; /* Hide header on mobile */
    }

    body.services-mode .forum-topic-item {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }

    body.services-mode .forum-col-topic {
        width: 100%;
    }

    body.services-mode .forum-col-stats {
        display: inline-block;
        width: auto;
        font-size: 0.8125rem;
        color: var(--text-light);
    }

    body.services-mode .forum-col-stats::before {
        display: inline;
    }

    body.services-mode .forum-col-last-post {
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
        font-size: 0.8125rem;
    }

    body.services-mode .forum-topic-icon {
        display: none;
    }

    body.services-mode .forum-topic-title {
        font-size: 1rem;
    }

    /* Single topic view */
    body.services-mode .forum-topic-post,
    body.services-mode .forum-replies-section {
        margin: 0 1rem;
        padding: 1rem;
    }

    body.services-mode .forum-post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    body.services-mode .forum-post-actions {
        align-self: flex-end;
    }

    body.services-mode .forum-avatar {
        width: 40px;
        height: 40px;
    }

    body.services-mode .forum-author-info h4 {
        font-size: 0.9375rem;
    }

    body.services-mode .forum-post-content-display {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    /* Reply form */
    body.services-mode .forum-reply-form-container {
        margin: 1rem;
        padding: 1rem;
    }

    body.services-mode .forum-reply-button-container {
        padding: 0 1rem 1rem;
    }

    body.services-mode .forum-reply-button-container .btn {
        width: 100%;
    }

    /* Reply items */
    body.services-mode .forum-reply {
        padding: 1rem;
    }

    /* Login prompt */
    body.services-mode .forum-login-prompt {
        margin: 1rem;
        padding: 1.5rem;
        text-align: center;
    }

    /* Back link */
    body.services-mode .forum-back-link {
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}
