/* tt-1119.css: Matt's comments of 2026-11-19 evening on the eskuvok and gasztronomia pages, applied site-wide where
   the part is shared. Linked last in the <head> of every page, so it wins over template-chrome.css, shared.css,
   tt-v2.css, tt-refresh.css and tt-1106.css without touching them. site.js sets body.tt-chat-open for the overlay.
   Sections: 1 chat popover and the phone bottom bar, 2 contact phone, 3 footer bottom row, 4 Google-style reviews,
   5 gallery filter row, 6 gasztronomia (hero padding, trust strip, split-gate gallery). */

/* ---------- 1. Chat popover: opens on click only, closes only with X (or Esc), dark blurred page behind ---------- */
html body .widget-chat:not(.is-open):hover { width: 60px; height: 60px; background: var(--brand, #2C3E30); box-shadow: var(--shadow-brand); }
html body .widget-chat:not(.is-open) > .icon-wrapper { display: flex; }
html body .widget-chat:not(.is-open) .chat-window { opacity: 0; visibility: hidden; pointer-events: none; }
body.tt-chat-open::after {
  content: ''; position: fixed; inset: 0; z-index: 1049;
  background: rgba(10, 15, 11, .45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
body.tt-chat-open .widget-phone { visibility: hidden; }
html body .widget-chat.is-open {
  width: min(540px, calc(100vw - 60px)); height: auto; max-height: calc(100dvh - 60px);
  border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
html body .widget-chat.is-open .chat-window { position: relative; height: auto; max-height: calc(100dvh - 60px); opacity: 1; visibility: visible; pointer-events: auto; border: 0; border-radius: 6px; }
html body .widget-chat .chat-header { padding: 18px 64px 16px 26px; }
html body .widget-chat .chat-header h2 { font-size: 1.9rem; }
html body .widget-chat .chat-body { padding: 20px 26px 24px; gap: 0; }
#quick-enquiry fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#quick-enquiry legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#quick-enquiry .site-form-grid { gap: 14px; }
html body #quick-enquiry .site-form .site-field textarea { height: 150px; min-height: 150px; }
html body .widget-chat .site-form-actions { margin-top: 16px; }

/* Phone: one fixed bar on the bottom edge, left half call, right half message (Matt: the round buttons did not work). */
@media (max-width: 767px) {
  body { padding-bottom: 56px; }
  html body .widget-phone, html body .widget-phone:hover, html body .widget-chat.widget-chat:not(.is-open), html body .widget-chat.widget-chat:not(.is-open):hover {
    top: auto !important; bottom: 0 !important; width: 50% !important; height: 56px !important;
    border: 0; border-top: 1px solid rgba(255, 255, 255, .25); border-radius: 0; box-shadow: 0 -6px 18px rgba(0, 0, 0, .18);
  }
  html body .widget-phone, html body .widget-phone:hover { left: 0; right: auto !important; justify-content: center; gap: 8px; background: var(--brand-darkest, #0A0F0B); }
  html body .widget-phone .icon-wrapper { min-width: 0; height: 56px; font-size: 1.35rem; color: var(--accent, #A88655); }
  html body .widget-phone .text-wrapper { opacity: 1; padding: 0; font: 700 1rem/1 'Lato', sans-serif; letter-spacing: .02em; }
  html body .widget-chat.widget-chat:not(.is-open), html body .widget-chat.widget-chat:not(.is-open):hover { left: 50% !important; right: 0 !important; background: var(--brand, #2C3E30); border-left: 1px solid rgba(255, 255, 255, .25); }
  html body .widget-chat.widget-chat:not(.is-open) > .icon-wrapper { inset: 0; width: 100%; min-width: 0; height: 56px !important; gap: 8px; font-size: 1.35rem !important; color: var(--accent, #A88655); }
  html body .widget-chat.widget-chat:not(.is-open) > .icon-wrapper::after { content: 'Üzenet'; font: 700 1rem/1 'Lato', sans-serif; letter-spacing: .02em; color: #fff; }
  html body .widget-chat.is-open {
    left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important;
    height: auto !important; max-height: 92dvh; border-radius: 12px 12px 0 0;
  }
  html body .widget-chat.is-open .chat-window { max-height: 92dvh; border-radius: 12px 12px 0 0; }
  html body .widget-chat .chat-header { padding: 16px 60px 14px 20px; }
  html body .widget-chat .chat-header h2 { font-size: 1.6rem; }
  html body .widget-chat .chat-body { padding: 16px 20px 20px; }
  html body #quick-enquiry .site-form .site-field textarea { height: 120px; min-height: 120px; }
  .site-back-top { bottom: 72px !important; }
}

/* ---------- 2. Contact block phone number: plain sans, larger (eskuvok comment, every page) ---------- */
.contact-info-block a[href^="tel:"] { font: 700 1.4rem/1.3 'Lato', sans-serif; letter-spacing: .02em; white-space: nowrap; }

/* ---------- 3. Footer bottom row on the phone: centred, the legal links wrap in even rows ---------- */
@media (max-width: 767px) {
  html body .footer .footer-bottom { flex-direction: column; align-items: center; gap: 14px; padding: 24px 0; text-align: center; }
  html body .footer .footer-bottom .d-flex { flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
  html body .footer .footer-bottom a { padding: 4px 0; }
}

/* ---------- 4. Google reviews: round initial avatar on a solid colour, like a Google profile; phone sizes ---------- */
html body .selected-testimonials .test-avatar, html body .test-avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--g-av, #5C6BC0); color: #fff;
  font: 500 1.2rem/1 Roboto, Arial, sans-serif; letter-spacing: 0; text-transform: uppercase;
}
.test-avatar[data-c="0"] { --g-av: #5C6BC0; } .test-avatar[data-c="1"] { --g-av: #00897B; } .test-avatar[data-c="2"] { --g-av: #EF6C00; }
.test-avatar[data-c="3"] { --g-av: #8E24AA; } .test-avatar[data-c="4"] { --g-av: #D81B60; } .test-avatar[data-c="5"] { --g-av: #039BE5; }
.test-avatar[data-c="6"] { --g-av: #6D4C41; } .test-avatar[data-c="7"] { --g-av: #43A047; } .test-avatar[data-c="8"] { --g-av: #F4511E; }
.test-avatar[data-c="9"] { --g-av: #546E7A; }
@media (max-width: 600px) {
  html body .selected-testimonials { padding: 56px 0; }
  html body .selected-testimonials .test-columns { grid-template-columns: minmax(0, 1fr); height: 720px; gap: 0; }
  html body .selected-testimonials .test-col:not(:first-child) { display: none; }
  html body .selected-testimonials .test-card { padding: 22px 20px; }
  html body .selected-testimonials .test-quote { font-size: 1.15rem; line-height: 1.5; margin-bottom: 16px; }
  html body .selected-testimonials .test-name h5 { font-size: .9rem; letter-spacing: .02em; }
  html body .selected-testimonials .test-name span, html body .selected-testimonials .test-name time { font-size: .8rem; }
  html body .selected-testimonials .test-author { padding-top: 14px; }
}

/* ---------- 5. Photo gallery filters on the phone: one row that scrolls sideways ---------- */
@media (max-width: 767px) {
  html body .photo-filters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--section-padding-x, 20px)); padding: 2px var(--section-padding-x, 20px) 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  html body .photo-filters::-webkit-scrollbar { display: none; }
  html body .photo-filters .photo-filter { flex: 0 0 auto; white-space: nowrap; }
}

/* ---------- 6. Gasztronomia ---------- */
/* Hero: the green card starts close under the header (was 220 px of photo above it). */
html body[data-page="gastronomy"] .hero { padding-top: 64px; }
@media (max-width: 768px) { html body[data-page="gastronomy"] .hero { padding-top: 24px; padding-bottom: 48px; } }
/* Trust strip on the phone: the three items side by side in one row, smaller. */
@media (max-width: 768px) {
  html body[data-page="gastronomy"] .trust-badges { padding: 16px 0; }
  html body[data-page="gastronomy"] .trust-badges .trust-grid { display: flex; justify-content: space-between; gap: 6px; padding-inline: 12px; }
  html body[data-page="gastronomy"] .trust-badges .trust-item { flex-direction: row; gap: 4px; min-width: 0; font-size: clamp(.55rem, 2.9vw, .75rem); letter-spacing: .01em; white-space: nowrap; }
  html body[data-page="gastronomy"] .trust-badges .trust-item i { font-size: .95rem; padding: 0; border: 0; background: none; }
}
/* Split-gate gallery on the phone: when the gate opens, the 3 x 3 photo grid fills the whole sticky screen. */
@media (max-width: 768px) {
  html body .gallery-motion-v5 .v5-inner {
    height: 100vh; padding: 92px 10px 66px; gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto;
    align-content: stretch; justify-content: stretch;
  }
}
