/* =========================================================
   szallodaszoba.hu — Editorial / magazine design system
   --------------------------------------------------------
   REQ-001 baseline, REQ-008 accessibility pass:
     - Contrast: --accent-text (~7:1 on paper) for text use,
       --accent (4.5:1) kept for button backgrounds + borders
     - Fonts:   body 17→18px, eyebrow 0.74rem→0.82rem
     - Focus:   global :focus-visible ring
     - Skip:    .skip-link visible on focus
     - sr-only: visually hidden, screen-reader available
     - Motion:  @media (prefers-reduced-motion: reduce)
     - Forced colors (Windows high-contrast) safety
   Palette: ivory paper, deep ink, terracotta accent.
   Type:    Cormorant Garamond (display) + Inter (body).
   ========================================================= */

/* ---- 1. Tokens --------------------------------------------------- */
:root {
    --paper:        #faf8f3;
    --paper-2:      #ffffff;
    --ink:          #1c1c1a;
    --ink-muted:    #52524d;       /* darkened from #5a5a55 → ~8.0:1 on paper */
    --rule:         #d9d3c4;
    --rule-strong:  #1c1c1a;
    --accent:       #b8533a;       /* button-bg use (≥4.8:1 with white text) */
    --accent-text:  #8c3a23;       /* REQ-008: text use on paper (≈7.3:1, AAA) */
    --accent-dark:  #6e2c19;       /* hover / pressed (≈10:1 on paper) */
    --sand:         #ece5d4;
    --focus-ring:   #8c3a23;       /* matches --accent-text for consistency */

    --serif:  "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --sans:   "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

    --container:    1240px;
    --container-pad: clamp(1.2rem, 3vw, 2.4rem);

    --eyebrow-tracking: 0.22em;
}

/* ---- 2. Reset / base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 20px;               /* REQ-008 iter 3: 17→18→19→20, user feedback "still too small" */
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; }

/* ---- 2a. Focus / a11y utilities (REQ-008) ----------------------- */
/* Global focus ring — visible only on keyboard navigation thanks to :focus-visible.
   Mouse clicks won't trigger this on most browsers. */
:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 2px;
}
/* For browsers that support :focus-visible, suppress the default :focus
   outline when focus came from a pointer event. */
:focus:not(:focus-visible) { outline: none; }

/* Skip-to-main link emitted by partials/header.php.
   Off-screen until it receives focus, then it slides into view. */
.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    background: var(--ink);
    color: var(--paper);
    padding: 12px 18px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.18s ease-out;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 2px solid var(--accent);
    outline-offset: 0;
}

/* Visually hidden but available to assistive tech. Add to any element
   you want screen readers to announce but not display. */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus jumpoint after the topbar. Invisible, no layout impact, but the
   browser can scroll/focus it when the skip link is clicked. */
.skip-anchor {
    position: relative;
    top: -1px;       /* avoid 1px scroll wobble on focus */
    width: 0; height: 0;
    overflow: hidden;
}
.skip-anchor:focus { outline: none; }

/* ---- 3. Layout helpers ------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left:  var(--container-pad);
    padding-right: var(--container-pad);
}
.container--narrow { max-width: 860px; }

.rule {
    height: 1px;
    background: var(--rule);
    border: 0;
    margin: 4rem 0;
}
.rule--strong { background: var(--rule-strong); }

/* ---- 4. Typography ----------------------------------------------- */
.display-1 {
    font-family: var(--serif);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    margin: 0;
}
.display-2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.005em;
    margin: 0;
}
.display-3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    line-height: 1.2;
    margin: 0 0 .4rem;
}
.lede {
    font-family: var(--serif);
    font-style: italic;
    /* iter 3: italic Cormorant reads thinner than its size suggests — go big */
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    line-height: 1.45;
    color: var(--ink-muted);
    margin: 0;
}
.eyebrow {
    font-family: var(--sans);
    font-size: 0.82rem;            /* REQ-008: bumped from 0.74rem */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eyebrow-tracking);
    color: var(--accent-text);     /* REQ-008: AAA contrast on paper */
    margin: 0 0 .6rem;
}
.eyebrow--ink { color: var(--ink); }

