/* ═══════════════════════════════════════════
   Ελλάδα Ιερή / Sacred Greece – Styles
   ═══════════════════════════════════════════ */

:root {
  --gold:       #C9A84C;
  --gold-dark:  #8B6914;
  --gold-light: #E8D5A3;
  --maroon:     #6B1F1F;
  --maroon-dk:  #3D0F0F;
  --cream:      #FBF6EE;
  --cream-dk:   #F0E8D6;
  --text:       #2D1B0E;
  --muted:      #7A5C3A;
  --shadow:     0 4px 18px rgba(45,27,14,.14);
  --r:          12px;

  --hdr:  60px;
  --ads:  20vh;
  --body: calc(100vh - var(--hdr) - var(--ads));
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; font-family: Georgia, serif; background: var(--cream); color: var(--text); }

/* ════════════════════════════
   HEADER
════════════════════════════ */
#site-header {
  height: var(--hdr);
  background: linear-gradient(130deg, var(--maroon-dk) 0%, var(--maroon) 55%, #9B3535 100%);
  box-shadow: 0 3px 12px rgba(0,0,0,.4);
  z-index: 100;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex; align-items: center; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; flex-shrink: 0;
  user-select: none;
}
.logo-cross { font-size: 26px; color: var(--gold); text-shadow: 0 0 14px rgba(201,168,76,.5); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 17px; font-weight: bold; color: var(--gold-light); letter-spacing: .4px; line-height: 1.15; }
.logo-sub   { font-size: 10px; color: rgba(232,213,163,.6); letter-spacing: 1.8px; text-transform: uppercase; }

#breadcrumb { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; overflow: hidden; flex: 1; }

/* Language switch (RO / EN) */
#lang-switch {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  border: 1.5px solid var(--gold-dark);
  border-radius: 16px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  color: var(--gold-light);
  border: none;
  padding: 4px 10px;
  font-size: 12px; font-weight: bold;
  font-family: Georgia, serif;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-btn:hover { background: rgba(201,168,76,.2); }
.lang-btn.active { background: var(--gold); color: var(--maroon-dk); }
.bc-item        { color: var(--gold-light); font-size: 12px; opacity: .75; cursor: pointer; white-space: nowrap; }
.bc-item:hover  { opacity: 1; text-decoration: underline; }
.bc-item.active { opacity: 1; color: var(--gold); font-weight: bold; cursor: default; text-decoration: none; }
.bc-sep         { color: var(--gold-dark); font-size: 12px; }

/* ════════════════════════════
   MAIN SCROLL AREA
════════════════════════════ */
#main-content {
  height: var(--body);
  overflow-y: auto;
  overflow-x: hidden;
}
#main-content::-webkit-scrollbar { width: 5px; }
#main-content::-webkit-scrollbar-track { background: var(--cream-dk); }
#main-content::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero {
  position: relative;
  width: 100%; height: 320px;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-bottom: 2px solid var(--gold-light);
}
.hero img {
  flex: 0 0 50%;
  max-width: 50%;
  height: 100%;
  object-fit: contain; display: block;
  background: #1a0a0a;
}
/* Legacy overlay is hidden in the new side-by-side layout */
.hero-overlay { display: none; }
.hero-info {
  position: static;
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: auto;
}
.hero-info h1 {
  font-size: clamp(18px, 4vw, 30px);
  color: var(--maroon-dk);
  margin-bottom: 8px;
  line-height: 1.25;
}
.hero-info p {
  font-size: 14px; color: var(--text);
  max-width: 640px; line-height: 1.6;
}
.hero-info a {
  display: inline-block; margin-top: 12px;
  font-size: 13px; color: var(--maroon);
  text-decoration: none; letter-spacing: .3px;
  font-weight: bold;
  padding: 7px 14px;
  border: 1.5px solid var(--maroon);
  border-radius: 20px;
  align-self: flex-start;
  transition: background .15s, color .15s;
}
.hero-info a:hover { background: var(--maroon); color: var(--gold-light); }

/* ════════════════════════════
   PAGE WRAPPER
════════════════════════════ */
.page { max-width: 1100px; margin: 0 auto; padding: 20px 18px 32px; }
.page-head { margin-bottom: 20px; }
.page-title { font-size: clamp(20px,4vw,28px); color: var(--maroon-dk); margin-bottom: 4px; }
.page-sub   { font-size: 13px; color: var(--muted); }

