/* =========================================================
   Unió Coop Zrt. - Globális stíluslap
   ========================================================= */

:root {
  --red: #e30613;
  --red-dark: #c00510;
  --green: #00843d;
  --green-dark: #00662f;
  --gray-900: #1a1a1a;
  --gray-800: #262626;
  --gray-700: #404040;
  --gray-600: #525252;
  --gray-500: #737373;
  --gray-400: #a3a3a3;
  --gray-200: #e5e5e5;
  --gray-100: #f2f2f2;
  --gray-50: #fafafa;
  --white: #ffffff;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.25);

  --container-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button, input, textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

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

/* =========================================================
   Oldalsó díszsávok (keret)
   ---------------------------------------------------------
   A főoldalon a tartalom egy keskeny, halvány sávpár között fut.
   Fixen az ablak széléhez tapadnak, így görgetéskor végig látszanak.
   Csak azokon az oldalakon jelennek meg, ahol a <body> megkapja a
   "has-side-frame" osztályt.
   ========================================================= */

.has-side-frame::before,
.has-side-frame::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--side-frame-width, 72px);
  z-index: 300;
  pointer-events: none;
  /* Halvány, hideg szürkészöld alap finom pontrasztával – mintás, mint egy
     paszpartu, de annyira világos, hogy nem vonja el a figyelmet. */
  background-color: #eff3f0;
  background-image: radial-gradient(
    circle,
    rgba(0, 132, 61, 0.09) 1.4px,
    transparent 1.5px
  );
  background-size: 14px 14px;
}

.has-side-frame::before {
  left: 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.05);
}

.has-side-frame::after {
  right: 0;
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.05);
}

/* A tartalom a sávok között fut: a fejléc, a lábléc és a süti sáv is
   beljebb kezdődik, hogy semmi ne csússzon a keret alá. */
.has-side-frame .navbar,
.has-side-frame .cookie-bar {
  left: var(--side-frame-width, 72px);
  right: var(--side-frame-width, 72px);
}

.has-side-frame main,
.has-side-frame > footer {
  margin-left: var(--side-frame-width, 72px);
  margin-right: var(--side-frame-width, 72px);
}

/* Keskenyebb kijelzőn arányosan szűkül, telefonon csak jelzésértékű,
   hogy ne vegyen el olvasási helyet. */
@media (max-width: 1024px) {
  .has-side-frame { --side-frame-width: 32px; }
}

@media (max-width: 640px) {
  .has-side-frame { --side-frame-width: 14px; }
}

/* =========================================================
   Navigation Bar
   ========================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-100);
}

.navbar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  height: 80px;
}

.navbar-logo {
  flex-shrink: 0;
  padding: 0.5rem 1.5rem 0.5rem 0;
  display: block;
}

.navbar-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.navbar-menu {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  height: 100%;
}

.navbar-menu a {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 100%;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--gray-900);
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  background: var(--red);
  color: var(--white);
}

/* A mobilmenü kapcsolója: rejtett checkbox, de billentyűzettel elérhető.
   Így JavaScript nélkül is nyitható/zárható a menü. */
.navbar-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.navbar-toggle {
  display: none;
  margin-left: auto;
  padding: 0.5rem;
  color: var(--gray-700);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.navbar-toggle svg {
  width: 32px;
  height: 32px;
}

.navbar-toggle .icon-close {
  display: none;
}

.navbar-checkbox:checked ~ .navbar-inner .navbar-toggle .icon-open {
  display: none;
}

.navbar-checkbox:checked ~ .navbar-inner .navbar-toggle .icon-close {
  display: block;
}

.navbar-checkbox:focus-visible ~ .navbar-inner .navbar-toggle {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.navbar-mobile {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
}

.navbar-mobile a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-50);
  color: var(--gray-800);
}

.navbar-mobile a.active {
  background: #fff5f5;
  color: var(--red);
}