/* ---- 5. Top bar / nav -------------------------------------------- */
.topbar {
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(6px);
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}
.brand {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.brand small {
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.68rem;            /* REQ-008: bumped from 0.62rem (was below WCAG legibility recommendations) */
    letter-spacing: var(--eyebrow-tracking);
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 2px;
}
.nav {
    display: flex;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.nav a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.98rem;            /* REQ-008: bumped from 0.92rem */
    font-weight: 500;
    /* REQ-008: vertical padding ensures min ~44px tap target without changing visual height much */
    padding: 10px 0 8px;
    border-bottom: 2px solid transparent;
    transition: border-color .15s, color .15s;
}
.nav a:hover  { border-bottom-color: var(--accent); }
.nav a[aria-current="page"] {
    border-bottom-color: var(--accent-text);
    color: var(--ink);
}
.lang {
    font-size: 0.82rem;            /* REQ-008: bumped from 0.72rem */
    text-transform: uppercase;
    letter-spacing: var(--eyebrow-tracking);
    color: var(--ink-muted);
    display: flex;
    gap: .4rem;
}
.lang a {
    display: inline-block;
    padding: 10px 8px;             /* REQ-008: ~44px tap target */
    text-decoration: none;
    color: var(--ink-muted);
    border-bottom: 2px solid transparent;
}
.lang a.is-active,
.lang a[aria-current="true"] {
    color: var(--ink);
    font-weight: 700;
    border-bottom-color: var(--accent-text);
}

/* ---- 6. Hero ----------------------------------------------------- */
.hero {
    position: relative;
    color: #fff;
    isolation: isolate;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(2rem, 6vw, 5rem);
    padding-top: clamp(6rem, 14vw, 10rem);
    background: #222;
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover;
    background-position: center;
    filter: saturate(0.95);
}
.hero::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    /* REQ-008: deepened the bottom of the gradient to guarantee white-on-dark
       contrast for the eyebrow/lede/meta text even on bright hero photos. */
    background: linear-gradient(180deg,
        rgba(0,0,0,0.30) 0%,
        rgba(0,0,0,0.20) 40%,
        rgba(0,0,0,0.82) 100%);
}
.hero__inner { max-width: 880px; }
.hero .eyebrow { color: #f5d0bd; }          /* warmer + brighter than #f1c9b7 for stronger contrast */
.hero h1 { color: #fff; }
.hero .lede  { color: rgba(255,255,255,0.92); margin-top: 1.1rem; max-width: 640px; } /* was 0.85 */
.hero__meta {
    margin-top: 1.6rem;
    display: flex; gap: 1.4rem; flex-wrap: wrap;
    font-size: 0.86rem;                      /* REQ-008: bumped from 0.82rem */
    letter-spacing: var(--eyebrow-tracking);
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);           /* REQ-008: bumped from 0.75 */
}
.hero__meta span + span { border-left: 1px solid rgba(255,255,255,0.45); padding-left: 1.4rem; }

/* ---- 7. Section header ------------------------------------------ */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 2.6rem;
    align-items: end;
    border-bottom: 1px solid var(--rule-strong);
    padding-bottom: 1.4rem;
}
@media (min-width: 760px) {
    .section-head {
        grid-template-columns: auto 1fr auto;
        gap: 2rem;
    }
    .section-head__meta { text-align: right; }
}
.section-head h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1;
    margin: 0;
}
.section-head__meta {
    font-family: var(--sans);
    font-size: 0.82rem;            /* REQ-008: bumped from 0.74rem */
    letter-spacing: var(--eyebrow-tracking);
    text-transform: uppercase;
    color: var(--ink-muted);
}
.section-head__num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--accent-text);     /* REQ-008 */
}