/* ── Sticky back bar (regions / counties / category pages) ── */
.page-back-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 2px solid var(--gold-light);
  padding: 0 16px;
  height: 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(45,27,14,.10);
}

/* ── Back button (used inside sticky bar) ── */
.back-btn {
  display: inline-flex; align-items: center; gap: 0;
  color: var(--maroon); font-size: 14px; font-weight: bold;
  cursor: pointer; padding: 8px 18px 8px 4px;
  border-radius: 24px; border: 1.5px solid var(--gold-light);
  background: #fff; box-shadow: 0 2px 8px rgba(45,27,14,.10);
  transition: background .14s, box-shadow .14s, transform .12s;
  font-family: Georgia, serif;
  white-space: nowrap;
}
.back-btn:hover  { background: var(--cream-dk); box-shadow: 0 4px 14px rgba(45,27,14,.18); transform: translateX(-3px); }
.back-btn:active { transform: translateX(0); }
.back-arrow {
  font-size: 22px; line-height: 1;
  color: var(--gold-dark);
  margin-right: 6px; margin-left: 8px;
  font-family: Arial, sans-serif;
}

/* ── Hero overlay back button (site-list / site-cats pages) ── */
.hero-back {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 10;
}
.hero-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20,5,5,.60);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.30);
  border-radius: 24px;
  padding: 9px 18px 9px 13px;
  font-size: 13px; font-weight: bold;
  cursor: pointer;
  transition: background .15s, transform .12s;
  font-family: Georgia, serif;
  letter-spacing: .2px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,.30);
}
.hero-back-btn:hover  { background: rgba(20,5,5,.82); transform: translateX(-3px); }
.hero-back-btn:active { transform: translateX(0); }

.section-label {
  font-size: 12px; font-weight: bold; text-transform: uppercase;
  letter-spacing: 1.8px; color: var(--maroon); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--gold-light); }

/* ════════════════════════════
   HOME HERO (large)
════════════════════════════ */
/* Home hero: full-bleed photo covering the whole top-to-bottom area,
   with all text and buttons overlaid (so they take no space from it). */
.hero.hero-home {
  display: block;
  position: relative;
  width: 100%;
  height: var(--body);
  min-height: 360px;
  max-height: none;
}
.hero.hero-home img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
.hero.hero-home .hero-overlay {
  display: block;
  background:
    linear-gradient(to bottom, rgba(20,5,5,.55) 0%, transparent 28%),
    linear-gradient(to top, rgba(20,5,5,.85) 0%, rgba(20,5,5,.15) 45%, transparent 70%);
}
.hero.hero-home .hero-info {
  position: absolute;
  left: 0; right: 50%; bottom: 18px;
  padding: 0 18px;
  max-width: none;
  text-align: right;
  z-index: 4;
}
.hero.hero-home .hero-info h1 {
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
  font-weight: bold;
}
.hero.hero-home .hero-info a {
  border: none; padding: 0; margin-top: 6px;
  color: var(--gold); font-weight: normal;
  align-self: flex-end;
}
.hero.hero-home .hero-info a:hover { background: none; color: var(--gold-light); text-decoration: underline; }
/* 3 navigation options: spread evenly across the bottom of the right half */
.hero.hero-home .home-actions {
  position: absolute;
  left: 50%; right: 0; bottom: 18px;
  width: auto; max-width: none;
  margin: 0; padding: 0 18px;
  display: flex; flex-direction: row;
  justify-content: space-evenly; gap: 10px;
  z-index: 4;
}
.hero.hero-home .action-btn {
  flex: 1 1 0;
  align-items: center;
  text-align: center;
  padding: 11px 10px;
  gap: 3px;
}
.hero.hero-home .action-btn .btn-icon  { font-size: 20px; }
.hero.hero-home .action-btn .btn-label { font-size: 14px; }
.hero.hero-home .action-btn .btn-sub   { font-size: 11px; }
/* Middle-right link to the tour-operators page */
.home-operators-link {
  position: absolute;
  bottom: 110px; left: 75%;
  transform: translate(-50%, 0);
  z-index: 6;
  max-width: 46%;
  font-family: Georgia, serif;
  font-size: 17px; font-weight: bold;
  color: #fff;
  background: rgba(107,31,31,.82);
  border: 1.5px solid var(--gold);
  border-radius: 26px;
  padding: 12px 20px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: background .15s, transform .15s;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.home-operators-link:hover {
  background: var(--maroon-dk);
  transform: translate(-50%, 0) scale(1.04);
}

/* ════════════════════════════
   TOUR OPERATORS PAGE
════════════════════════════ */
.op-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.op-card {
  display: block;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--cream-dk);
  border-left: 4px solid var(--maroon);
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.op-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(45,27,14,.2);
  border-left-color: var(--gold-dark);
}
.op-name { font-size: 19px; font-weight: bold; color: var(--maroon-dk); line-height: 1.25; }
.op-by   { font-size: 12px; color: var(--gold-dark); font-style: italic; margin: 3px 0 10px; }
.op-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.op-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: bold; color: var(--maroon);
  padding: 6px 14px; border: 1.5px solid var(--maroon); border-radius: 20px;
}
.op-card:hover .op-link { background: var(--maroon); color: var(--gold-light); }