@media (max-width: 1023px) {
  .navbar-menu {
    display: none;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-checkbox:checked ~ .navbar-mobile {
    display: block;
  }
}

/* =========================================================
   Main / Page shell
   ========================================================= */

main {
  padding-top: 80px;
  min-height: 70vh;
}

.page-fade {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.btn-white {
  background: var(--white);
  color: var(--red);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-white {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--red);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.btn-green:hover {
  background: var(--green-dark);
}

.btn-outline-gray {
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-800);
  border-radius: var(--radius-md);
}

.btn-outline-gray:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-red-block {
  width: 100%;
  background: var(--red);
  color: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.25s ease;
}

.btn-red-block:hover {
  background: var(--green);
}

.btn-red-block:disabled {
  opacity: 0.7;
  cursor: default;
}

/* =========================================================
   Hero Section (Home)
   ========================================================= */

.hero {
  background: var(--red);
  color: var(--white);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1 1 60%;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.hero-desc {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-logo-wrap {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
}

.hero-logo-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: rotate(3deg);
  transition: transform 0.5s ease;
  max-width: 320px;
}

.hero-logo-card:hover {
  transform: rotate(0deg);
}

.hero-logo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero { padding: 4.25rem 0; }
  .hero-inner { flex-direction: row; align-items: center; }
  .hero-text { text-align: left; }
  .hero-desc { margin: 0; }
  .hero-buttons { justify-content: flex-start; }
  .hero-title { font-size: 2.25rem; }
}

/* =========================================================
   Section helpers
   ========================================================= */

.section {
  padding: 5rem 0;
}

.section-white { background: var(--white); }
.section-gray { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

.section-divider {
  width: 5rem;
  height: 6px;
  background: var(--red);
  margin: 0 auto;
  border-radius: var(--radius-full);
}

.section-sub {
  color: var(--gray-500);
  font-style: italic;
  margin-top: 0.5rem;
}

.page-heading {
  font-size: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: -0.02em;
  font-style: italic;
  border-left: 8px solid var(--red);
  padding-left: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

/* =========================================================
   Home - Feature Grid
   ========================================================= */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  cursor: pointer;
}

.feature-image-wrap {
  position: relative;
  height: 16rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.feature-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.feature-card:hover .feature-image-wrap img {
  transform: scale(1.1);
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  text-align: center;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  /* Nyolc kategória: négy az első, négy a második sorban - a rács így
     hézag nélkül kitöltött, nem kell középre húzni a második sort. */
  .features-grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
}

/* =========================================================
   Home - Aktualitások (hírek)
   ========================================================= */

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

.news-card {
  background: var(--white);
  border-left: 6px solid var(--red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* --- Aktualitások: pontgyűjtő plakát --- */

.promo-poster {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.promo-poster-lead {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

/* A plakát kattintható: új lapon teljes méretben nyílik meg. */
.promo-poster-frame {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-poster-frame:hover,
.promo-poster-frame:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.promo-poster-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.promo-poster-note {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--gray-600);
}

.promo-poster-note a {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-poster-note a:hover {
  color: var(--green);
}

/* --- Partnereink --- */

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

/* A fő kártya kétszer olyan széles, mint a két kisebb, így a partnerlogó
   kap helyet, a két szolgáltatás-kártya pedig mellette sorakozik. */
@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partner-card-main {
    grid-row: span 2;
  }
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.partner-card-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.25rem 2rem;
}

.partner-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--gray-900);
}

.partner-card-main .partner-title {
  font-size: 1.2rem;
  margin: 0;
}

.partner-logo-wrap {
  width: 100%;
  max-width: 260px;
}

/* A Magyar Posta logó a kisebb kártyán ül, ezért visszafogottabb méretben. */
.partner-logo-small {
  max-width: 180px;
}

.partner-logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.partner-link {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: background 0.2s ease, transform 0.2s ease;
}

.partner-link:hover,
.partner-link:focus-visible {
  background: var(--green);
  transform: translateY(-2px);
}

.partner-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  color: var(--green);
}

.partner-icon svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .promo-poster-lead { font-size: 1.85rem; }
}

/* Tájékoztató jellegű hír (pl. zárvatartás) - zöld, hogy ne keveredjen
   össze a piros "új üzlet" jellegű, ünneplős hírekkel. */
.news-card-notice {
  border-left-color: var(--green);
}

.news-card-notice .news-badge {
  background: var(--green);
}

.news-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.news-text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* =========================================================
   About page
   ========================================================= */

.about-content {
  max-width: 860px;
  margin: 0 auto;
}

.about-lead {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* A bemutatkozó szöveg enyhe keretben, sorkizártan: nyugodt, kiadványszerű
   blokk, amit a bal oldali zöld sáv köt a márkához. */
.about-text {
  background: var(--gray-50);
  border-left: 5px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}

.about-text p {
  color: var(--gray-700);
  line-height: 1.85;
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  text-align: justify;
  hyphens: auto;
}

.about-text p:last-child { margin-bottom: 0; }

/* Szűk kijelzőn a sorkizárás csúnya réseket nyitna, ezért ott balra zárt. */
@media (max-width: 600px) {
  .about-text {
    padding: 1.5rem 1.25rem;
  }
  .about-text p {
    text-align: left;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* A számos csempék közös felvezetője. */
.stats-title {
  margin-top: 4rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--gray-900);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card.red { background: #fef2f2; border: 1px solid #fee2e2; }
.stat-card.green { background: #f0fdf4; border: 1px solid #dcfce7; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.stat-number.red { color: var(--red); }
.stat-number.green { color: var(--green); }

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-500);
}

@media (min-width: 768px) {
  /* Négy csempe: kettő-kettő két sorban, hogy a számok olvashatóak maradjanak. */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .stats-grid .stat-card { padding: 2rem 1.25rem; }
}

/* =========================================================
   Rentals page
   ========================================================= */

.rental-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.rental-image {
  height: 20rem;
  overflow: hidden;
}

.rental-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.rental-card:hover .rental-image img {
  transform: scale(1.05);
}

.rental-content {
  padding: 2.5rem;
  background: #fafafa;
}

.rental-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.rental-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.rental-desc {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.rental-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
}

.rental-spec-label {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.rental-spec-value {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--red);
}

/* --- Kiadó üzlethelyiségek listája --- */

.rental-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.rental-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s ease;
}

.rental-item:last-child { border-bottom: 0; }
.rental-item:hover { background: var(--gray-50); }

.rental-zip {
  font-weight: 900;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.rental-address {
  font-weight: 700;
  color: var(--gray-900);
}

/* A megjegyzés a cím alá kerül, a mobil sortörést elkerülve. */
.rental-note {
  grid-column: 2;
  font-size: 0.9rem;
  color: var(--gray-500);
}

@media (min-width: 640px) {
  .rental-item {
    grid-template-columns: auto 1fr auto;
  }
  .rental-note {
    grid-column: auto;
    text-align: right;
  }
}

.rental-contact {
  text-align: center;
  color: var(--gray-600);
  font-size: 1.05rem;
}

.rental-contact a {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rental-contact a:hover {
  color: var(--green);
}

@media (min-width: 768px) {
  .rental-card { flex-direction: row; }
  .rental-image { width: 50%; height: auto; }
  .rental-content { width: 50%; display: flex; flex-direction: column; justify-content: center; }
}

/* =========================================================
   Shops page
   ========================================================= */

/* Üzletkereső: bal oldalon szűrhető lista, jobb oldalon térkép.
   Mobilon a két nézet rádiógombos füllel vált, tehát a váltáshoz
   nem kell JavaScript – az csak a keresést és a térképet mozgatja. */
.finder {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.finder-view {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.finder-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.finder-search {
  position: relative;
  flex: 1 1 260px;
}

.finder-search input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.finder-search input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

.finder-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  color: var(--gray-400);
  pointer-events: none;
}

.finder-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, color 0.2s ease,
    background-color 0.2s ease;
}

.finder-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--green);
}

.finder-toggle:has(input:checked) {
  color: var(--green);
  border-color: var(--green);
  background: rgba(0, 132, 61, 0.07);
}

.finder-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.finder-btn:hover:not(:disabled) {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.finder-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.finder-count {
  flex-basis: 100%;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
}

/* =========================================================
   Szolgáltatás-szűrő – pipálható címkék a kereső alatt
   ========================================================= */

.finder-services {
  padding: 1.1rem 1.5rem 1.35rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50, #f8f9fa);
}

.finder-services-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
}

.finder-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* A pipa maga rejtett: a címke egésze a kattintható felület. */
.finder-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.finder-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700, #374151);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease,
    color 0.18s ease;
}

.finder-chip span em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gray-500);
}

.finder-chip:hover span {
  border-color: var(--green);
}

.finder-chip input:checked + span {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.finder-chip input:checked + span em {
  color: rgba(255, 255, 255, 0.8);
}

.finder-chip input:focus-visible + span {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.finder-services-clear {
  margin-top: 0.8rem;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* Szolgáltatás-címkék az üzletkártyán */
.shop-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--gray-200);
  list-style: none;
}

.shop-service {
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(0, 132, 61, 0.09);
  border-radius: var(--radius-full);
}

/* Nézetváltó fülek – csak kis képernyőn látszanak. */
.finder-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem 0;
}

.finder-tabs label {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#view-list:checked ~ .finder-tabs label[for='view-list'],
#view-map:checked ~ .finder-tabs label[for='view-map'] {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.finder-body {
  display: grid;
  grid-template-columns: 1fr;
}

.finder-panel-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.finder-panel-map {
  display: none;
  min-height: 0;
}

#view-map:checked ~ .finder-body .finder-panel-list { display: none; }
#view-map:checked ~ .finder-body .finder-panel-map { display: block; }

/* Ha egyetlen üzlethez sincs koordináta, a térkép fül és panel elrejtve marad,
   hogy ne egy üres térkép fogadja a látogatót. */
.finder.finder-no-map .finder-tabs,
.finder.finder-no-map .finder-panel-map { display: none !important; }
.finder.finder-no-map .finder-panel-list { display: flex !important; }

.finder-list {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1.25rem;
  overflow-y: auto;
  max-height: 560px;
  scrollbar-width: thin;
}

.finder-list::-webkit-scrollbar { width: 8px; }
.finder-list::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: var(--radius-full);
}

.finder-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--gray-500);
  font-weight: 600;
}

