:root {
    --ink: #132026;
    --muted: #61717a;
    --sea: #0c6b78;
    --sky: #55b6d1;
    --coral: #f06d5f;
    --sun: #f5c15c;
    --foam: #f5fbfc;
    --line: #dce9ec;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(12, 55, 68, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--foam);
}

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

.visually-hidden {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(245, 251, 252, 0.9);
    border-bottom: 1px solid rgba(220, 233, 236, 0.8);
    backdrop-filter: blur(14px);
}

.nav {
    width: min(1120px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: transparent;
    box-shadow: none;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--sea);
}

.nav-text-button {
    border: 0;
    cursor: pointer;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: 700;
}

.nav-text-button:hover {
    color: var(--sea);
}

.nav-auth {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(12, 107, 120, 0.22);
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--sea);
    background: var(--white);
    box-shadow: 0 8px 18px rgba(12, 55, 68, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.user-menu-button:hover,
.user-menu-button[aria-expanded="true"] {
    transform: translateY(-1px);
    border-color: rgba(12, 107, 120, 0.42);
    box-shadow: 0 12px 24px rgba(12, 55, 68, 0.12);
}

.user-menu-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-menu {
    min-width: 150px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.user-menu[hidden] {
    display: none;
}

.user-menu-item[hidden] {
    display: none;
}

.user-menu-item {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
    outline: none;
    color: var(--sea);
    background: rgba(85, 182, 209, 0.12);
}

.maintenance-page {
    min-height: calc(100svh - 72px);
    display: grid;
    place-items: center;
}

.maintenance-page[hidden] {
    display: none;
}

.maintenance-panel {
    width: min(100%, 620px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    justify-items: start;
    gap: 16px;
    background: var(--white);
    box-shadow: 0 14px 32px rgba(12, 55, 68, 0.08);
}

.maintenance-panel h1 {
    margin-bottom: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.maintenance-logo {
    width: 64px;
    height: 64px;
}

.nav-cta,
.nav-button,
.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.nav-cta {
    padding: 0 16px;
    color: var(--white);
    background: var(--sea);
}

.nav-button {
    font: inherit;
}

.button {
    padding: 0 18px;
}

.button-primary {
    color: var(--white);
    background: var(--sea);
    box-shadow: 0 12px 24px rgba(12, 107, 120, 0.2);
}

.button-secondary {
    color: var(--sea);
    background: transparent;
    border-color: rgba(12, 107, 120, 0.25);
}

.button-danger {
    color: var(--white);
    background: #b9362f;
}

.nav-cta:hover,
.nav-button:hover,
.button:hover {
    transform: translateY(-1px);
}

main {
    overflow: hidden;
}

.section,
.footer-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.tour-filter {
    width: min(620px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 8px;
}

.tour-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(12, 55, 68, 0.08);
}

.tour-filter-field {
    min-width: 0;
    position: relative;
    display: grid;
    gap: 6px;
}

.tour-filter-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.tour-filter-field input {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(220, 233, 236, 0.95);
    border-radius: 6px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--foam);
    font: inherit;
    font-size: 14px;
}

.tour-filter-field input:focus {
    outline: none;
    border-color: rgba(12, 107, 120, 0.45);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(85, 182, 209, 0.18);
}

.location-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 8;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.location-suggestions[hidden] {
    display: none;
}

.location-suggestion {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.location-suggestion small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.location-suggestion:hover,
.location-suggestion:focus-visible,
.location-suggestion-active {
    outline: none;
    color: var(--sea);
    background: rgba(85, 182, 209, 0.12);
}

.tour-filter-submit {
    height: 38px;
    width: 38px;
    border: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    background: var(--sea);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}

.tour-filter-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tour-filter-submit:hover,
.tour-filter-submit:focus-visible {
    outline: none;
    background: #095866;
}

.eyebrow {
    width: fit-content;
    margin: 0 0 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--sea);
    background: rgba(85, 182, 209, 0.14);
    font-size: 13px;
    font-weight: 800;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 680px;
    margin-bottom: 18px;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 0.98;
}

.lead {
    max-width: 610px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.tour-section {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
    scroll-margin-top: 96px;
}

.tour-section:first-of-type {
    padding-top: 42px;
}

.tour-section:last-of-type {
    padding-bottom: 72px;
}

.tour-section-heading {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tour-section-heading h2 {
    margin-bottom: 0;
    font-size: 24px;
    line-height: 1.1;
}

.tour-section-heading > a {
    display: none;
}

.tour-section-controls {
    display: flex;
    gap: 8px;
}

.tour-scroll-button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--ink);
    background: rgba(12, 55, 68, 0.06);
    font-size: 19px;
    font-weight: 800;
}

.tour-scroll-button:hover,
.tour-scroll-button:focus-visible {
    outline: none;
    background: rgba(12, 55, 68, 0.12);
}

.tour-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 70px) / 6);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 6px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.tour-rail::-webkit-scrollbar {
    display: none;
}

.tour-card {
    scroll-snap-align: start;
    display: grid;
    gap: 8px;
    scroll-margin-top: 108px;
}

.tour-card:target .tour-card-image {
    box-shadow: 0 0 0 3px rgba(12, 107, 120, 0.28);
}

.tour-card-image {
    aspect-ratio: 1.18 / 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--sea);
}