/* ---- 8. Editorial card grid ------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.4rem, 2.4vw, 2.4rem);
}
.card {
    grid-column: span 12;
    background: transparent;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease;
}
.card:hover { transform: translateY(-3px); }
.card:hover .card__title { color: var(--accent-text); }   /* REQ-008 */
.card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--sand);
}
.card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 1.1rem 0 0; }
.card__title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.3rem, 1.7vw, 1.55rem);
    line-height: 1.2;
    margin: .15rem 0 .5rem;
    transition: color .15s;
}
.card__lede {
    color: var(--ink-muted);
    font-size: 1rem;               /* REQ-008: bumped from 0.95rem */
    line-height: 1.55;
    margin: 0 0 .9rem;
    /* clamp to 3 lines for visual rhythm */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card__cta {
    font-size: 0.82rem;            /* REQ-008: bumped from 0.78rem */
    letter-spacing: var(--eyebrow-tracking);
    text-transform: uppercase;
    color: var(--accent-text);     /* REQ-008 */
    border-bottom: 1px solid var(--accent-text);
    align-self: flex-start;
    padding-bottom: 3px;
}

/* Span variants for asymmetry */
@media (min-width: 760px) {
    .card                 { grid-column: span 6; }
    .grid--3 .card        { grid-column: span 4; }
    .grid--4 .card        { grid-column: span 3; }
    .card--wide           { grid-column: span 8; }
    .card--narrow         { grid-column: span 4; }
    .card--feature        { grid-column: span 12; }
    .card--feature .card__media { aspect-ratio: 16 / 7; }
    .card--feature .card__title { font-size: 2.4rem; }
}

/* Card tag (sits over media, top-left) */
.tag {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.72rem;            /* REQ-008: bumped from 0.66rem */
    font-weight: 600;
    letter-spacing: var(--eyebrow-tracking);
    text-transform: uppercase;
    padding: 6px 10px;
    border: 1px solid var(--ink);
}

/* ---- 9. Two-column intro (city page) ---------------------------- */
.intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-bottom: 1px solid var(--rule);
}
@media (min-width: 860px) {
    .intro { grid-template-columns: 5fr 7fr; gap: 4rem; }
}
.intro__meta { font-family: var(--sans); }
.intro__meta dt {
    font-size: 0.78rem;            /* REQ-008: bumped from 0.7rem */
    letter-spacing: var(--eyebrow-tracking);
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 1rem;
}
.intro__meta dd {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.25rem;
    border-bottom: 1px solid var(--rule);
    padding-bottom: .9rem;
}
/* iter 4: same :not(.lede) treatment as .detail-body p */
.intro__body p:not(.lede) {
    font-size: 1.22rem;
    line-height: 1.7;
    margin: 0 0 1rem;
}
.intro__body p:first-of-type::first-letter {
    font-family: var(--serif);
    font-size: 3.6em;
    float: left;
    line-height: 0.9;
    padding: 6px 10px 0 0;
    color: var(--accent-text);     /* REQ-008 */
}

/* ---- 10. Detail page layout ------------------------------------- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: clamp(3rem, 6vw, 5rem) 0;
}
@media (min-width: 960px) {
    .detail-grid { grid-template-columns: 7fr 4fr; gap: 5rem; }
}
/* iter 4: exempt .lede so the descendant rule doesn't override it on specificity */
.detail-body p:not(.lede) {
    font-size: 1.22rem;
    line-height: 1.75;
    margin: 0 0 1.2rem;
}
.detail-body h2 {
    font-family: var(--serif);
    font-size: 1.8rem;
    margin: 2.4rem 0 1rem;
    font-weight: 500;
}
.detail-body blockquote {
    margin: 2rem 0;
    padding: 0 0 0 1.4rem;
    border-left: 2px solid var(--accent);   /* border, contrast unaffected */
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--ink);
}
.aside {
    border-top: 1px solid var(--rule-strong);
    padding-top: 1.4rem;
    position: sticky;
    top: 90px;
    align-self: start;
}
.aside h3 {
    font-family: var(--sans);
    font-size: 0.82rem;            /* REQ-008: bumped from 0.74rem */
    letter-spacing: var(--eyebrow-tracking);
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 1rem;
}
.specs { list-style: none; padding: 0; margin: 0; }
.specs li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;               /* REQ-008: bumped from 0.95rem */
}
.specs li span:first-child { color: var(--ink-muted); }
.specs li span:last-child  { font-weight: 500; text-align: right; }