#finder-map {
  width: 100%;
  height: 480px;
  background: var(--gray-100);
  z-index: 0;
}

.map-fallback {
  padding: 2rem;
  text-align: center;
  color: var(--gray-500);
  font-weight: 600;
}

/* Ha a térkép háttere nem tölthető be, a jelölők fölött magyarázat jelenik meg. */
.map-tile-warning {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 500;
  max-width: 24rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.map-tile-warning p + p { margin-top: 0.5rem; }
.map-tile-warning strong { color: var(--gray-900); }

@media (min-width: 1024px) {
  .finder-tabs { display: none; }

  .finder-body,
  #view-map:checked ~ .finder-body {
    grid-template-columns: 390px 1fr;
    height: 660px;
  }

  .finder-panel-list,
  #view-map:checked ~ .finder-body .finder-panel-list {
    display: flex;
    border-right: 1px solid var(--gray-200);
  }

  .finder-panel-map,
  #view-map:checked ~ .finder-body .finder-panel-map {
    display: block;
  }

  .finder-list {
    flex: 1;
    max-height: none;
  }

  #finder-map { height: 100%; }
}

.shop-card {
  position: relative;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.15s ease;
}

.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.shop-card:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.35);
  outline-offset: 2px;
}

.shop-card.is-active {
  border-color: var(--red);
  border-left-color: var(--red);
  box-shadow: var(--shadow-xl);
}

