/* WelcomeBook public viewer */
:root {
    --bg: #f7f2e8;
    --surface: #fffdf8;
    --surface-muted: #f1eadc;
    --ink: #211d17;
    --ink-soft: #6f675d;
    --line: rgba(33, 29, 23, .12);
    --brand: #b64f38;
    --brand-dark: #713524;
    --accent: #9dbda9;
    --shadow-sm: 0 10px 30px rgba(33, 29, 23, .08);
    --shadow-md: 0 22px 70px rgba(33, 29, 23, .12);
    --radius: 8px;
    --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 253, 248, .86) 0%, rgba(247, 242, 232, .96) 42%, var(--bg) 100%),
        radial-gradient(circle at 12% 0%, rgba(182, 79, 56, .10), transparent 34%),
        radial-gradient(circle at 92% 6%, rgba(157, 189, 169, .20), transparent 28%);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

a:hover {
    color: var(--brand);
}

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

header {
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, .82);
    backdrop-filter: blur(18px);
}

.header-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(280px, 360px);
    gap: 18px;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: 0;
}

.logo h1::after {
    content: "Vendégtájékoztató";
    display: block;
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--brand);
}

.language-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, .72);
}

.language-selector a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.language-selector a.active,
.language-selector a:hover {
    background: var(--ink);
    color: #fff;
}

.flag-icon {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.search-box {
    display: flex;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 13px 16px;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.search-box button {
    border: 0;
    padding: 0 18px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.search-box button:hover {
    background: var(--brand-dark);
}

#search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: none;
    width: min(420px, 100%);
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.search-result-item {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

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

.search-result-item:hover,
.search-result-item:focus {
    background: var(--surface-muted);
}

.search-result-title {
    color: var(--ink);
    font-weight: 800;
}

.search-result-context {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.45;
}

.no-results {
    padding: 18px;
    color: var(--ink-soft);
}

.highlight {
    border-radius: 3px;
    background: rgba(182, 79, 56, .18);
    color: var(--brand-dark);
}

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, .9);
    backdrop-filter: blur(18px);
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 21px;
    cursor: pointer;
}

.nav-list {
    display: flex;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
}

.nav-item {
    flex: 0 0 auto;
    margin: 0;
}

.nav-link {
    display: block;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--ink);
    color: #fff;
}

.guest-actions {
    padding-top: 22px;
}

.guest-actions-intro {
    display: block;
    margin-bottom: 12px;
    color: var(--ink-soft);
}

.guest-actions-intro span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
}

.guest-actions-intro strong {
    display: block;
    max-width: 100%;
    font-family: var(--font-display);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--ink);
    overflow-wrap: break-word;
}

.guest-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.guest-action {
    position: relative;
    min-width: 0;
    min-height: 94px;
    padding: 16px 16px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, .88);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}

.guest-action::after {
    content: "→";
    position: absolute;
    right: 14px;
    top: 12px;
    color: var(--brand);
    font-weight: 800;
}

.guest-action:hover,
.guest-action:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(182, 79, 56, .35);
    color: var(--ink);
    text-decoration: none;
}

.guest-action.primary {
    background: var(--ink);
    color: #fff;
}

.guest-action.primary::after {
    color: var(--accent);
}

.guest-action span {
    display: block;
    max-width: calc(100% - 24px);
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.guest-action small {
    display: block;
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.guest-action.primary small {
    color: rgba(250, 246, 238, .68);
}

main.container {
    padding: 34px 0 24px;
}

.section {
    scroll-margin-top: 84px;
    margin: 0 0 18px;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, .9);
    box-shadow: var(--shadow-sm);
}

.section:first-child {
    border-color: rgba(182, 79, 56, .22);
    background:
        linear-gradient(135deg, rgba(255, 253, 248, .96), rgba(241, 234, 220, .78));
}

.section-title {
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.1;
}

.subsection {
    margin-top: 26px;
}

.subsection-title,
.contact-item h3,
.feature-item h3,
.footer-column h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.25;
}