/* ════════════════════════════
   SITE-CATS HERO (fills screen,
   leaves just enough for 1 row
   of 6 compact category cards)
════════════════════════════ */
.hero.hero-cats {
  height: calc(var(--body) - 130px);
  min-height: 240px;
  max-height: 520px;
}

/* ════════════════════════════
   HOME INTRO TEXT (top-left)
════════════════════════════ */
.home-intro {
  position: absolute;
  top: 18px; left: 75%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: bold;
  line-height: 1.45;
  text-align: center;
  color: #000;
  width: 46%;
  max-width: 46%;
  text-shadow: 0 1px 6px rgba(255,255,255,.75);
}

/* ════════════════════════════
   HOME ACTION BUTTONS (medium)
════════════════════════════ */
.home-actions {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; padding: 14px 18px; max-width: 680px; margin: 0 auto;
}
.action-btn {
  background: linear-gradient(145deg, var(--maroon) 0%, var(--maroon-dk) 100%);
  color: var(--gold-light); border: 1px solid var(--gold-dark);
  border-radius: var(--r); padding: 12px 10px;
  text-align: center; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-family: Georgia, serif;
}
.action-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(107,31,31,.35); }
.action-btn:active { transform: translateY(0); }
.btn-icon  { font-size: 22px; line-height: 1; }
.btn-label { font-size: 12px; font-weight: bold; line-height: 1.3; }
.btn-sub   { font-size: 10px; color: rgba(232,213,163,.6); }

/* ════════════════════════════
   CARD GRIDS (regions/counties)
════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 16px;
}
.place-card {
  background: #fff; border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; border: 1px solid var(--cream-dk);
  transition: transform .15s, box-shadow .15s;
}
.place-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(45,27,14,.2); }
.place-card:active { transform: translateY(0); }
.place-card-img {
  height: 110px; width: 100%; object-fit: contain;
  display: block;
  background: #1a0a0a;
}
.place-card-body { padding: 11px 14px 14px; }
.place-card-name { font-size: 15px; font-weight: bold; color: var(--maroon-dk); margin-bottom: 2px; }
.place-card-site { font-size: 12px; color: var(--muted); font-style: italic; }

.group-title {
  font-size: 12px; font-weight: bold; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--gold-dark);
  padding: 10px 0 10px; margin-top: 8px;
}

/* ════════════════════════════
   CATEGORY GRID
════════════════════════════ */
.cat-grid,
.cat-grid.large {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 8px;
}

.cat-card {
  background: #fff; border-radius: var(--r);
  padding: 10px 4px 8px;
  text-align: center; cursor: pointer;
  box-shadow: var(--shadow); border: 1.5px solid var(--cream-dk);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-family: Georgia, serif;
}
.cat-card:hover {
  transform: translateY(-4px); box-shadow: 0 10px 26px rgba(45,27,14,.2);
  border-color: var(--gold);
}
.cat-card:active { transform: translateY(0); }

.cat-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}

