/* Country hub - premium planning centre */

body[data-page="mexico"],
body[data-page="egypt"],
body[data-page="turkey"] {
    --hub-bg: #0d0f14;
    --hub-bg2: #13161e;
    --hub-card: #181c26;
    --hub-surface: rgba(255, 255, 255, .04);
    --hub-border: rgba(255, 255, 255, .09);
    --hub-border2: rgba(255, 255, 255, .14);
    --hub-text: #e8eaf0;
    --hub-muted: rgba(232, 234, 240, .62);
    --hub-copy: rgba(232, 234, 240, .82);
    --hub-subtle: rgba(232, 234, 240, .58);
    --hub-accent: #d4a96a;
    --hub-teal: #4ec9b0;
    --hub-blue: #7eb8f7;
    --hub-warm: #e07a5f;
    --hub-radius: 14px;
    --hub-radius-sm: 10px;
    --hub-anchor-offset: 150px;
    background: var(--hub-bg);
    color: var(--hub-text);
    font-family: 'DM Sans', 'Inter', sans-serif;
}

body[data-page="mexico"] .container,
body[data-page="egypt"] .container,
body[data-page="turkey"] .container {
    max-width: 1180px;
}

.anchor-target {
    scroll-margin-top: var(--hub-anchor-offset);
}

.country-hero {
    position: relative;
    overflow: hidden;
    margin: calc(-1 * var(--header-height)) 0 0;
    padding: 0;
    background: #090b10;
}

.country-hero-media {
    position: relative;
    height: clamp(310px, 32vw, 430px);
    overflow: hidden;
}

.country-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 36%;
    transform: scale(1.01);
    transition: transform 6s ease;
}

.country-hero:hover .country-hero-image {
    transform: scale(1.035);
}

.country-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0, 0, 0, .18), rgba(0, 0, 0, .20) 38%, rgba(0, 0, 0, .34)),
        linear-gradient(to bottom, rgba(0, 0, 0, .04), rgba(0, 0, 0, .20));
    pointer-events: none;
}

.country-hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

.country-hero-copy {
    max-width: 800px;
    color: #fff;
}

.country-kicker,
.section-kicker,
.hub-card-label {
    color: var(--hub-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.35;
    text-transform: uppercase;
}

.country-kicker {
    margin-bottom: .55rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .46);
}

.country-hero h1 {
    max-width: 760px;
    margin: 0 0 .55rem;
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.35rem, 5vw, 4.35rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .65), 0 4px 18px rgba(0, 0, 0, .45);
}

.country-hero-subtitle {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(1.06rem, 2vw, 1.32rem);
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .42);
}

.country-hero-deck {
    max-width: 720px;
    margin: .75rem 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: .98rem;
    line-height: 1.62;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .42);
}

.country-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

.country-hero-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .38rem .62rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(13, 15, 20, .34);
    color: rgba(255, 255, 255, .82);
    font-size: .78rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.country-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.hub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: fit-content;
    padding: .82rem 1rem;
    border: 1px solid rgba(212, 169, 106, .34);
    border-radius: var(--hub-radius-sm);
    background: rgba(212, 169, 106, .11);
    color: var(--hub-accent);
    box-shadow: none;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.hub-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 169, 106, .54);
    background: rgba(212, 169, 106, .17);
    color: var(--hub-text);
}

.hub-btn-primary {
    background: rgba(212, 169, 106, .18);
    color: #f2d7a8;
}

.country-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    padding: 0;
    background: rgba(13, 15, 20, .92);
    border-bottom: 1px solid var(--hub-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.country-nav-list {
    display: flex;
    justify-content: center;
    gap: .25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.country-nav-list::-webkit-scrollbar {
    display: none;
}

.country-nav-item {
    display: inline-block;
    padding: .72rem .95rem;
    border-bottom: 2px solid transparent;
    color: var(--hub-muted);
    text-decoration: none;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .03em;
    transition: color .2s ease, border-color .2s ease;
}

.country-nav-item:hover,
.country-nav-item.active {
    color: var(--hub-accent);
    border-bottom-color: var(--hub-accent);
}

.country-hub-main {
    background: var(--hub-bg);
}

.hub-intro {
    padding-bottom: 1.4rem;
}

.hub-section {
    padding: clamp(2.8rem, 5vw, 4.6rem) 0;
}

.hub-section-soft {
    background: var(--hub-bg2);
}

.hub-section + .hub-section {
    border-top: 1px solid var(--hub-border);
}

.hub-section-header {
    max-width: 760px;
    margin: 0 0 clamp(1.5rem, 3vw, 2.2rem);
}

.hub-section-header.center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.hub-section-title {
    margin: .35rem 0 .75rem;
    color: var(--hub-text);
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
}

.hub-section-text {
    margin: 0;
    color: var(--hub-copy);
    font-size: 1rem;
    line-height: 1.75;
}

.hub-section-note {
    max-width: 760px;
    margin: 1.25rem 0 0;
    color: var(--hub-muted);
    font-size: .9rem;
    line-height: 1.65;
}

.hub-choice-module {
    margin-top: 1.35rem;
}

.hub-choice-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hub-choice-header h3 {
    margin: .25rem 0 0;
    color: var(--hub-text);
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    line-height: 1.18;
}

.hub-choice-header p {
    max-width: 470px;
    margin: 0;
    color: var(--hub-muted);
    font-size: .92rem;
    line-height: 1.6;
}

.hub-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.85rem, 1.6vw, 1.1rem);
}

