:root {
    --sea: #0d5d78;
    --sea-deep: #08374a;
    --foam: #f8fbfd;
    --forest: #1f6f57;
    --sand: #efe7d6;
    --ink: #10181d;
    --muted: #5a6b74;
    --line: rgba(16, 24, 29, 0.12);
    --shadow: 0 20px 50px rgba(8, 55, 74, 0.12);
    --radius: 24px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(13, 93, 120, 0.18), transparent 32%),
        radial-gradient(circle at right center, rgba(31, 111, 87, 0.12), transparent 26%),
        linear-gradient(180deg, #f6fafc 0%, #ffffff 42%, #f4fbf7 100%);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(248, 251, 253, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.nav-shell,
.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    color: var(--muted);
    font-weight: 700;
}

.main-nav a:hover,
.brand:hover {
    color: var(--sea);
}

.lang-form {
    margin: 0;
}

.lang-select {
    min-width: 220px;
    border: 1px solid rgba(16, 24, 29, 0.12);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font: inherit;
}

.lang-select:focus {
    outline: 2px solid rgba(13, 93, 120, 0.2);
    border-color: rgba(13, 93, 120, 0.4);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero,
.listing-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero {
    padding: 72px 0 42px;
}

.hero::before,
.listing-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 36px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.1), transparent 24%),
        linear-gradient(135deg, rgba(8, 55, 74, 0.94), rgba(13, 93, 120, 0.78) 52%, rgba(31, 111, 87, 0.72));
    opacity: 0.98;
    box-shadow: var(--shadow);
}

.hero-overlay {
    position: absolute;
    inset: 24px;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 30%);
    pointer-events: none;
}

.hero-grid,
.detail-page,
.listing-page {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
    align-items: end;
    padding: 36px 20px;
}

.hero-copy,
.listing-hero,
.detail-copy {
    color: #fff;
}

.listing-hero > *,
.detail-hero > *,
.detail-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.listing-hero h1,
.detail-hero h1 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 10px 28px rgba(8, 31, 40, 0.28);
}

.hero p,
.listing-hero p,
.detail-hero p {
    max-width: 660px;
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 6px 18px rgba(8, 31, 40, 0.24);
}

.lead {
    margin-top: 16px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.stat-card,
.panel,
.place-card,
.empty-shell {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card {
    min-width: 150px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(10px);
}

.stat-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.7rem;
    line-height: 1;
}

.controls-panel,
.panel,
.place-card,
.empty-shell {
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    border-color: rgba(16, 24, 29, 0.06);
}

.controls-panel {
    padding: 24px;
}

.controls-panel h2,
.panel h2,
.section-head h2,
.empty-shell h2,
.empty-shell h3 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
}

.controls-panel p,
.results-copy,
.microcopy,
.field span,
.site-footer p {
    color: var(--muted);
}

.field {
    display: block;
    margin-top: 18px;
}

.field span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    font: inherit;
    color: var(--ink);
}

.field input:focus,
.field select:focus {
    outline: 2px solid rgba(13, 93, 120, 0.2);
    border-color: rgba(13, 93, 120, 0.4);
}

.catalogue-section,
.listing-page,
.detail-page {
    padding-bottom: 72px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.chip-link,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(13, 93, 120, 0.08);
    color: var(--sea);
    font-size: 0.88rem;
    font-weight: 800;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.place-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.place-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(8, 55, 74, 0.16);
}

.card-topline,
.detail-meta,
.toolbar-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.place-card h3 {
    margin: 18px 0 10px;
    font-size: 1.35rem;
    line-height: 1.2;
    font-family: Georgia, "Times New Roman", serif;
}

.place-card p {
    margin: 0;
    color: var(--muted);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--sea), var(--forest));
    color: #fff;
}

.btn-secondary {
    border: 1px solid rgba(13, 93, 120, 0.16);
    background: rgba(13, 93, 120, 0.05);
    color: var(--sea);
}

.empty-shell,
.panel {
    padding: 28px;
}

.empty-shell {
    text-align: center;
}

.is-hidden {
    display: none;
}

.listing-page,
.detail-page {
    margin-top: 48px;
}

.listing-hero,
.detail-hero {
    position: relative;
    padding: 52px 34px;
    margin-bottom: 28px;
    border-radius: 36px;
    overflow: hidden;
}

.listing-hero::before,
.detail-hero::before {
    inset: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-list {
    margin: 0;
    padding-left: 18px;
}

.detail-list li + li {
    margin-top: 10px;
}

.code-block {
    margin: 0;
    padding: 18px;
    overflow-x: auto;
    border-radius: 18px;
    background: #0f1720;
    color: #d8eef5;
    font-size: 0.92rem;
}

.slim-panel {
    margin-bottom: 24px;
}

.toolbar-inline {
    align-items: end;
}

.toolbar-inline .field {
    flex: 1 1 240px;
    margin-top: 0;
}

.site-footer {
    border-top: 1px solid rgba(16, 24, 29, 0.08);
    background: rgba(255, 255, 255, 0.64);
}

.site-footer p {
    margin: 0;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .nav-shell,
html[dir="rtl"] .footer-shell,
html[dir="rtl"] .main-nav,
html[dir="rtl"] .header-tools,
html[dir="rtl"] .card-topline,
html[dir="rtl"] .detail-meta,
html[dir="rtl"] .toolbar-inline,
html[dir="rtl"] .section-head {
    flex-direction: row-reverse;
}

html[dir="rtl"] .detail-list {
    padding-left: 0;
    padding-right: 18px;
}

@media (max-width: 980px) {
    .hero-grid,
    .detail-grid,
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 720px) {
    .wrap {
        width: min(100% - 24px, 1120px);
    }

    .nav-shell,
    .footer-shell,
    .section-head,
    .detail-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .nav-shell,
    .footer-shell,
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav,
    .header-tools,
    .hero-stats,
    .card-actions,
    .chip-row {
        width: 100%;
    }

    .header-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .lang-select {
        width: 100%;
        min-width: 0;
    }

    .card-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero,
    .listing-hero,
    .detail-hero {
        padding-left: 0;
        padding-right: 0;
    }

    .hero::before,
    .hero-overlay {
        inset: 12px;
    }

    .listing-hero,
    .detail-hero {
        padding: 34px 22px;
        border-radius: 28px;
    }

    .hero-grid {
        padding: 22px 8px 12px;
    }
}