.shop-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.shop-card-town {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--gray-900);
  margin: 0;
}

.shop-distance {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-full);
}

.shop-badge::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.shop-badge.is-open {
  color: var(--green);
  background: rgba(0, 132, 61, 0.1);
}

.shop-badge.is-closed {
  color: var(--gray-500);
  background: var(--gray-100);
}

/* Szezonális nyitvatartás: se nem nyitva, se nem zárva – saját jelölés. */
.shop-badge.is-seasonal {
  color: #92400e;
  background: rgba(245, 158, 11, 0.14);
}

/* A teljes heti nyitvatartás csak a kiválasztott üzletnél nyílik ki,
   így hosszú listában is átlátható marad a kártya. */
.shop-card .shop-hours { display: none; }
.shop-card.is-active .shop-hours { display: block; }

.shop-card-street {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.shop-card-phone {
  display: inline-block;
  font-weight: 800;
  color: var(--red);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.shop-card-phone:hover {
  color: var(--green);
}

.shop-hours {
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}

.shop-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
}

.shop-hours-row dt {
  color: var(--gray-500);
  font-weight: 600;
  white-space: nowrap;
}

.shop-hours-row dd {
  color: var(--gray-900);
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.shop-hours-row.closed dd {
  color: var(--gray-400);
  font-weight: 600;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  min-height: 420px;
  margin-top: 4rem;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.finder-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Csak képernyőolvasónak szánt címke. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Térképi jelölő és buborék. */
.shop-pin-wrap {
  background: none;
  border: 0;
}

.shop-pin {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.map-popup {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.map-popup strong {
  font-size: 1rem;
  color: var(--gray-900);
}

.map-popup-state {
  font-weight: 800;
  font-size: 0.75rem;
}

.map-popup-state.is-open { color: var(--green); }
.map-popup-state.is-closed { color: var(--gray-500); }

.map-popup-hours { color: var(--gray-500); }

.map-popup a {
  font-weight: 800;
  color: var(--red);
}

.map-popup-route { color: var(--green); }

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg);
}

.leaflet-popup-content {
  margin: 0.9rem 1.1rem;
}

/* =========================================================
   Deals page - Flipbook / Catalog viewer
   ========================================================= */

/* Az újság és a klubkártya-doboz egymás mellett; szűk képernyőn a doboz
   az újság alá csúszik, hogy a lapozó kapja a teljes szélességet. */
.deals-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .deals-layout {
    grid-template-columns: 300px 1fr;
    max-width: 1000px;
    gap: 3rem;
  }
}

.flipbook {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* Felhívás a lapozó fölött - piros sáv, hogy ne lehessen átnézni rajta. */
.flipbook-lead {
  display: block;
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .flipbook-lead { font-size: 1.2rem; }
}

/* =========================================================
   Deals page - COOP Klub kártya
   ========================================================= */

.club-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 6px solid var(--green);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.75rem;
  order: 2;
}

@media (min-width: 1024px) {
  .club-card {
    order: 0;
    position: sticky;
    top: 6rem;
  }
}

.club-card-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.club-card-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.club-card-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.club-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.club-links a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-100);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease;
}

