/* Wayoot global layout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "JetBrains Mono", "Fira Code", "Geist Mono", monospace, sans-serif;
    background: #fdfbf7;
    color: #3d3935;
}

a {
    color: #ff9d00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #efeae2;
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
}

.site-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #24211f;
}

.site-search input {
    min-width: 12rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #efeae2;
    background: #fdfbf7;
    color: #3d3935;
    font-family: inherit;
}

.site-search input::placeholder {
    content: ">_ Search...";
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: #efeae2;
    color: #24211f;
    border: 0;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 0.35rem 1rem 0.65rem;
    border-top: 1px solid #efeae2;
    font-size: 0.85rem;
}

.site-nav__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.site-nav__label {
    color: #8c847d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-nav__group--meta {
    margin-left: auto;
}

.site-nav__country select {
    background: #fdfbf7;
    color: #3d3935;
    border: 1px solid #efeae2;
    border-radius: 4px;
    padding: 0.25rem 0.35rem;
    font-family: inherit;
}

.site-main {
    min-height: 60vh;
}

.site-footer {
    padding: 1rem;
    font-size: 0.85rem;
    color: #8c847d;
    border-top: 1px solid #efeae2;
}

.map-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 120px);
}

.map-layout--tall {
    min-height: calc(100vh - 120px);
}

.wayoot-map {
    min-height: 400px;
    background: #f4efe8;
}

.map-sidebar {
    order: -1;
    padding: 1rem;
    background: #ffffff;
    border-right: 1px solid #efeae2;
    font-size: 0.9rem;
}

.map-sidebar__hint {
    margin: 0 0 0.75rem;
    line-height: 1.4;
    color: #6e6761;
}

.search-results {
    margin-top: 1rem;
}

.search-results__heading {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8c847d;
}

.search-results__empty,
.search-results__error {
    color: #8c847d;
    font-size: 0.85rem;
}

.search-result {
    padding: 0.55rem 0;
    border-bottom: 1px solid #efeae2;
}

.search-result:last-child {
    border-bottom: 0;
}

.search-result__name {
    background: none;
    border: 0;
    padding: 0;
    color: #24211f;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.search-result__name:hover,
.search-result__name:focus {
    color: #ff9d00;
    text-decoration: underline;
}

.search-result__meta {
    margin: 0.15rem 0 0.25rem;
    color: #8c847d;
    font-size: 0.78rem;
}

.search-result__tagline {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    color: #6e6761;
}

.search-result__open {
    font-size: 0.8rem;
    color: #ff9d00;
}

.search-result__score {
    float: right;
    color: #a39c96;
    font-size: 0.75rem;
}

.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #8c847d;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    color: #6e6761;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.card {
    background: #ffffff;
    border: 1px solid #efeae2;
    border-radius: 6px;
    padding: 1rem;
}

.card h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #24211f;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #efeae2;
}

.muted {
    color: #8c847d;
    font-size: 0.85rem;
}

.hotspot-mini-map {
    height: 360px;
    margin: 1rem 0 1.5rem;
    border-radius: 6px;
    border: 1px solid #efeae2;
    overflow: hidden;
}

.poi-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.poi-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #efeae2;
}

.poi-list--rich li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.poi-list__main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1 1 14rem;
    min-width: 0;
}

.poi-list__addr {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 28rem;
    color: #6e6761;
}

.poi-list__link {
    font-size: 0.85rem;
    white-space: nowrap;
}

.poi-tag {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    background: #fdfbf7;
    border: 1px solid #e0d7cd;
    color: #6e6761;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.hotspot-page {
    max-width: 1080px;
}

.hotspot-hero {
    margin-bottom: 0.5rem;
}

.hotspot-hero h1 {
    margin: 0 0 0.35rem;
    font-size: 1.9rem;
    line-height: 1.2;
    color: #24211f;
}

.hotspot-hero .lead {
    margin: 0 0 0.85rem;
}

.hotspot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
}

.hotspot-meta div {
    background: #ffffff;
    border: 1px solid #efeae2;
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
    min-width: 5.5rem;
}

.hotspot-meta dt {
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8c847d;
}

.hotspot-meta dd {
    margin: 0.1rem 0 0;
    font-weight: 600;
    font-size: 1.05rem;
    color: #24211f;
}

.cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 1.5rem;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #efeae2;
    color: #6e6761;
    font-size: 0.85rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cat-chip:hover {
    background: #fdfbf7;
    border-color: #e0d7cd;
    text-decoration: none;
}

.cat-chip.is-active {
    background: #ffe3ab; /* postit light */
    border-color: #ffd166;
    color: #a36500;
}

