/* =========================================================
   COUNTRY TANYA ÉTTEREM — DEMO
   Modern Hungarian country restaurant design system
========================================================= */

/* ---------- Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap");

/* ---------- Design tokens ---------- */
:root {
    /* Natural palette */
    --color-cream: #f7f1e6;
    --color-cream-dark: #ede2cd;
    --color-forest: #2b3a2e;
    --color-forest-light: #3d4f3f;
    --color-brown: #6b4a34;
    --color-terracotta: #b5573c;
    --color-terracotta-dark: #9a462f;
    --color-text: #2a2622;
    --color-text-soft: #55504a;
    --color-white: #ffffff;
    --color-border: rgba(43, 58, 46, 0.14);

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 999px;

    --shadow-sm: 0 2px 10px rgba(43, 58, 46, 0.08);
    --shadow-md: 0 10px 30px rgba(43, 58, 46, 0.14);
    --shadow-lg: 0 20px 60px rgba(43, 58, 46, 0.22);

    --container-max: 1180px;
    --header-height: 76px;

    --transition-fast: 160ms ease;
    --transition-med: 280ms ease;
}

/* ---------- Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    font-weight: 600;
    color: var(--color-forest);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
}

@media (max-width: 720px) {
    section {
        padding: 64px 0;
    }
}

/* ---------- Mobil finomhangolás (320–480px) ----------
   Külön, szűk breakpoint a legkisebb telefonokhoz (iPhone SE-től
   iPhone Pro Max-ig), hogy a spacing/tipográfia arányos maradjon.
*/
@media (max-width: 480px) {
    :root {
        --header-height: 64px;
    }

    .container {
        padding: 0 18px;
    }

    section {
        padding: 48px 0;
    }

    .section-header {
        margin: 0 auto 36px;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .section-lead {
        font-size: 1rem;
        margin-bottom: 28px;
    }
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-terracotta-dark);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    margin-bottom: 18px;
}

.section-lead {
    font-size: 1.08rem;
    color: var(--color-text-soft);
    max-width: 640px;
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-header .section-lead {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Focus / a11y ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-terracotta);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--color-forest);
    color: var(--color-white);
    padding: 12px 20px;
    z-index: 200;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.98rem;
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-forest);
    border: 1.5px solid var(--color-forest);
}

.btn-secondary:hover {
    background: var(--color-forest);
    color: var(--color-white);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.26);
}

.btn-block {
    width: 100%;
}

/* =========================================================
   HEADER / NAV
========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background var(--transition-med), box-shadow var(--transition-med);
}

.site-header.solid {
    background: rgba(247, 241, 230, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    transition: color var(--transition-med);
}

.site-header.solid .brand {
    color: var(--color-forest);
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-terracotta);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .brand {
        font-size: 1.05rem;
        gap: 8px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}

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

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.96rem;
    position: relative;
    padding: 6px 2px;
    transition: color var(--transition-fast);
}

.site-header.solid .nav-links a {
    color: var(--color-text);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-terracotta);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-cta {
    display: none;
}

@media (min-width: 860px) {
    .nav-cta {
        display: inline-flex;
    }
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    flex-shrink: 0;
    margin-right: -8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast),
        background var(--transition-fast);
}

.site-header.solid .hamburger span {
    background: var(--color-forest);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 860px) {
    .hamburger {
        display: none;
    }
}

@media (max-width: 859px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--color-cream);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-med);
    }

    .nav-links.open {
        max-height: 480px;
    }

    .nav-links a {
        color: var(--color-text);
        padding: 16px 24px;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links .nav-cta-mobile {
        display: block;
        padding: 20px 24px;
    }
}

.nav-cta-mobile {
    display: none;
}

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* iOS Safari: a valós, eszközsáv nélküli magasság */
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
            160deg,
            rgba(20, 26, 18, 0.72),
            rgba(30, 24, 16, 0.55) 55%,
            rgba(20, 26, 18, 0.8)
        ),
        var(--placeholder-hero);
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding-top: var(--header-height);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-cream);
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.1rem);
    color: var(--color-white);
    margin-bottom: 20px;
    text-wrap: balance;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 480px) {
    .hero {
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }

    .hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
        margin-bottom: 14px;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
        margin-bottom: 26px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-scroll-cue {
        display: none;
    }
}

.hero-scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.hero-scroll-cue .line {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.5);
    animation: scrollcue 2s infinite;
}

@keyframes scrollcue {
    0%, 100% { transform: scaleY(1); opacity: 0.7; }
    50% { transform: scaleY(0.4); opacity: 0.3; }
}

/* =========================================================
   PLACEHOLDER IMAGE BLOCKS
   (nincs jogtiszta valódi fotó a demóban — CSS-alapú, könnyen
   img-re cserélhető placeholder textúra)
========================================================= */
.img-placeholder {
    position: relative;
    background: linear-gradient(135deg, var(--color-brown), var(--color-forest));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    overflow: hidden;
}

.img-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.04) 0,
        rgba(255, 255, 255, 0.04) 2px,
        transparent 2px,
        transparent 12px
    );
}