.cat-icon.eat     { background: linear-gradient(135deg,#FF8C42,#E0621A); }
.cat-icon.shops   { background: linear-gradient(135deg,#C9A84C,#8B6914); }
.cat-icon.todo    { background: linear-gradient(135deg,#4CAF88,#2D7A55); }
.cat-icon.hotels  { background: linear-gradient(135deg,#5B8FC9,#2D5F99); }
.cat-icon.attract { background: linear-gradient(135deg,#9B59B6,#6C3483); }
.cat-icon.culture { background: linear-gradient(135deg,#E74C3C,#A93226); }

.cat-name { font-size: 11px; font-weight: bold; color: var(--maroon-dk); line-height: 1.25; }

/* ════════════════════════════
   DETAIL ITEM CARDS (large)
════════════════════════════ */
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.detail-item {
  background: #fff; border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--cream-dk);
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.detail-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(45,27,14,.2); }
/* Photo fills the full width of the card and its allocated height */
.detail-item-photo-link {
  display: block; cursor: pointer; overflow: hidden; position: relative;
  width: 100%; height: 200px;
  flex-shrink: 0;
  background: #1a0a0a;
}
.detail-item-photo {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  background: #1a0a0a;
  transition: transform .3s;
}
.detail-item-photo-link:hover .detail-item-photo { transform: scale(1.05); }
.detail-item-photo-link::after {
  content: '🔍'; position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: 11px; padding: 3px 7px;
  border-radius: 12px; pointer-events: none;
  opacity: 0; transition: opacity .15s;
}
.detail-item-photo-link:hover::after { opacity: 1; }
.detail-item-body { padding: 14px 18px 16px; flex: 1; min-width: 0; }
.detail-item-name {
  font-size: 21px; font-weight: bold; color: var(--maroon-dk);
  margin-bottom: 8px; line-height: 1.25;
}
.detail-item-desc {
  font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 12px;
}
.detail-item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  background: var(--cream-dk); color: var(--gold-dark);
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--gold-light);
}
.detail-item-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--maroon); font-size: 13px; font-weight: bold;
  text-decoration: none; padding: 7px 16px;
  border: 1.5px solid var(--maroon); border-radius: 20px;
  transition: background .15s, color .15s;
}
.detail-item-link:hover { background: var(--maroon); color: var(--gold-light); }
.detail-item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-item-link.gotoweb { border-color: var(--gold-dark); color: var(--gold-dark); }
.detail-item-link.gotoweb:hover { background: var(--gold-dark); color: #fff; }

/* ════════════════════════════
   IMAGE HOVER PREVIEW (floating popover)
   Shown via JS while hovering a detail-item thumbnail.
════════════════════════════ */
#img-preview {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity .14s ease-out, transform .14s ease-out;
  background: rgba(20,5,5,.94);
  border: 2px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  padding: 6px;
  max-width: min(540px, 42vw);
  max-height: 70vh;
}
#img-preview.show {
  opacity: 1;
  transform: scale(1);
}
#img-preview-img {
  display: block;
  max-width: 100%;
  max-height: calc(70vh - 12px);
  width: auto; height: auto;
  border-radius: 6px;
}
/* Disable hover popover on touch devices */
@media (hover: none) {
  #img-preview { display: none !important; }
}

/* ════════════════════════════
   AD BAR (bottom ¼)
════════════════════════════ */
#ad-bar {
  height: var(--ads);
  background: linear-gradient(to bottom, #6d8cb0 0%, #56749c 100%);
  border-top: 2px solid rgba(201,168,76,.4);
  display: flex; flex-direction: column;
  flex-shrink: 0;
}
.ad-bar-top {
  height: 18px; display: flex; align-items: center;
  padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.ad-label { font-size: 9px; text-transform: uppercase; letter-spacing: 2.5px; color: #fff; font-weight: bold; }
.ad-bar-body {
  flex: 1; display: flex; align-items: stretch; overflow: hidden;
}
.ad-arrow {
  width: 38px; flex-shrink: 0;
  background: rgba(201,168,76,.12); border: none;
  color: var(--gold); font-size: 30px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; font-family: Arial, sans-serif;
  padding: 0;
}
.ad-arrow:hover { background: rgba(201,168,76,.28); }
.ad-arrow:active { background: rgba(201,168,76,.4); }

.ad-viewport { flex: 1; overflow: hidden; }
.ad-track {
  display: flex; gap: 10px; height: 100%;
  padding: 8px 6px;
  will-change: transform;
  transition: transform .42s cubic-bezier(.25,.46,.45,.94);
}
.ad-card {
  flex-shrink: 0; width: 170px;
  border-radius: 10px; overflow: hidden;
  position: relative; cursor: pointer;
  border: 1px solid rgba(255,255,255,.07);
  /* reset <a> tag styles */
  display: block; text-decoration: none; color: inherit;
}
.ad-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ad-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.08) 65%);
}
.ad-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px; }
.ad-badge   { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.ad-name    { font-size: 13px; font-weight: bold; color: #fff; line-height: 1.3; }
.ad-tagline { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 600px) {
  :root { --hdr: 54px; --ads: 16vh; }

  /* Header: keep logo + language switch, hide the long breadcrumb */
  .header-inner { gap: 8px; padding: 0 12px; }
  #breadcrumb { display: none; }
  .logo-title { font-size: 15px; }
  .logo-sub   { font-size: 9px; letter-spacing: 1.2px; }
  .lang-btn   { padding: 5px 11px; font-size: 13px; }

  /* ── Home hero: clean vertical, in-flow layout (no overlapping overlays) ── */
  .hero.hero-home {
    display: block; height: auto; min-height: 0;
    background: var(--cream); border-bottom: none;
  }
  .hero.hero-home img {
    position: static; width: 100%; height: 240px; object-fit: contain;
  }
  .hero.hero-home .hero-overlay { display: none; }
  .hero.hero-home .home-intro,
  .hero.hero-home .home-operators-link,
  .hero.hero-home .hero-info,
  .hero.hero-home .home-actions {
    position: static; transform: none;
    top: auto; right: auto; bottom: auto; left: auto;
    width: auto; max-width: none;
  }
  .hero.hero-home .home-intro {
    font-size: 19px; line-height: 1.4; text-align: center;
    color: var(--text); text-shadow: none;
    padding: 14px 16px 4px; margin: 0;
  }
  .hero.hero-home .home-operators-link {
    display: block; margin: 8px 16px 2px; padding: 13px 16px;
    font-size: 16px; box-shadow: var(--shadow);
  }
  .hero.hero-home .home-operators-link:hover { transform: none; }
  .hero.hero-home .hero-info { text-align: center; padding: 6px 16px 2px; }
  .hero.hero-home .hero-info h1 { color: var(--maroon-dk); text-shadow: none; font-size: 21px; }
  .hero.hero-home .hero-info a { align-self: center; color: var(--maroon); }
  .hero.hero-home .home-actions {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    padding: 10px 16px 18px;
  }
  .hero.hero-home .action-btn { padding: 12px 6px; }
  .hero.hero-home .action-btn .btn-icon  { font-size: 22px; }
  .hero.hero-home .action-btn .btn-label { font-size: 12px; }
  .hero.hero-home .action-btn .btn-sub   { display: none; }

  /* ── Other heroes (site-list / site-cats): stack image over text ── */
  .hero { height: auto; min-height: 0; flex-direction: column; }
  .hero.hero-cats { height: auto; }
  .hero:not(.hero-home) img { flex: 0 0 auto; width: 100%; max-width: 100%; height: 220px; }
  .hero-info { padding: 14px 16px 16px; }

  /* ── Detail items: stacked card ── */
  .detail-list { grid-template-columns: 1fr; gap: 14px; }
  .detail-item { flex-direction: column; }
  .detail-item-photo-link { width: 100%; height: 200px; align-self: auto; }
  .detail-item-photo { width: 100%; height: 100%; }
  .detail-item-name { font-size: 18px; }
  .detail-item-actions { gap: 8px; }
  .detail-item-link { padding: 9px 14px; }

  /* ── Grids ── */
  .cat-grid, .cat-grid.large { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .op-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .ad-card { width: 145px; }

  /* ── Back bars ── */
  .page-back-bar { height: 46px; padding: 0 12px; }
  .back-btn { font-size: 13px; padding: 7px 14px 7px 4px; }
  .hero-back { top: 10px; left: 10px; }
  .hero-back-btn { font-size: 12px; padding: 7px 14px 7px 10px; }
}
@media (max-width: 380px) {
  .cat-grid, .cat-grid.large { grid-template-columns: repeat(2,1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .hero.hero-home .home-actions { grid-template-columns: 1fr; }
}

/* ════════════════════════════
   SITE GRID (religious sites list)
════════════════════════════ */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.site-card {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dk);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.site-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(45,27,14,.22);
}
.site-card:active { transform: translateY(0); }

.site-card-img {
  width: 100%; height: 170px;
  object-fit: contain; display: block;
  background: #1a0a0a;
}

.site-card-body {
  padding: 14px 16px 16px;
}

.site-card-name {
  font-size: 17px; font-weight: bold;
  color: var(--maroon-dk);
  margin-bottom: 6px; line-height: 1.25;
}

.site-card-desc {
  font-size: 13px; color: var(--muted);
  line-height: 1.6; margin-bottom: 10px;
}

.site-card-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--maroon);
  text-decoration: none; font-weight: bold;
  padding: 5px 12px;
  border: 1px solid var(--maroon);
  border-radius: 20px;
  transition: background .12s, color .12s;
}
.site-card-link:hover { background: var(--maroon); color: var(--gold-light); }

@media (max-width: 600px) {
  .site-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .site-card-img { height: 120px; }
  .site-card-name { font-size: 14px; }
  .site-card-desc { display: none; }
  .site-card-link { display: none; }
}
@media (max-width: 380px) {
  .site-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════
   LANDING (country chooser)
════════════════════════════ */
body.on-landing #ad-bar, body.on-contact #ad-bar { display: none; }
body.on-landing #breadcrumb, body.on-contact #breadcrumb { display: none; }
body.on-landing, body.on-contact { --ads: 0px; }
/* Ad bar is hidden on the landing/contact pages, so main fills everything below
   the header. (--body is resolved at :root and keeps the ad-bar gap, so set the
   height explicitly here.) */
body.on-landing #main-content, body.on-contact #main-content { height: calc(100vh - var(--hdr)); }

.landing {
  position: relative;
  min-height: calc(100vh - var(--hdr));
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 36px 18px;
  background: #1a0a0a url('images/landing.jpg') center / cover no-repeat;
}
.landing-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,5,5,.72) 0%, rgba(20,5,5,.88) 100%);
}
.landing-content { position: relative; z-index: 2; max-width: 940px; text-align: center; color: #fff; }
.landing-cross { font-size: 46px; color: var(--gold); text-shadow: 0 0 20px rgba(201,168,76,.6); line-height: 1; }
.landing-title {
  font-size: clamp(30px, 6vw, 52px); color: var(--gold-light);
  margin: 8px 0 2px; letter-spacing: .5px; font-weight: bold;
}
.landing-heading { font-size: clamp(15px, 2.4vw, 22px); color: var(--gold); font-style: italic; margin-bottom: 16px; }
.landing-intro {
  font-size: clamp(14px, 1.8vw, 17px); line-height: 1.7;
  max-width: 680px; margin: 0 auto 28px; color: rgba(255,255,255,.92);
}
.landing-choose { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--gold-light); margin-bottom: 16px; }

.country-cards { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.country-card {
  width: 300px; max-width: 82vw; padding: 0;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(201,168,76,.40); border-radius: 16px;
  overflow: hidden; cursor: pointer; text-align: left; color: #fff;
  font-family: Georgia, serif;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.country-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,0,0,.5); border-color: var(--gold); }
.country-card-img { height: 170px; background-size: cover; background-position: center; }
.country-card-body { padding: 16px 18px 18px; }
.country-card-name { font-size: 24px; font-weight: bold; color: var(--gold-light); }
.country-card-sub  { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.5; margin: 6px 0 12px; }
.country-card-cta  { display: inline-block; font-size: 14px; font-weight: bold; color: var(--gold); }

.landing-langs { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.landing-lang-label { font-size: 13px; color: rgba(255,255,255,.7); }
.landing-lang {
  background: transparent; color: var(--gold-light);
  border: 1.5px solid var(--gold-dark); border-radius: 14px;
  padding: 5px 13px; font-size: 13px; font-weight: bold; cursor: pointer; font-family: Georgia, serif;
  transition: background .14s, color .14s;
}
.landing-lang.active, .landing-lang:hover { background: var(--gold); color: var(--maroon-dk); }

/* Top-right Contact link on the landing page (and back link on the contact page) */
.landing-contact {
  position: absolute; top: 18px; right: 20px; z-index: 3;
  background: rgba(26,10,10,.35); color: var(--gold-light);
  border: 1.5px solid var(--gold-dark); border-radius: 16px;
  padding: 7px 16px; font-size: 14px; font-weight: bold; cursor: pointer;
  font-family: Georgia, serif; letter-spacing: .3px;
  transition: background .14s, color .14s;
}
.landing-contact:hover { background: var(--gold); color: var(--maroon-dk); border-color: var(--gold); }

/* Contact / Advertise page */
.contact-content { max-width: 620px; }
.contact-mail {
  display: inline-block; margin-top: 22px;
  font-size: clamp(18px, 3vw, 26px); font-weight: bold; color: var(--gold);
  text-decoration: none; border-bottom: 2px solid var(--gold-dark);
  padding-bottom: 3px; transition: color .14s, border-color .14s;
}
.contact-mail:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }

@media (max-width: 600px) {
  .country-cards { gap: 14px; }
  .country-card { width: 100%; max-width: 340px; }
  .country-card-img { height: 150px; }
}