.cat-chip__count {
    background: #fdfbf7;
    color: #8c847d;
    border-radius: 4px;
    padding: 0.05rem 0.45rem;
    font-size: 0.72rem;
}

.cat-chip.is-active .cat-chip__count {
    background: #ffd166;
    color: #7a4c00;
}

.hotspot-section {
    margin: 1.75rem 0;
}

.hotspot-section h2 {
    margin: 0 0 0.85rem;
    font-size: 1.2rem;
    color: #24211f;
}

.poi-card-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.poi-card {
    background: #ffffff;
    border: 1px solid #efeae2;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.poi-card__media {
    height: 130px;
    background-size: cover;
    background-position: center;
    background-color: #fdfbf7;
}

.poi-card__media--blank {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5ada5;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fdfbf7, #f2eade);
}

.poi-card__body {
    padding: 0.75rem 0.85rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.poi-card__cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8c847d;
}

.poi-card__name {
    font-size: 0.95rem;
    line-height: 1.25;
    color: #24211f;
    word-break: break-word;
}

.poi-card__addr {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #6e6761;
}

.poi-card__link {
    margin-top: auto;
    padding-top: 0.4rem;
    font-size: 0.82rem;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin: 1.5rem 0 0;
}

.pager__link {
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    border: 1px solid #efeae2;
    background: #ffffff;
    color: #6e6761;
    font-size: 0.9rem;
}

.pager__link:hover {
    background: #fdfbf7;
    text-decoration: none;
}

.pager__link.is-disabled {
    color: #b5ada5;
    border-color: #fdfbf7;
    background: transparent;
    pointer-events: none;
}

.pager__info {
    color: #8c847d;
    font-size: 0.85rem;
}

.prose p {
    line-height: 1.6;
}

.form-stack label {
    display: block;
    margin-bottom: 0.75rem;
    color: #24211f;
}

.form-stack input,
.form-stack textarea {
    width: 100%;
    max-width: 36rem;
    margin-top: 0.25rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #efeae2;
    background: #fdfbf7;
    color: #3d3935;
    font-family: inherit;
}

.form-stack button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 0;
    background: #ff9d00;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
}

.form-stack button:hover {
    background: #e68d00;
}

.notice {
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.notice--ok {
    background: #f2f7f4;
    border: 1px solid #b8dac6;
    color: #1e5a38;
}

.notice--err {
    background: #fdf2f2;
    border: 1px solid #eab8b8;
    color: #801d1d;
}

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

    .map-sidebar {
        order: 0;
        border-right: 0;
        border-top: 1px solid #efeae2;
    }

    .site-nav {
        display: none;
        flex-direction: column;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav__group--meta {
        margin-left: 0;
    }
}

.hotspot-marker {
    cursor: pointer;
}

.is-mappable {
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.is-mappable:hover,
.is-mappable:focus-visible {
    background: #fbf9f4;
    outline: none;
}

.poi-list--rich li.is-mappable {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 6px;
}

.is-mappable.is-focused {
    background: #f3efff;
    box-shadow: inset 3px 0 0 #7a5cff;
}

.poi-card.is-mappable.is-focused {
    box-shadow: 0 0 0 2px #7a5cff;
}

.poi-pin-wrap {
    background: none;
    border: 0;
}

.poi-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #1f3a5f;
    transition: transform 0.12s ease, color 0.12s ease;
}

.poi-pin i {
    font-size: 20px;
    line-height: 1;
    filter:
        drop-shadow(0 0 4px rgba(253, 251, 247, 0.9))
        drop-shadow(0 0 4px rgba(253, 251, 247, 0.9))
        drop-shadow(0 0 6px rgba(253, 251, 247, 0.9))
        drop-shadow(0 0 6px rgba(253, 251, 247, 0.9));
}

.poi-pin.is-focused {
    color: #6b8cba;
    transform: scale(1.4);
    z-index: 1000;
}

.poi-popup {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.poi-popup__img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.2rem;
}

.poi-popup__name {
    font-size: 0.95rem;
    line-height: 1.25;
}

.poi-popup__cat {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #7a5cff;
    font-weight: 600;
}

.poi-popup__addr {
    font-size: 0.8rem;
    color: #6e6761;
}

.poi-popup__link {
    font-size: 0.85rem;
    margin-top: 0.15rem;
}
