/* p-szallas.css: page styles for szallas.html only (11-06 rounds). Linked after tt-1106.css.
   Holds: the three hero variants (former section-variants group "hero", no gradient or tint over any photo, Matt 3df2d8a7 + 7dff4d6d),
   the room cards with exactly four large thumbnails and a lightbox for the rest (32e996c6, cdcda4bf, p-szallas.js),
   the Tomika Vendégház block (6935138e) and the enquiry contact column (76cd3d66, 69b21de0).
   Keeps the enquiry form usable on one column: the shared sticky contact card (tt-v2.css .contact-left)
   would otherwise slide over the form while the visitor scrolls. */
@media (max-width: 992px) { #ajanlat .contact-left { position: static; } }

/* ---------- Hero variants (shared parts) ---------- */
.sz-hero { position: relative; background: var(--tt-cream); padding: 72px 0 80px; overflow: hidden; }
.sz-hero::before, .sz-hero::after { content: none !important; background: none !important; }
.sz-hero figure { margin: 0; }
.sz-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sz-hero .decor-text { display: block; text-align: left; color: var(--accent, #A88655); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 8px; }
.sz-hero h1, .sz-hero .sz-hero-h1 { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--tt-ink); font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.08; margin: 0 0 18px; }
.sz-hero .subtitle { font-size: 1.15rem; line-height: 1.6; color: var(--tt-muted); max-width: 540px; margin: 0 0 32px; }
.sz-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; }

/* Variant 1: text left on cream, photo right in its own frame. */
.sz-hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.sz-hero-photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-global, 4px); box-shadow: 0 24px 50px rgba(44, 42, 36, .14); }

/* Variant 2: wide photo, solid card overlapping its lower edge (the card is opaque, nothing sits on the photo). */
.sz-hero--card { padding-top: 0; }
.sz-hero-wide { height: clamp(320px, 42vw, 560px); overflow: hidden; }
.sz-hero-card { position: relative; max-width: 780px; margin: -110px 0 0; padding: 44px 52px; background: var(--tt-card); border: 1px solid var(--tt-line); box-shadow: 0 24px 50px rgba(44, 42, 36, .12); }

/* Variant 3: centred text, three equal photos with labels under them. */
.sz-hero-text--center { text-align: center; max-width: 780px; margin: 0 auto 44px; }
.sz-hero-text--center .decor-text { text-align: center; }
.sz-hero-text--center .subtitle { margin-left: auto; margin-right: auto; }
.sz-hero-text--center .hero-actions { justify-content: center; }
.sz-hero-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sz-hero-trio figure { display: grid; gap: 10px; }
.sz-hero-trio img { aspect-ratio: 5 / 4; height: auto; border-radius: var(--radius-global, 4px); }
.sz-hero-trio figcaption { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--tt-gold); text-align: center; }