p {
    margin: 0 0 14px;
}

ul,
ol {
    margin: 0 0 16px 22px;
    padding: 0;
}

li {
    margin: 0 0 7px;
}

strong {
    color: var(--ink);
}

.welcome-message,
.highlight-box,
.contact-item,
.feature-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.welcome-message {
    padding: 22px;
    border-left: 4px solid var(--brand);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.55;
}

.highlight-box {
    padding: 18px;
    margin: 18px 0;
}

.contact-info,
.hotel-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hotel-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-item,
.feature-item {
    min-width: 0;
    padding: 18px;
    overflow-wrap: anywhere;
}

.feature-item h3,
.feature-item h4,
.feature-item p,
.feature-item li {
    overflow-wrap: anywhere;
}

footer {
    margin-top: 42px;
    padding: 42px 0 28px;
    background: var(--ink);
    color: rgba(250, 246, 238, .78);
}

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

.footer-column h3 {
    color: #fff;
}

.footer-links {
    margin: 0;
    list-style: none;
}

.footer-link,
.footer-links a {
    color: rgba(250, 246, 238, .78);
}

.footer-link:hover,
.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(250, 246, 238, .14);
    text-align: center;
    color: rgba(250, 246, 238, .58);
    font-size: 13px;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 11;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 900px) {
    .header-content {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .language-selector {
        justify-content: flex-start;
        width: fit-content;
    }

    #search-results {
        left: 0;
        right: auto;
        width: 100%;
    }

    .hotel-features,
    .contact-info,
    .guest-actions-grid,
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-actions-intro {
        display: block;
    }

    .guest-actions-intro span {
        display: block;
        margin-bottom: 6px;
    }
}

@media (max-width: 760px) {
    .container {
        width: calc(100% - 28px);
        max-width: 1120px;
    }

    header {
        padding: 18px 0 14px;
    }

    .logo h1 {
        font-size: 32px;
    }

    .logo h1::after {
        margin-top: 7px;
        font-size: 10.5px;
    }

    .language-selector {
        gap: 4px;
        padding: 4px;
    }

    .language-selector a {
        min-height: 30px;
        padding: 5px 9px;
    }

    .search-box {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 78px;
        width: 100%;
        border-radius: 12px;
    }

    .search-box input {
        width: 100%;
        padding: 11px 12px;
        font-size: 15px;
    }

    .search-box button {
        min-width: 0;
        padding: 0 8px;
        font-size: 14px;
        white-space: nowrap;
    }

    .nav-container {
        justify-content: space-between;
        min-height: 52px;
    }

    .mobile-menu-button {
        display: grid;
        place-items: center;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 14px;
        right: 14px;
        display: none;
        width: auto;
        max-height: calc(100vh - 96px);
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--surface);
        box-shadow: var(--shadow-md);
        overflow: auto;
    }

    .nav-list.show {
        display: block;
    }

    .nav-link {
        padding: 12px 14px;
        border-radius: 8px;
    }

    main.container {
        padding-top: 18px;
    }

    .guest-actions {
        padding-top: 14px;
    }

    .guest-actions-intro strong {
        font-size: 24px;
        line-height: 1.12;
    }

    .guest-actions-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .hotel-features,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .feature-item,
    .contact-item {
        padding: 16px;
    }

    .guest-action {
        min-height: 104px;
        padding: 14px 13px;
    }

    .guest-action span {
        max-width: 100%;
        padding-right: 18px;
        font-size: 14px;
    }

    .guest-action small {
        font-size: 11.5px;
    }

    .guest-action::after {
        right: 11px;
        top: 10px;
    }

    .section {
        scroll-margin-top: 68px;
        padding: 21px 17px;
    }

    .section-title {
        margin-bottom: 18px;
        font-size: 27px;
    }

    .welcome-message {
        padding: 17px;
        font-size: 18px;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 420px) {
    .guest-actions-grid {
        grid-template-columns: 1fr;
    }

    .guest-action {
        min-height: 86px;
    }
}