.hub-choice-card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    min-height: 100%;
    padding: 1.1rem;
    border: 1px solid var(--hub-border2);
    border-radius: var(--hub-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 14px 30px rgba(0, 0, 0, .12);
}

.hub-choice-card.featured {
    border-color: rgba(212, 169, 106, .42);
    background: linear-gradient(180deg, rgba(212, 169, 106, .12), rgba(255, 255, 255, .03));
}

.choice-tag {
    width: fit-content;
    padding: .25rem .5rem;
    border: 1px solid rgba(212, 169, 106, .24);
    border-radius: 999px;
    color: var(--hub-accent);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
}

.hub-choice-card h4 {
    margin: 0;
    color: var(--hub-text);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.22;
}

.choice-list {
    display: grid;
    gap: .45rem;
    margin: 0;
    color: var(--hub-subtle);
    font-size: .86rem;
    line-height: 1.5;
}

.choice-list span {
    display: block;
}

.choice-list strong {
    color: var(--hub-text);
    font-weight: 700;
}

.choice-verdict {
    margin-top: auto;
    padding-top: .8rem;
    border-top: 1px solid var(--hub-border);
    color: var(--hub-copy);
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.5;
}

.hub-decision {
    padding-top: 2.5rem;
}

.decision-panel {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(1rem, 2vw, 1.4rem);
    align-items: stretch;
}

.decision-label {
    display: inline-block;
    margin-bottom: .65rem;
    color: var(--hub-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.decision-copy,
.decision-list {
    background: var(--hub-card);
    border: 1px solid var(--hub-border2);
    border-radius: var(--hub-radius);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 16px 34px rgba(0, 0, 0, .14);
}

.decision-copy {
    padding: 1.55rem 1.65rem;
    border-left: 3px solid var(--hub-accent);
    border-radius: 0 var(--hub-radius) var(--hub-radius) 0;
}

.decision-copy h2 {
    margin: 0 0 .8rem;
    color: var(--hub-text);
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.16;
}

.decision-copy p {
    margin: 0;
    color: var(--hub-copy);
    line-height: 1.75;
}

.decision-list {
    display: grid;
    gap: 0;
    padding: .65rem;
}

.decision-item {
    padding: .92rem 1rem;
    border-radius: var(--hub-radius-sm);
    color: var(--hub-subtle);
    font-size: .92rem;
    line-height: 1.58;
}

.decision-item + .decision-item {
    border-top: 1px solid var(--hub-border);
}

.decision-item strong {
    display: block;
    margin-bottom: .22rem;
    color: var(--hub-text);
    font-size: .96rem;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
}

.hub-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.25rem;
    overflow: hidden;
    background: var(--hub-card);
    border: 1px solid var(--hub-border2);
    border-radius: var(--hub-radius);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 16px 34px rgba(0, 0, 0, .14);
    color: inherit;
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.hub-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hub-teal), var(--hub-blue), var(--hub-accent));
    opacity: .7;
}

.hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 169, 106, .32);
    background: #1b202b;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 20px 42px rgba(0, 0, 0, .22);
}

.hub-card h3 {
    margin: .35rem 0 .55rem;
    color: var(--hub-text);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.08rem;
    font-weight: 650;
    line-height: 1.24;
}

.hub-card p {
    margin: 0;
    color: var(--hub-subtle);
    font-size: .92rem;
    line-height: 1.62;
}

.hub-card p:empty {
    display: none;
}

.hub-card .hub-btn {
    margin-top: 1.1rem;
}