.club-links a:hover {
  background: var(--white);
  border-color: var(--green);
  transform: translateX(3px);
}

.club-link-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-800);
}

.club-links a:hover .club-link-title {
  color: var(--green);
}

.club-link-sub {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.flipbook-frame {
  background: var(--white);
  padding: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  position: relative;
}

.flipbook-viewport {
  position: relative;
  aspect-ratio: 1 / 1.41;
  background: var(--gray-100);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

/* A PDF minden oldala egy-egy diára kerül (canvas), közülük mindig egy látszik. */
.flipbook-pages {
  position: absolute;
  inset: 0;
}

.flipbook-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.flipbook-slide.active {
  opacity: 1;
  visibility: visible;
}

.flipbook-slide canvas,
.flipbook-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--white);
}

/* Töltés- és hibaüzenet a néző felett */
.flipbook-status {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background: var(--gray-100);
  color: var(--gray-500);
  font-weight: 600;
}

.flipbook-status p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.flipbook-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-500);
}

.flipbook-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--gray-200);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: flipbook-spin 0.8s linear infinite;
}

@keyframes flipbook-spin {
  to { transform: rotate(360deg); }
}

/* Tartalék nézet: a böngésző saját PDF-olvasója */
.flipbook-pdf-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.flipbook-native .flipbook-viewport {
  aspect-ratio: 1 / 1.3;
}

.flipbook-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flipbook-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease, opacity 0.25s ease;
  color: var(--gray-800);
}

.flipbook-arrow.arrow-left {
  left: 1.5rem;
}

.flipbook-arrow.arrow-right {
  right: 1.5rem;
}

.flipbook-arrow:hover:not(:disabled) {
  background: var(--red);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.flipbook-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.flipbook-native .flipbook-controls,
.flipbook-native .flipbook-counter {
  display: none;
}

.flipbook-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  background: var(--red);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

#lap1:checked ~ .flipbook-viewport .counter-1,
#lap2:checked ~ .flipbook-viewport .counter-2,
#lap3:checked ~ .flipbook-viewport .counter-3,
#lap4:checked ~ .flipbook-viewport .counter-4 {
  display: block;
}

.flipbook-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.flipbook-dot {
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gray-200);
  transition: all 0.25s ease;
  cursor: pointer;
}

.flipbook-dot:hover {
  background: var(--gray-400);
}

.flipbook-dot.active {
  background: var(--red);
  width: 28px;
  border-radius: var(--radius-full);
}

