/* Basic container alignment to match typical Bootstrap-style themes */
.sap-archive,
.sap-location-gateway,
.sap-location-services,
.sap-weather-section,
.sap-nearby-cities {
    padding: 3rem 0;
    background-color: #101317; /* dark backdrop similar to your theme */
    color: #f9f5ee;
}

.sap-archive .container,
.sap-location-gateway .container,
.sap-location-services .container,
.sap-weather-section .container,
.sap-nearby-cities .container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Archive header */
.sap-archive-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.sap-archive-header p {
    margin-bottom: 1.5rem;
    color: #d2c8b8;
}

/* Filters */
.sap-archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: #1b1f26;
    border-radius: 10px;
    border: 1px solid #2a3039;
}

.sap-filter {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    gap: 0.25rem;
}

.sap-filter label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f9f5ee;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.sap-filter select,
.sap-filter input[type="text"] {
    min-width: 180px;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #2a3039;
    background: #101317;
    color: #f5e0bd;
}

/* Archive grid */
.sap-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.sap-service-group {
    background: #1b1f26;
    border-radius: 14px;
    border: 1px solid #2a3039;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.sap-service-heading {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    color: #f9f5ee;
}

.sap-state-group + .sap-state-group {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #2a3039;
}

.sap-state-heading {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f0d9ac;
    margin: 0 0 0.25rem;
}

/* City grid on archive */
.sap-location-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns mobile */
    gap: 0.35rem 1.25rem;
}

.sap-location-item + .sap-location-item {
    margin-top: 0.15rem;
}

.sap-location-item a {
    display: inline-block;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.2rem 0.35rem;
    border-radius: 999px;
    color: #f9f5ee;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.sap-location-item a:hover {
    background: #f5e0bd;
    color: #101317;
    transform: translateY(-1px);
}

/* Tablet: 3 columns */
@media (min-width: 768px) {
    .sap-location-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .sap-location-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Location gateway */
.sap-location-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.sap-location-header p {
    margin-bottom: 1.5rem;
    color: #d2c8b8;
}

.sap-location-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sap-location-service-list li + li {
    margin-top: 0.4rem;
}

.sap-location-service-list a {
    text-decoration: none;
    color: #f5e0bd;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 224, 189, 0.5);
    display: inline-block;
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sap-location-service-list a:hover {
    background: #f5e0bd;
    color: #101317;
    border-color: #f5e0bd;
}

/* Breadcrumbs */
.sap-breadcrumbs-wrap {
    background:#262B32;
    text-align:right;
}

.sap-breadcrumbs {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: #1b1f26;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    border: 1px solid #2a3039;
}

.sap-breadcrumb-item a {
    color: #f5e0bd;
    text-decoration: none;
}

.sap-breadcrumb-item a:hover {
    text-decoration: underline;
}

.sap-breadcrumb-separator {
    color: #777e8a;
    padding: 0 0.25rem;
}

/* Cross-link pills (other services in same location) */
.sap-location-service-list--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.sap-service-pill {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid rgba(245, 224, 189, 0.5);
    background: #151921;
    color: #f5e0bd;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.sap-service-pill:hover {
    background: #f5e0bd;
    color: #101317;
    border-color: #f5e0bd;
    transform: translateY(-1px);
}

.sap-service-pill--active,
.sap-service-pill--active:hover {
    background: #f5e0bd;
    color: #101317;
    border-color: #f5e0bd;
    cursor: default;
}

/* Weather section */
.sap-weather-section {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.sap-weather-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.sap-weather-intro {
    color: #d2c8b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sap-weather-intro strong {
    color: #ffe5b2;
}

.sap-weather-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.sap-weather-stat {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #1b1f26;
    border: 1px solid #2a3039;
    min-width: 190px;
}

.sap-weather-stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.sap-weather-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5e0bd;
}

/* Weather table */
.sap-weather-table-wrap {
    margin-top: 0.5rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #2a3039;
    background: #151921;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.sap-weather-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.sap-weather-table thead {
    background: linear-gradient(135deg, #242933, #1b1f26);
}

.sap-weather-table th,
.sap-weather-table td {
    padding: 0.75rem 1rem;
    vertical-align: top;
}

.sap-weather-table th {
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #f5e0bd;
    border-bottom: 1px solid #2a3039;
}

.sap-weather-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.01);
}

.sap-weather-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.08);
}

.sap-weather-table tbody tr:hover {
    background: rgba(255, 221, 0, 0.07);
}

.sap-weather-table td:first-child {
    font-weight: 600;
    color: #ffe5b2;
    width: 20%;
    min-width: 140px;
}

.sap-weather-table td:nth-child(2),
.sap-weather-table td:nth-child(3) {
    color: #e0d6c7;
}

/* Weather CTA */
.sap-weather-cta {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: #d2c8b8;
}

/* Nearby cities */
.sap-nearby-cities h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.sap-nearby-cities-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sap-nearby-cities-list li a {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #2a3039;
    background: #151921;
    color: #f5e0bd;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.sap-nearby-cities-list li a:hover {
    background: #f5e0bd;
    color: #101317;
    border-color: #f5e0bd;
    transform: translateY(-1px);
}

/* Utility */
@media (max-width: 768px) {
    .sap-archive-filters {
        flex-direction: column;
    }

    .sap-breadcrumbs {
        border-radius: 8px;
    }

    .sap-weather-stats {
        flex-direction: column;
    }
}
