.resorts-page {
    background: #f5f7fb;
    color: #16233d;
}

.content {
    background: #f5f7fb;
    color: #16233d;
}

.material-symbols-outlined {
    vertical-align: sub;
}

.wave {
    margin-bottom: -68px;
    z-index: 1;
    pointer-events: none;
}

.container nav {
    margin-top: 48px;
}

.resorts-hero {
    padding: 2rem 0 1rem;
}

.resorts-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    letter-spacing: -0.02em;
}

.resorts-stats {
    color: #5b677a;
    font-weight: 500;
}

.resort-search {
    max-width: 640px;
    margin: 1.5rem auto 0;
}

.resort-search .form-control {
    min-height: 3.25rem;
    border: 1px solid #d8deea;
    border-radius: 0.9rem;
    box-shadow: 0 6px 18px rgba(19, 42, 81, 0.06);
}

.nav-tabs .nav-link {
    color: #254f8f;
}

table {
    text-align: left;
}

.resort-search-results {
    max-height: 24rem;
    margin-top: 0.75rem;
    overflow-y: auto;
    text-align: left;
    border-radius: 0.9rem;
    box-shadow: 0 12px 30px rgba(19, 42, 81, 0.12);
}

.country-card-col {
    display: flex;
}

.country-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    color: #16233d;
    text-decoration: none;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(19, 42, 81, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.country-card:hover,
.country-card:focus {
    color: #16233d;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(19, 42, 81, 0.14);
}

.country-card:focus {
    outline: 2px solid #254f8f;
    outline-offset: 3px;
}

.country-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.country-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.country-card h2 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.country-card-count {
    margin-bottom: 0.75rem;
    color: #254f8f;
    font-size: 0.9rem;
    font-weight: 700;
}

.country-card-preview {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 1rem;
    color: #5b677a;
    font-size: 0.92rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.country-card-link {
    margin-top: auto;
    color: #254f8f;
    font-weight: 600;
}

.country-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.country-hero img {
    width: 140px;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(19, 42, 81, 0.16);
}

.country-hero h1 {
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.country-intro {
    max-width: 820px;
    margin-bottom: 2rem;
    color: #4d5a6d;
    font-size: 1.05rem;
}

.resort-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.resort-list-item {
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e3e7ef;
    border-radius: 0.9rem;
    box-shadow: 0 4px 14px rgba(19, 42, 81, 0.05);
}

.resort-list-item[hidden] {
    display: none;
}

.resort-list-item .resort-name {
    color: #16233d;
    font-weight: 700;
    text-decoration: none;
}

.resort-list-item a.resort-name {
    color: #254f8f;
}

.resort-list-item a.resort-name:hover,
.resort-list-item a.resort-name:focus {
    text-decoration: underline;
}

.town-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.85rem;
    padding: 0;
    margin: 0.65rem 0 0;
    color: #68758a;
    font-size: 0.88rem;
    list-style: none;
}

.resorts-cta {
    padding: 4rem 1rem;
    margin-top: 4rem;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px) 0 0 / 32px 32px,
        linear-gradient(135deg, #091a38 0%, #254f8f 60%, #3a78cf 100%);
    border-radius: 1.5rem;
}

.resorts-cta .btn {
    padding: 0.55rem 0.8rem;
    border: 0;
    border-radius: 0.9rem;
}

.resorts-cta .btn img {
    height: 28px;
}

.resorts-sidebar-link {
    display: block;
    padding: 0.35rem 0;
    color: #254f8f;
    text-decoration: none;
}

.resorts-sidebar-link:hover,
.resorts-sidebar-link:focus {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .country-hero img {
        width: 100px;
    }

    .resorts-cta {
        padding: 3rem 1.25rem;
    }
}

.mountain {
    background: #f5f7fb;
    z-index: 1;
}

/* Resort banner / hero image with overlaid title */
.resort-banner {
    position: relative;
    isolation: isolate;
    height: clamp(220px, 32vw, 420px);
    overflow: hidden;
    color: #fff;
    text-align: left;
    background: linear-gradient(135deg, #091a38 0%, #254f8f 60%, #3a78cf 100%);
}

.resort-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.resort-banner__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 26, 56, 0.62) 0%, rgba(9, 26, 56, 0.15) 22%, rgba(9, 26, 56, 0) 45%),
        linear-gradient(0deg, rgba(9, 26, 56, 0.88) 0%, rgba(9, 26, 56, 0.55) 30%, rgba(9, 26, 56, 0.15) 55%, rgba(9, 26, 56, 0) 75%),
        linear-gradient(90deg, rgba(9, 26, 56, 0.55) 0%, rgba(9, 26, 56, 0.2) 45%, rgba(9, 26, 56, 0) 70%);
}

.resort-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-top: 0.9rem;
    padding-bottom: 1.4rem;
}

.resort-banner__breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    font-size: 0.9rem;
    text-shadow: 0 1px 10px rgba(9, 26, 56, 0.55);
}

.resort-banner__breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.resort-banner__breadcrumb a:hover,
.resort-banner__breadcrumb a:focus {
    color: #fff;
    text-decoration: underline;
}

.resort-banner__breadcrumb .active {
    color: #fff;
}

.resort-banner__text {
    max-width: 46rem;
}

.resort-banner__eyebrow {
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(9, 26, 56, 0.55);
}

.resort-banner__title {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-shadow: 0 2px 24px rgba(9, 26, 56, 0.55);
}

/* Text-only banner used when a resort has no photo */
.resort-banner--plain .resort-banner__scrim {
    background:
        radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px) 0 0 / 34px 34px,
        linear-gradient(90deg, rgba(9, 26, 56, 0.35) 0%, rgba(9, 26, 56, 0) 70%);
}

@media (max-width: 575.98px) {
    .resort-banner {
        height: clamp(240px, 62vw, 340px);
    }

    .resort-banner__inner {
        padding-bottom: 1.1rem;
    }

    .resort-banner__breadcrumb {
        font-size: 0.78rem;
    }

    .resort-banner__title {
        font-size: clamp(1.65rem, 7.5vw, 2.4rem);
    }

    .resort-banner__eyebrow {
        margin-bottom: 0.2rem;
        font-size: 0.72rem;
    }
}

.resort-map {
    width: 100%;
    height: 400px;
    margin: 1.5rem 0;
    overflow: hidden;
    background: #e9eef6;
    border-radius: 0.9rem;
}

.resort-map .mapboxgl-canvas {
    outline: none;
}

@media (max-width: 575.98px) {
    .resort-map {
        height: 320px;
    }
}