.hub-card-action {
    margin-top: auto;
    padding-top: 1.1rem;
}

.hub-card-note {
    margin-top: .85rem;
    color: var(--hub-muted);
    font-size: .82rem;
    line-height: 1.55;
}

.hotel-card {
    min-height: 230px;
}

.tip-card-hub {
    padding-top: 1.35rem;
}

.tip-card-hub::before {
    background: linear-gradient(90deg, var(--hub-accent), var(--hub-blue), var(--hub-teal));
}

.resource-card {
    text-align: left;
}

.resource-card::after {
    content: "->";
    margin-top: auto;
    padding-top: 1.1rem;
    color: var(--hub-accent);
    font-size: 1.2rem;
    opacity: .8;
}

.hub-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.35rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(212, 169, 106, .22);
    border-radius: var(--hub-radius);
    background: rgba(212, 169, 106, .08);
}

.hub-cta-panel p {
    margin: 0;
    color: var(--hub-copy);
    font-size: .92rem;
    line-height: 1.55;
}

.hub-cta-panel .hub-btn {
    flex: 0 0 auto;
}

.hub-link-card {
    cursor: pointer;
}

@media (max-width: 1100px) {
    .hub-grid.hub-grid-four,
    .hub-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .decision-panel,
    .hub-grid,
    .hub-grid-four {
        grid-template-columns: 1fr;
    }

    .hub-choice-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hub-grid.hub-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .country-hero-media {
        height: 330px;
    }

    .country-nav-list {
        justify-content: flex-start;
    }

    .country-nav-item {
        padding: .7rem .85rem;
    }

    .hub-section {
        padding: 3rem 0;
    }

    .country-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hub-btn {
        width: 100%;
    }

    .hub-choice-grid {
        grid-template-columns: 1fr;
    }

    .hub-grid.hub-grid-four {
        grid-template-columns: 1fr;
    }

    .hub-cta-panel {
        align-items: stretch;
        flex-direction: column;
    }
}

[data-theme="light"] body[data-page="mexico"],
[data-theme="light"] body[data-page="egypt"],
[data-theme="light"] body[data-page="turkey"] {
    --hub-bg: #f5f2ee;
    --hub-bg2: #edeae5;
    --hub-card: #ffffff;
    --hub-border: rgba(60, 50, 30, .10);
    --hub-border2: rgba(60, 50, 30, .14);
    --hub-text: #1c1814;
    --hub-muted: rgba(28, 24, 20, .62);
    --hub-copy: rgba(28, 24, 20, .78);
    --hub-subtle: rgba(28, 24, 20, .68);
    --hub-accent: #a07828;
    --hub-teal: #1a9e85;
    --hub-blue: #2774c4;
    --hub-warm: #c05a38;
}

[data-theme="light"] .country-hero {
    background: #d8d1c6;
}

[data-theme="light"] .country-hero-image {
    filter: saturate(1.06) brightness(1.05);
}

[data-theme="light"] .country-hero-media::after {
    background:
        linear-gradient(to right, rgba(0, 0, 0, .10), rgba(0, 0, 0, .13) 38%, rgba(0, 0, 0, .25)),
        linear-gradient(to bottom, rgba(255, 255, 255, .02), rgba(0, 0, 0, .12));
}

[data-theme="light"] .country-nav {
    background: rgba(245, 242, 238, .94);
    border-bottom-color: var(--hub-border);
}

[data-theme="light"] .decision-copy,
[data-theme="light"] .decision-list,
[data-theme="light"] .hub-card,
[data-theme="light"] .hub-choice-card {
    box-shadow: 0 2px 12px rgba(60, 50, 30, .07);
}

[data-theme="light"] .hub-card:hover {
    background: #fff;
    box-shadow: 0 10px 26px rgba(60, 50, 30, .11);
}

[data-theme="light"] .hub-choice-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .72));
}

[data-theme="light"] .hub-choice-card.featured {
    background: linear-gradient(180deg, rgba(160, 120, 40, .10), rgba(255, 255, 255, .84));
}

[data-theme="light"] .hub-btn {
    background: rgba(160, 120, 40, .08);
    border-color: rgba(160, 120, 40, .24);
    color: var(--hub-accent);
}

[data-theme="light"] .hub-btn-primary {
    background: rgba(160, 120, 40, .12);
}

[data-theme="light"] .hub-btn:hover {
    background: rgba(160, 120, 40, .14);
    border-color: rgba(160, 120, 40, .36);
    color: var(--hub-text);
}