/* ---- 11. CTA button --------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--accent);
    color: #fff;
    padding: 14px 22px;           /* already ≥44px tall */
    font-family: var(--sans);
    font-size: 0.88rem;            /* REQ-008: bumped from 0.82rem */
    font-weight: 600;
    letter-spacing: var(--eyebrow-tracking);
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background .15s;
}
.btn:hover  { background: var(--accent-dark); }
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--full  { width: 100%; justify-content: center; }
.btn .arrow { font-family: var(--serif); font-style: italic; }

/* ---- 12. Breadcrumb --------------------------------------------- */
.crumb {
    font-size: 0.85rem;            /* REQ-008: bumped from 0.78rem */
    letter-spacing: var(--eyebrow-tracking);
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 1.6rem 0 0;
}
.crumb a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crumb a:hover { color: var(--accent-text); }    /* REQ-008 */
.crumb .sep { margin: 0 .5rem; color: var(--rule); }

/* ---- 13. Footer ------------------------------------------------- */
.footer {
    margin-top: 6rem;
    border-top: 1px solid var(--rule-strong);
    background: var(--paper);
    padding: 3rem 0 2rem;
    color: var(--ink);             /* REQ-008: ink instead of ink-muted to keep ≥7:1 in fine print */
    font-size: 0.95rem;            /* REQ-008: bumped from 0.9rem */
}
.footer__inner {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 760px) {
    .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer h4 {
    font-family: var(--sans);
    font-size: 0.8rem;             /* REQ-008: bumped from 0.72rem */
    letter-spacing: var(--eyebrow-tracking);
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .6rem; }
.footer a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    color: var(--ink);             /* REQ-008: explicit ink colour for footer links */
}
.footer a:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }
.footer__brand {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--ink);
    margin-bottom: .6rem;
}
.footer__small {
    border-top: 1px solid var(--rule);
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    font-size: 0.85rem;            /* REQ-008: bumped from 0.78rem */
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    color: var(--ink-muted);
}

/* ---- 14. Utility ------------------------------------------------ */
.affiliate-note {
    background: var(--sand);
    border-left: 3px solid var(--accent);
    padding: 1.2rem 1.5rem;        /* iter 3: more breathing room around the bumped text */
    font-size: 1.1rem;             /* iter 3: was 0.95rem (below body!) — now above body */
    line-height: 1.6;
    color: var(--ink);
    margin: 1.6rem 0;
}
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.text-muted { color: var(--ink-muted); }
.img-credit { display: inline-block; font-size: 0.82rem; color: var(--ink-muted); }

/* ---- 15. REQ-008: reduced motion -------------------------------- */
/* Disable all decorative motion for users who request reduced motion.
   Keeps the visual but removes the animation. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .card:hover                       { transform: none; }
    .card:hover .card__media img      { transform: none; }
    .skip-link                        { transition: none; }
}

/* ---- 16. REQ-008: forced-colors (Windows high-contrast) --------- */
/* When the OS overrides colours (e.g. Windows High Contrast modes),
   the user's chosen colours win — but we re-establish visible borders
   on interactive elements so they don't disappear. */
@media (forced-colors: active) {
    .btn,
    .btn--ghost {
        border: 1px solid ButtonText;
        forced-color-adjust: none;
    }
    .nav a,
    .lang a,
    .card__cta,
    .footer a {
        forced-color-adjust: auto;
    }
    :focus-visible {
        outline: 2px solid Highlight;
        outline-offset: 2px;
    }
    .skip-link {
        border: 1px solid ButtonText;
    }
}

/* ---- 17. REQ-008: print --------------------------------------- */
/* Travel guides get printed. Hide nav chrome, keep content readable. */
@media print {
    .topbar, .footer, .skip-link, .btn, .card__cta { display: none; }
    body { background: #fff; color: #000; font-size: 11pt; }
    a { color: #000; text-decoration: un