.img-placeholder span {
    position: relative;
    z-index: 1;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-full);
}

:root {
    --placeholder-hero: linear-gradient(135deg, #4a3826, #2b3a2e);
}

/* =========================================================
   ABOUT
========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
}

.about-text .section-tag,
.about-text .section-title {
    text-align: left;
}

.about-text p {
    color: var(--color-text-soft);
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.about-text .placeholder-note {
    font-size: 0.82rem;
    color: var(--color-terracotta-dark);
    background: rgba(181, 87, 60, 0.08);
    border-left: 3px solid var(--color-terracotta);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image {
        aspect-ratio: 16 / 10;
    }
}

/* =========================================================
   MENU / KIEMELT ÉTELEK
========================================================= */
.menu-section {
    background: var(--color-cream-dark);
}

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

@media (max-width: 980px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

.menu-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.menu-card-image {
    aspect-ratio: 4 / 3;
}

.menu-card-body {
    padding: 20px 22px 24px;
}

.menu-card-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.menu-card-top h3 {
    font-size: 1.15rem;
}

.menu-card-price {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-terracotta-dark);
    white-space: nowrap;
}

.menu-card p {
    color: var(--color-text-soft);
    font-size: 0.94rem;
}

.menu-disclaimer {
    text-align: center;
    font-size: 0.82rem;
    color: var(--color-text-soft);
    margin-top: 32px;
}

/* =========================================================
   WHY US
========================================================= */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

@media (max-width: 980px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.why-card {
    text-align: center;
    padding: 34px 22px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--color-forest);
    color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.why-card p {
    color: var(--color-text-soft);
    font-size: 0.94rem;
}

/* =========================================================
   GALLERY
========================================================= */
.gallery-section {
    background: var(--color-forest);
    color: var(--color-cream);
}

.gallery-section .section-tag {
    color: var(--color-terracotta);
}

.gallery-section .section-title {
    color: var(--color-white);
}

.gallery-section .section-lead {
    color: rgba(247, 241, 230, 0.75);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 16px;
}

.gallery-grid button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
}

.gallery-item {
    border-radius: var(--radius-md);
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    transition: transform var(--transition-fast);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-grid .g1 { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g2 { grid-column: span 2; }
.gallery-grid .g3 { grid-column: span 1; }
.gallery-grid .g4 { grid-column: span 1; }
.gallery-grid .g5 { grid-column: span 2; }
.gallery-grid .g6 { grid-column: span 2; grid-row: span 1; }

@media (max-width: 860px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .gallery-grid .g1,
    .gallery-grid .g2,
    .gallery-grid .g5,
    .gallery-grid .g6 {
        grid-column: span 2;
    }

    .gallery-grid .g1 {
        grid-row: span 1;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 16, 0.92);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-inner {
    max-width: 900px;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-white);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* =========================================================
   BOOKING HIGHLIGHT SECTION
========================================================= */
.booking-section {
    background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.booking-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

@media (max-width: 860px) {
    .booking-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
}

.booking-text .section-tag {
    color: rgba(255, 255, 255, 0.85);
}

.booking-text h2 {
    color: var(--color-white);
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    margin-bottom: 18px;
}

.booking-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    margin-bottom: 28px;
    max-width: 480px;
}

@media (max-width: 860px) {
    .booking-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

.booking-sample {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 18px;
    font-style: italic;
    max-width: 460px;
}

@media (max-width: 860px) {
    .booking-sample {
        margin-left: auto;
        margin-right: auto;
    }
}

.booking-hint {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.booking-visual {
    display: flex;
    justify-content: center;
}

.booking-mock {
    width: 100%;
    max-width: 340px;
    background: var(--color-white);
    color: var(--color-text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.booking-mock-header {
    background: var(--color-forest);
    color: var(--color-white);
    padding: 16px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-mock-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-mock .bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    max-width: 85%;
}

.booking-mock .bubble.user {
    align-self: flex-end;
    background: var(--color-terracotta);
    color: var(--color-white);
    border-bottom-right-radius: 4px;
}

.booking-mock .bubble.ai {
    align-self: flex-start;
    background: var(--color-cream-dark);
    border-bottom-left-radius: 4px;
}

/* =========================================================
   HOURS + CONTACT
========================================================= */
.hours-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

@media (max-width: 860px) {
    .hours-contact {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid var(--color-border);
}

.hours-table td {
    padding: 12px 0;
    font-size: 0.98rem;
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--color-forest);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--color-forest);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--color-terracotta-dark);
}

.map-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 16/10;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    background: var(--color-forest);
    color: rgba(247, 241, 230, 0.85);
    padding: 64px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 780px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 14px;
}

.footer-col h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================================
   CHAT WIDGET
========================================================= */
.chat-fab {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: calc(24px + env(safe-area-inset-right));
    z-index: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    background: var(--color-terracotta);
    color: var(--color-white);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

@media (max-width: 480px) {
    .chat-fab {
        bottom: calc(16px + env(safe-area-inset-bottom));
        right: calc(16px + env(safe-area-inset-right));
        padding: 13px 18px;
        font-size: 0.92rem;
    }

    .chat-fab .fab-icon {
        font-size: 1.05rem;
    }
}

.chat-fab:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
}

.chat-fab .fab-icon {
    font-size: 1.2rem;
}

.chat-fab[hidden] {
    display: none;
}

.chat-panel {
    position: fixed;
    z-index: 500;
    bottom: 24px;
    right: 24px;
    width: 396px;
    max-width: calc(100vw - 32px);
    height: min(640px, calc(100vh - 48px));
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-panel[hidden] {
    display: none;
}

@media (max-width: 560px) {
    .chat-panel {
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh; /* iOS Safari: pontos, eszközsáv-mentes magasság */
        max-width: 100%;
        border-radius: 0;
    }

    .chat-header {
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .chat-input-row textarea {
        /* 16px alatt Safari automatikusan ráközelít fókuszáláskor */
        font-size: 16px;
    }
}

.chat-header {
    background: var(--color-forest);
    color: var(--color-white);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
}

.chat-header-title {
    font-weight: 700;
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-header-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(247, 241, 230, 0.8);
}

@media (max-width: 480px) {
    .chat-header {
        gap: 8px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .chat-header-title {
        font-size: 0.9rem;
    }

    .chat-lang-toggle button {
        padding: 5px 9px;
        font-size: 0.72rem;
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6fbf73;
    flex-shrink: 0;
}

.chat-lang-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.chat-lang-toggle button {
    padding: 5px 11px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.chat-lang-toggle button.active {
    background: var(--color-white);
    color: var(--color-forest);
}

.chat-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.chat-quick-actions {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    overflow-x: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* jobb szélen elhalványuló árnyék, jelezve, hogy görgethető a sor */
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
}

.chat-quick-actions::-webkit-scrollbar {
    display: none;
}

.chat-quick-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    min-height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-cream-dark);
    color: var(--color-forest);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.chat-quick-btn:hover {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-msg-row {
    display: flex;
    flex-direction: column;
}

.chat-msg-row.user {
    align-items: flex-end;
}

.chat-msg-row.assistant,
.chat-msg-row.system {
    align-items: flex-start;
}

.bubble {
    max-width: 84%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 480px) {
    .chat-body {
        padding: 14px;
        gap: 10px;
    }

    .bubble {
        max-width: 88%;
        padding: 10px 14px;
        font-size: 0.88rem;
        line-height: 1.48;
    }

    .chat-card {
        max-width: 96%;
    }
}

.chat-msg-row.user .bubble {
    background: var(--color-terracotta);
    color: var(--color-white);
    border-bottom-right-radius: 5px;
}

.chat-msg-row.assistant .bubble {
    background: var(--color-cream-dark);
    color: var(--color-text);
    border-bottom-left-radius: 5px;
}

.chat-msg-row.system .bubble {
    background: transparent;
    color: var(--color-text-soft);
    font-size: 0.8rem;
    text-align: center;
    max-width: 100%;
    padding: 4px 8px;
}

.chat-msg-row.error .bubble {
    background: #fbeaea;
    color: #8a2f2f;
    border: 1px solid #f0c4c4;
}

/* success / info cards */
.chat-card {
    max-width: 92%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.chat-card-header {
    background: var(--color-forest);
    color: var(--color-white);
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-card-header.error {
    background: #8a2f2f;
}

.chat-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}

.chat-card-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.chat-card-row .label {
    color: var(--color-text-soft);
}

.chat-card-row .value {
    font-weight: 600;
    text-align: right;
}

.booking-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-cream-dark);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-top: 4px;
}

.booking-code-box code {
    font-family: "Menlo", "Consolas", monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-forest);
    letter-spacing: 0.02em;
}

.copy-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-terracotta-dark);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(181, 87, 60, 0.12);
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(181, 87, 60, 0.22);
}

.copy-btn.copied {
    background: rgba(76, 154, 92, 0.18);
    color: #2f7a41;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--color-cream-dark);
    border-radius: 16px;
    width: fit-content;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-text-soft);
    animation: typingdot 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingdot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-privacy {
    font-size: 0.74rem;
    color: var(--color-text-soft);
    padding: 8px 16px 0;
    flex-shrink: 0;
}

.chat-privacy a {
    color: var(--color-terracotta-dark);
    text-decoration: underline;
}

.chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
    background: var(--color-white);
}

.chat-input-row textarea {
    flex: 1;
    resize: none;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    max-height: 100px;
    background: var(--color-cream);
}

@media (max-width: 480px) {
    .chat-input-row {
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
        gap: 8px;
    }

    .chat-input-row textarea {
        padding: 10px 12px;
        /* 16px alatt Safari automatikusan ráközelít a mezőre fókuszáláskor
           - ez pontosan az az "összeeső layout" jelenség, amit el kell kerülni */
        font-size: 16px;
        max-height: 80px;
    }

    .chat-send-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.chat-input-row textarea:disabled {
    opacity: 0.6;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-terracotta);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background var(--transition-fast);
}

.chat-send-btn:hover:not(:disabled) {
    background: var(--color-terracotta-dark);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