.flipbook-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .flipbook-actions { flex-direction: row; }
}

/* =========================================================
   Deals page - Kuponnal olcsóbb (széles sáv)
   ========================================================= */

.coupon-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

/* Halvány, elforgatott fénysáv - ad egy kis mélységet a tömör pirosnak. */
.coupon-banner::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 55%;
  height: 220%;
  background: rgba(255, 255, 255, 0.07);
  transform: rotate(18deg);
  pointer-events: none;
}

.coupon-banner-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.coupon-banner-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.coupon-banner-title {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.coupon-banner-text {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.coupon-banner-btn {
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .coupon-banner-inner { padding: 3.5rem 2.5rem; }
  .coupon-banner-title { font-size: 2.5rem; }
}

/* =========================================================
   Gallery page
   ========================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

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

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   Contact page
   ========================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-intro {
  margin-bottom: 3rem;
}

.contact-lead {
  color: var(--gray-500);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background: var(--red);
  color: var(--white);
}

.contact-label {
  font-weight: 900;
  color: var(--gray-400);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
}

.contact-value.italic {
  font-style: italic;
}

.contact-form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

.contact-form-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 2rem;
  font-style: italic;
}

/* Nyitvatartás a kapcsolat oldalon */
.contact-hours {
  margin-top: 2rem;
  border-top: 1px solid var(--gray-100);
  padding-top: 1.5rem;
}

.contact-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-50);
}

.contact-hours-row:last-child {
  border-bottom: none;
}

.contact-hours-row span:first-child {
  color: var(--gray-600);
  font-weight: 600;
}

.contact-hours-row span:last-child {
  color: var(--gray-900);
  font-weight: 800;
}

a.btn-red-block {
  display: block;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gray-400);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  margin-left: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 1.1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1);
  background: var(--white);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Simple content page (Privacy)
   ========================================================= */

.simple-page {
  max-width: 860px;
  margin: 2.5rem auto 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 3rem;
}

.simple-page p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.simple-page p.lead {
  font-weight: 700;
  color: var(--gray-800);
}

.simple-page p.note {
  font-style: italic;
  margin-top: 1rem;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--green);
  color: var(--white);
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* A logó fehér hátterű JPG, ezért egy fehér kártyán ül a zöld lábléc felett -
   így a piros-zöld embléma tisztán, eredeti színeivel látszik. */
.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 0;
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-md);
}

.footer-about {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.7;
}

.footer-heading {
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-list a {
  transition: transform 0.2s ease;
  display: inline-block;
}

.footer-list a:hover {
  transform: translateX(4px);
}

/* Cégjogi adatok a láblécben - halványabban, hogy ne vonják el a figyelmet
   az elérhetőségekről, de kereshetők és olvashatók maradjanak. */
.footer-legal {
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

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

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer-bottom a {
  text-decoration: underline;
}

@media (min-width: 768px) {
  /* Három valódi oszlop (korábban négy volt, egy üresen maradt), a Linkek
     oszlop szélesebb, hogy a lista két hasábra bomolhasson. */
  .footer-grid {
    grid-template-columns: 200px 1.5fr 1fr;
    gap: 1.5rem 2.5rem;
    align-items: start;
  }

  /* A Linkek lista két hasábban fut, így a lábléc jóval alacsonyabb. */
  .footer-grid > div:nth-child(2) .footer-list {
    display: block;
    columns: 2;
    column-gap: 2rem;
  }

  .footer-grid > div:nth-child(2) .footer-list li {
    break-inside: avoid;
    margin-bottom: 0.45rem;
  }
}

/* =========================================================
   Süti tájékoztató sáv
   ========================================================= */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: var(--white);
  border-top: 4px solid var(--green);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.14);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.cookie-bar.is-visible {
  transform: translateY(0);
}

.cookie-bar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.cookie-bar-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0;
}

.cookie-bar-text a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar-text a:hover { color: var(--green); }

.cookie-bar-btn {
  flex-shrink: 0;
  padding: 0.7rem 2.25rem;
  background: var(--green);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-bar-btn:hover,
.cookie-bar-btn:focus-visible {
  background: var(--red);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .cookie-bar-inner {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
    padding: 1.1rem 2rem;
  }
}

/* Aki mozgásmentes felületet kért a rendszerében, annak nem úszik be. */
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: none; }
}