.tour-card-image-coast {
    background: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-food {
    background: url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-boat {
    background: url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-village {
    background: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-market {
    background: url("https://images.unsplash.com/photo-1533900298318-6b8da08a523e?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-sunset {
    background: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-kayak {
    background: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-craft {
    background: url("https://images.unsplash.com/photo-1452860606245-08befc0ff44b?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-cove {
    background: url("https://images.unsplash.com/photo-1518548419970-58e3b4079ab2?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-town {
    background: url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-harbor {
    background: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-family {
    background: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-reef {
    background: url("https://images.unsplash.com/photo-1544551763-46a013bb70d5?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-coffee {
    background: url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-bike {
    background: url("https://images.unsplash.com/photo-1501147830916-ce44a6359892?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-photo {
    background: url("https://images.unsplash.com/photo-1502920917128-1aa500764cbd?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-guide-sophie {
    background: url("https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-guide-canal-company {
    background: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-guide-mila {
    background: url("https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-guide-urban-routes {
    background: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-guide-ines {
    background: url("https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-guide-night-walks {
    background: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-guide-lotte {
    background: url("https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=900&q=80") center / cover;
}

.tour-card-image-guide-viewfinder {
    background: url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=900&q=80") center / cover;
}

.favorite-button {
    width: 34px;
    height: 34px;
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--white);
    background: rgba(19, 32, 38, 0.24);
    font-size: 27px;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(19, 32, 38, 0.65);
}

.favorite-button:hover,
.favorite-button:focus-visible {
    outline: none;
    background: rgba(19, 32, 38, 0.42);
}

.favorite-button[aria-pressed="true"] {
    color: #e34235;
    background: rgba(255, 255, 255, 0.92);
    text-shadow: none;
}

.tourguide-ribbon {
    position: absolute;
    top: 16px;
    left: -31px;
    z-index: 1;
    width: 128px;
    padding: 5px 0;
    transform: rotate(-35deg);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(19, 32, 38, 0.1);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.tourguide-ribbon-company {
    color: var(--white);
    background: rgba(12, 107, 120, 0.94);
}

.tour-card-content {
    display: grid;
    align-content: start;
    gap: 3px;
}

.tour-card h3,
.tour-card p {
    margin-bottom: 0;
}

.tour-card h3 {
    overflow: hidden;
    font-size: 15px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.tour-card-city {
    color: var(--ink);
    font-weight: 800;
}

.tour-guide-link {
    width: fit-content;
    color: var(--sea);
    font-size: 13px;
    font-weight: 800;
}

.tour-guide-link:hover,
.tour-guide-link:focus-visible {
    outline: none;
    text-decoration: underline;
}

footer {
    border-top: 1px solid var(--line);
    background: #f7f7f7;
}

.footer-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 26px;
    color: var(--ink);
    font-size: 14px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 72px;
    padding-bottom: 38px;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 17px;
}

.footer-column h2 {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.2;
}

.footer-column a,
.footer-legal a,
.footer-settings a {
    color: inherit;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-settings a:hover,
.footer-settings a:focus-visible {
    outline: none;
    text-decoration: underline;
}

.footer-bottom {
    min-height: 52px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
}

.footer-legal,
.footer-settings {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

@media (max-width: 880px) {
    .nav {
        min-height: auto;
        padding: 16px 0;
        align-items: flex-start;
    }

    .nav,
    .nav-links {
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        order: 3;
        gap: 16px;
    }

    .tour-rail {
        grid-auto-columns: 190px;
    }

    .tour-filter-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .footer-columns {
        gap: 34px;
    }
}

@media (max-width: 600px) {
    .tour-section,
    .tour-filter,
    .footer-inner,
    .nav,
    .page-shell {
        width: min(100% - 28px, 1120px);
    }

    .nav-links {
        font-size: 13px;
    }

    .nav-auth {
        margin-left: auto;
    }

    h1 {
        font-size: clamp(38px, 13vw, 54px);
    }

    .lead {
        font-size: 16px;
    }

    .button,
    .nav-cta {
        width: 100%;
    }

    .tour-rail {
        grid-auto-columns: 76%;
    }

    .tour-section {
        padding: 22px 0;
    }

    .tour-filter {
        padding-top: 18px;
    }

    .tour-filter-form {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding: 26px 0 24px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