/* Motion: opacity and transform only, on load. */
@keyframes sz-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sz-settle { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
.sz-hero-text, .sz-hero-card { animation: sz-rise .7s ease-out both; }
.sz-hero-photo img, .sz-hero-wide img { animation: sz-settle 1.1s ease-out both; }
.sz-hero-trio figure { animation: sz-rise .7s ease-out both; }
.sz-hero-trio figure:nth-child(2) { animation-delay: .12s; }
.sz-hero-trio figure:nth-child(3) { animation-delay: .24s; }

@media (max-width: 991px) {
  .sz-hero { padding: 40px 0 48px; }
  .sz-hero-split { grid-template-columns: 1fr; gap: 32px; }
  .sz-hero-card { margin-top: -56px; padding: 28px 22px; }
  .sz-hero--card { padding-bottom: 40px; }
}
@media (max-width: 600px) {
  .sz-hero .decor-text { font-size: 1.9rem; }
  .sz-hero h1, .sz-hero .sz-hero-h1 { font-size: 2.4rem; }
  .sz-hero .subtitle { font-size: 1.05rem; margin-bottom: 24px; }
  .sz-hero .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .sz-hero-trio { gap: 8px; }
  .sz-hero-trio figcaption { font-size: .68rem; letter-spacing: .06em; }
}

/* ---------- Rooms: four large thumbnails filling the row, the rest in the lightbox ---------- */
#szobak .tt-room-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; }
#szobak .tt-room-thumbs button { position: relative; }
#szobak .tt-room-thumbs button[hidden] { display: none; }
#szobak .tt-room-thumbs img { aspect-ratio: 1; height: auto; opacity: 1; }
#szobak .tt-room-thumbs button[aria-pressed="true"] img, #szobak .tt-room-thumbs button:hover img { outline: 3px solid var(--tt-gold); outline-offset: -3px; }
#szobak .tt-room-thumbs button:focus-visible { outline: 2px solid var(--brand, #2C3E30); outline-offset: 2px; }
#szobak .sz-more { position: absolute; right: 6px; bottom: 6px; padding: 2px 9px; border-radius: 999px; background: var(--brand, #2C3E30); color: #fff; font-size: .85rem; font-weight: 700; line-height: 1.5; }
#szobak .sz-room-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
#szobak .sz-room-zoom:focus-visible { outline: 2px solid var(--brand, #2C3E30); outline-offset: 2px; }
#szobak .sz-room-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--tt-card); color: var(--tt-ink); font-size: .85rem; font-weight: 700; box-shadow: 0 4px 14px rgba(44, 42, 36, .18); }

/* ---------- Tomika Vendégház block ---------- */
.sz-tomika-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.sz-tomika-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sz-tomika-photos figure { margin: 0; overflow: hidden; border-radius: var(--radius-global, 4px); }
.sz-tomika-photos img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .6s ease; }
.sz-tomika-photos .sz-tm-big { grid-column: 1 / -1; }
.sz-tomika-photos .sz-tm-big img { aspect-ratio: 16 / 9; }
.sz-tomika-photos figure:hover img { transform: scale(1.03); }
.sz-tomika-body .section-subtitle { display: block; margin-bottom: 10px; }
.sz-tomika-body .section-title { text-align: left; margin: 0 0 18px; }
.sz-tomika-lead { color: var(--tt-muted); font-size: 1.1rem; line-height: 1.65; margin: 0 0 26px; }
.sz-tomika-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sz-tomika-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--tt-cream); border: 1px solid var(--tt-line); font-weight: 700; color: var(--tt-ink); line-height: 1.35; }
.sz-tomika-list i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand, #2C3E30); color: #fff; font-size: 1.2rem; }
.sz-tomika-actions .btn { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 991px) { .sz-tomika-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 600px) { .sz-tomika-list { grid-template-columns: 1fr; } .sz-tomika-photos { gap: 8px; } .sz-tomika-actions .btn { width: 100%; justify-content: center; } }

/* ---------- Enquiry contact column: values at least body size, wider column ---------- */
@media (min-width: 993px) { #ajanlat .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important; } }
#ajanlat .contact-left .sz-contact-value { display: block; margin-top: 4px; font-family: 'Lato', sans-serif; font-size: 1.15rem; font-weight: 700; line-height: 1.4; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
#ajanlat .contact-left a.sz-contact-value:hover, #ajanlat .contact-left a.sz-contact-value:focus-visible { color: var(--accent, #A88655); text-decoration: underline; }
/* Rooms with only three photos (107): three thumbnails still fill the row, same row height as the four-thumb cards. */
#szobak .tt-room-thumbs:not(:has(> button:nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#szobak .tt-room-thumbs:not(:has(> button:nth-child(4))) img { aspect-ratio: 4 / 3; }
@media (max-width: 600px) {
  #ajanlat .contact-left { padding: 26px 16px; }
  #ajanlat .contact-info-block { padding: 16px 14px; gap: 14px; }
  #ajanlat .contact-left .sz-contact-value { font-size: 1.125rem; }
  #ajanlat .contact-left .tt-contact-email { overflow-wrap: normal; }
}

/* ---------- Final hero (2026-11-19 meeting D13): one photo, its bottom fades into the cream page ---------- */
.sz-hero--fade { padding: 0 0 64px; }
.sz-fade-photo { height: clamp(380px, 52vw, 660px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%); }
.sz-fade-photo img { object-position: 50% 45%; animation: sz-settle 1.1s ease-out both; }
.sz-fade-text { position: relative; z-index: 1; margin-top: clamp(-150px, -9vw, -70px); text-align: center; max-width: 820px; animation: sz-rise .7s ease-out both; }
.sz-hero--fade .decor-text { text-align: center; }
.sz-hero--fade .subtitle { margin-left: auto; margin-right: auto; }
.sz-hero--fade .hero-actions { justify-content: center; }
@media (max-width: 600px) {
  .sz-fade-photo { height: 340px; }
  .sz-fade-text { margin-top: -60px; }
  .sz-hero--fade { padding-bottom: 44px; }
}
