:root {
    --guide-shell-width: 1180px;
}

a.featured-card.enhanced,
a.popular-item,
.guide-spotlight-card,
.guide-location-card a,
.guide-support-card {
    text-decoration: none;
    color: inherit;
}

a.featured-card.enhanced:focus-visible,
a.popular-item:focus-visible,
.guide-spotlight-card:focus-visible,
.guide-location-card a:focus-visible,
.guide-support-card:focus-visible {
    outline: 2px solid var(--scottish-blue, #003DA5);
    outline-offset: 3px;
}

a.popular-item {
    display: flex;
}

.guide-spotlight-section {
    margin: 0 auto 3rem;
    max-width: 1200px;
    padding: 0 1rem;
}

.guide-spotlight-section-compact {
    padding: 0;
    margin-bottom: 2.5rem;
}

.guide-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.guide-spotlight-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 220px;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 42%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-spotlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
    border-color: rgba(0, 61, 165, 0.24);
}

.guide-spotlight-card h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.guide-spotlight-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.guide-spotlight-kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 61, 165, 0.08);
    color: var(--scottish-blue, #003DA5);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.guide-page-main {
    background:
        linear-gradient(180deg, #f8fbff 0%, #eef6fb 22%, #f8fafc 100%);
    min-height: calc(100vh - 4rem);
    padding: 2rem 1rem 4rem;
}

.guide-shell {
    max-width: var(--guide-shell-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.guide-hero,
.guide-criteria-section,
.guide-locations-section,
.guide-faq-section,
.guide-support-links {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 2rem;
    overflow: hidden;
}

.guide-hero-copy {
    padding: 2.4rem 2.4rem 2rem;
}

.guide-eyebrow {
    margin: 0 0 0.75rem 0;
    color: var(--scottish-blue, #003DA5);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.guide-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.guide-intro {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
}

.guide-meta-row,
.guide-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.guide-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 61, 165, 0.08);
    color: var(--scottish-blue, #003DA5);
    font-size: 0.88rem;
    font-weight: 600;
}

.guide-chip-soft {
    background: rgba(148, 163, 184, 0.14);
    color: #334155;
}

.guide-hero-image {
    min-height: 280px;
    background: #dbeafe;
}

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

.guide-criteria-section,
.guide-locations-section,
.guide-faq-section,
.guide-support-links {
    padding: 2rem;
}

.guide-criteria-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #334155;
    line-height: 1.8;
}

.guide-location-grid,
.guide-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.guide-location-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.guide-location-image-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.guide-location-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.guide-location-card:hover .guide-location-image-link img {
    transform: scale(1.04);
}

.guide-location-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
}

.guide-location-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
}

.guide-location-content h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
}

.guide-location-content p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.guide-location-note {
    font-weight: 600;
    color: #0f172a;
}

.guide-faq-list {
    gap: 1rem;
}

.guide-support-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.25rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(248, 250, 252, 0.96);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-support-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 61, 165, 0.24);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.guide-support-card h3 {
    margin: 0;
    font-size: 1rem;
}

.guide-support-card p {
    margin: 0;
    color: #475569;
}

@media (max-width: 900px) {
    .guide-hero {
        grid-template-columns: 1fr;
    }

    .guide-hero-copy,
    .guide-criteria-section,
    .guide-locations-section,
    .guide-faq-section,
    .guide-support-links {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .guide-page-main {
        padding: 1.25rem 0.75rem 3rem;
    }

    .guide-spotlight-section {
        padding: 0 0.75rem;
    }

    .guide-location-grid,
    .guide-support-grid,
    .guide-spotlight-grid {
        grid-template-columns: 1fr;
    }

    .guide-hero-copy {
        padding: 1.5rem 1.25rem;
    }
}
