/* ═══════════════════════════════════════════════════════════
   TubHotels Sanctuary — City / Region Page Styles
   Template: page-city.php
   Design ref: demo/anaheim-demo.html
═══════════════════════════════════════════════════════════ */

/* ── HERO ── */
.city-hero {
  height: 520px; position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.city-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform 14s ease-out; transform: scale(1.08);
}
.city-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,27,42,.65) 0%, rgba(13,27,42,.4) 45%, rgba(13,27,42,.75) 100%);
}
.city-hero-content { position: relative; z-index: 2; padding: 0 24px; }

.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 20px;
  font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
}
.breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: rgba(255,255,255,.3); }
.breadcrumb .current { color: rgba(255,255,255,.85); }

.city-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px,4.5vw,52px); font-weight: 700;
  color: #fff; line-height: 1.1;
  text-shadow: 0 3px 20px rgba(0,0,0,.4); margin-bottom: 12px;
}
.city-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(15px,2vw,20px); font-weight: 400;
  color: rgba(255,255,255,.82); letter-spacing: .5px; margin-bottom: 24px;
}
.hero-stats-row { display: flex; align-items: center; justify-content: center; gap: 28px; }
.hstat { text-align: center; }
.hstat-n { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: #fff; line-height: 1; }
.hstat-n span { color: var(--teal); }
.hstat-l { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 3px; }
.hstat-div { width: 1px; height: 28px; background: rgba(255,255,255,.2); }

/* ── MAIN CONTENT ── */
.page-main { max-width: 1400px; margin: 0 auto; padding: 64px 64px; }

/* ── SECTION HEADER ── */
.sec-header { margin-bottom: 32px; }
.sec-label, .sec-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.sec-title, .sec-tit { font-family: 'Playfair Display', serif; font-size: clamp(28px,3.2vw,44px); font-weight: 600; color: var(--ink); line-height: 1.05; letter-spacing: -1px; }
.sec-title em, .sec-tit em { font-style: italic; font-weight: 400; color: var(--light-muted); }
.page-section { margin-bottom: 80px; }

/* ── LONG DESCRIPTION ── */
.page-long-desc { background: #fff; border-radius: 20px; padding: 48px 52px; box-shadow: var(--shadow); border: 1px solid var(--sand); }
.page-long-desc p { font-size: 15px; line-height: 1.85; color: var(--muted); margin-bottom: 18px; }
.page-long-desc p:last-child { margin-bottom: 0; }
.page-long-desc strong { color: var(--ink); font-weight: 600; }

/* ── HOTEL CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(13,27,42,.07);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative; cursor: pointer;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(13,27,42,.13); }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card-img { position: relative; overflow: hidden; height: 200px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.tag-luxury { position: absolute; top: 12px; left: 12px; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 12px; border-radius: 50px; background: var(--gold); color: var(--ink); }
.card-rating { position: absolute; bottom: 12px; right: 12px; background: var(--ink); color: #fff; border-radius: 10px; padding: 5px 10px; text-align: center; line-height: 1; }
.score { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; display: block; }
.rlabel { font-size: 8px; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); margin-top: 2px; display: block; }
.card-body { padding: 18px 18px 16px; }
.card-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 5px; }
.card-loc { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-bottom: 9px; }
.card-desc { font-size: 12px; color: #5a6475; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--sand); }
.card-price { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--ink); }
.card-per { font-size: 11px; color: var(--muted); }
.card-reviews { font-size: 10px; color: var(--muted); margin-top: 2px; }
.btn-book { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: var(--ink); color: #fff; border-radius: 50px; padding: 9px 16px; font-size: 11px; font-weight: 700; letter-spacing: .7px; text-decoration: none; text-transform: uppercase; transition: background .2s; white-space: nowrap; }
.btn-book:hover { background: var(--teal); }
.arr { width: 12px; height: 12px; }

/* ── MAP (shared with state.css selectors) ── */
.marker-cluster-small  { background: rgba(22,160,133,.22); }
.marker-cluster-small div  { background: rgba(22,160,133,.82); color: #fff; font-weight: 800; }
.marker-cluster-medium { background: rgba(230,126,34,.22); }
.marker-cluster-medium div { background: rgba(230,126,34,.85); color: #fff; font-weight: 800; }
.marker-cluster-large  { background: rgba(192,57,43,.20); }
.marker-cluster-large div  { background: rgba(192,57,43,.82); color: #fff; font-weight: 800; }
.thm-price-icon-wrap { background: transparent; border: 0; }
.thm-price-pin { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 24px; padding: 0 8px; border-radius: 999px; font-weight: 700; font-size: 11px; font-family: 'Inter', sans-serif; line-height: 1; white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .15s; position: relative; }
.thm-price-pin.pin-green  { background: #16a085; color: #fff; box-shadow: 0 3px 12px rgba(22,160,133,.38); }
.thm-price-pin.pin-yellow { background: #e67e22; color: #fff; box-shadow: 0 3px 12px rgba(230,126,34,.38); }
.thm-price-pin.pin-orange { background: #c0392b; color: #fff; box-shadow: 0 3px 12px rgba(192,57,43,.38); }
.thm-price-pin.pin-grey   { background: #fff; color: #334155; border: 1.5px solid #e5e0d8; box-shadow: 0 2px 8px rgba(0,0,0,.10); }
.thm-price-pin:hover { transform: scale(1.08) translateY(-1px); }
.thm-price-pin.is-active  { transform: scale(1.12) translateY(-2px) !important; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 6px 20px rgba(0,0,0,.28) !important; z-index: 10; }
.thm-map-container { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.thm-map { width: 100%; display: block; }
.thm-desktop-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(360px,34%); min-width: 280px; z-index: 600; display: flex; flex-direction: column; transform: translateX(-104%); transition: transform .32s cubic-bezier(.22,.68,0,1.2); background: rgba(255,255,255,.97); backdrop-filter: blur(20px) saturate(180%); box-shadow: 8px 0 32px rgba(0,0,0,.14); }
.thm-desktop-panel.is-open { transform: translateX(0); }
.thm-desktop-panel-inner { height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.thm-desktop-panel-close { position: absolute; top: 14px; right: 14px; z-index: 50; width: 34px; height: 34px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.14); transition: background .15s, transform .15s; }
.thm-desktop-panel-close:hover { background: #f1f5f9; transform: scale(1.08); }
.thm-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; height: 100%; gap: 12px; padding: 32px 24px; color: var(--muted); font-size: 14px; text-align: center; }
.thm-placeholder::before { content: '🗺️'; font-size: 40px; opacity: .6; }
.thm-card { background: #fff; overflow: hidden; cursor: pointer; }
.thm-card-image { display: block; width: 100%; height: 220px; object-fit: cover; }
.thm-card-content { padding: 18px 20px 22px; }
.thm-title { margin: 0 0 6px; font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.thm-address { margin: 0 0 14px; color: var(--muted); font-size: 12px; display: flex; align-items: flex-start; gap: 4px; }
.thm-address::before { content: '📍'; font-size: 11px; flex-shrink: 0; margin-top: 1px; }
.thm-book-btn { display: block; width: 100%; padding: 12px 16px; border: 0; border-radius: 10px; background: var(--ink); color: var(--gold); font-weight: 800; font-size: 14px; cursor: pointer; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; transition: background .2s; box-shadow: 0 4px 14px rgba(13,27,42,.28); }
.thm-book-btn:hover { background: var(--teal); }
.thm-card-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 0; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.thm-card-rating { display: flex; align-items: center; gap: 5px; }
.thm-rating-badge { background: var(--ink); color: var(--gold); font-weight: 900; font-size: 13px; padding: 3px 8px; border-radius: 6px; min-width: 38px; text-align: center; }
.thm-rating-label { font-weight: 700; font-size: 13px; color: var(--ink); }
.thm-rating-reviews { color: var(--muted); font-size: 11px; }
.thm-desc { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.65; }
.thm-map-legend { position: absolute; bottom: 30px; right: 14px; z-index: 500; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.12); font-size: 11px; font-weight: 700; }
.thm-legend-item { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.thm-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.thm-legend-dot.green { background: #16a085; }
.thm-legend-dot.yellow { background: #e67e22; }
.thm-legend-dot.red { background: #c0392b; }
.thm-fab { display: none; position: fixed; left: 20px; bottom: 80px; z-index: 9990; align-items: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 6px 24px rgba(13,27,42,.38); }
.thm-fab::before { content: '🗺️'; font-size: 16px; }
.thm-map-modal { position: fixed; top: 14px; right: 14px; bottom: 14px; left: 14px; z-index: 9999; border-radius: 24px; overflow: hidden; background: #fff; flex-direction: column; box-shadow: 0 16px 60px rgba(0,0,0,.36); }
.thm-modal-close { position: absolute; top: 14px; right: 14px; z-index: 10001; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 15px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.16); transition: background .15s, transform .15s; }
.thm-modal-close:hover { background: #f1f5f9; transform: scale(1.08); }
.thm-modal-map { flex: 1; width: 100%; height: 100%; min-height: 0; }
.thm-mini-card { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 10000; background: #fff; border-radius: 22px; box-shadow: 0 -4px 30px rgba(0,0,0,.18); padding: 14px; transform: translateY(125%); transition: transform .34s cubic-bezier(.22,.68,0,1.2); }
.thm-mini-card-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 999px; background: #f6f4f0; color: var(--ink); font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.thm-mc-card { display: grid; grid-template-columns: 44% 1fr; gap: 14px; align-items: stretch; cursor: pointer; }
.thm-mc-img { min-height: 170px; border-radius: 16px; overflow: hidden; background: #f6f4f0; }
.thm-mc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thm-mc-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 4px 28px 4px 0; }
.thm-mc-name { margin: 0; font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.thm-mc-addr { margin: 0; font-size: 11px; color: #8a95a3; line-height: 1.4; }
.thm-mc-btn { display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--ink); color: var(--gold); font-weight: 800; font-size: 13px; cursor: pointer; letter-spacing: .04em; text-transform: uppercase; transition: background .2s; }
.thm-mc-btn:hover { background: var(--teal); }

/* ── REGION TILE GRID ── */
.tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.tile { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; min-width: 0; border-radius: 16px; box-shadow: var(--shadow); transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; text-decoration: none; display: block; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); z-index: 5; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.65) saturate(.9); transition: transform .6s ease, filter .5s ease; }
.tile:hover img { transform: scale(1.06); filter: brightness(.88) saturate(1.2); }
.tile-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,27,42,.88) 0%, rgba(13,27,42,.15) 55%, transparent 80%); transition: opacity .35s; }
.tile:hover .tile-overlay { opacity: .8; }
.tile-glow { position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 0 0 0 var(--teal); transition: box-shadow .35s ease; pointer-events: none; }
.tile:hover .tile-glow { box-shadow: inset 0 0 0 1.5px var(--teal), 0 12px 32px rgba(42,180,160,.15); }
.tile-count { position: absolute; top: 10px; right: 10px; background: rgba(13,27,42,.65); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.9); font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 50px; }
.tile-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; }
.tile-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tile-cta { display: block; margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.tile:hover .tile-cta { opacity: 1; transform: translateY(0); }

/* ── LONG DESCRIPTION ── */
.desc-wrap { background: #fff; border-radius: 20px; padding: 48px 52px; box-shadow: var(--shadow); border: 1px solid var(--sand); }
.desc-wrap p { font-size: 15px; line-height: 1.85; color: var(--muted); margin-bottom: 18px; }
.desc-wrap p:last-child { margin-bottom: 0; }
.desc-wrap strong { color: var(--ink); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .page-main { padding: 48px 32px; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .tiles { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 991px) {
  .thm-map-container { display: none; }
  .thm-desktop-panel { display: none !important; }
  .thm-fab { display: inline-flex !important; }
  .thm-map-modal { top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; border-radius: 0 !important; z-index: 10002 !important; }
  .thm-modal-close { top: 78px !important; right: 18px !important; z-index: 10003 !important; width: 42px !important; height: 42px !important; font-size: 18px !important; }
  .map-sec-header { display: none !important; }
}
@media (max-width: 600px) {
  #nav { padding: 14px 20px; }
  .page-main { padding: 32px 20px; }
  .city-hero { height: 300px; }
  .city-hero-img { background-size: cover; background-position: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2,1fr); }
  .desc-wrap { padding: 24px 20px; }
  .thm-fab { left: 14px; bottom: 68px; padding: 11px 18px; font-size: 14px; }
}

/* Intro bar (one-liner below hero) */
.intro-bar { background: #fff; border-bottom: 1px solid var(--sand); padding: 22px 52px; text-align: center; }
.intro-text { font-family: 'Cormorant Garamond', serif; font-size: 19px; color: var(--ink); letter-spacing: .3px; max-width: 820px; margin: 0 auto; }
.intro-text strong { color: var(--teal); font-weight: 600; }

/* ── Hotel Cards (demo style) ── */
.cards-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 4px 20px rgba(13,27,42,.07);transition:transform .3s ease,box-shadow .3s ease;position:relative;cursor:pointer;}
.card:hover{transform:translateY(-6px);box-shadow:0 18px 44px rgba(13,27,42,.13);}
.card-link{position:absolute;inset:0;z-index:1;}
.card-img{position:relative;overflow:hidden;height:200px;background:var(--cream-2);}
.card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease;}
.card:hover .card-img img{transform:scale(1.05);}
.tag-luxury{position:absolute;top:12px;left:12px;font-size:9px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;padding:4px 12px;border-radius:50px;background:#C9A84C;color:var(--ink);}
.card-rating{position:absolute;bottom:12px;right:12px;background:var(--ink);color:#fff;border-radius:10px;padding:5px 10px;text-align:center;line-height:1;}
.score{font-family:'Playfair Display',serif;font-size:16px;font-weight:700;display:block;}
.rlabel{font-size:8px;letter-spacing:1px;text-transform:uppercase;color:#6ecfce;margin-top:2px;display:block;}
.card-body{padding:18px 18px 16px;}
.card-name{font-family:'Playfair Display',serif;font-size:16px;font-weight:700;color:var(--ink);line-height:1.25;margin-bottom:5px;}
.card-loc{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);margin-bottom:9px;}
.card-desc{font-size:12px;color:#5a6475;line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:14px;}
.card-footer{display:flex;align-items:center;justify-content:space-between;padding-top:12px;border-top:1px solid var(--sand);}
.card-price{font-family:'Playfair Display',serif;font-size:20px;font-weight:700;color:var(--ink);}
.card-per{font-size:11px;color:var(--muted);}
.card-reviews{font-size:10px;color:var(--muted);margin-top:2px;}
.btn-book{position:relative;z-index:2;display:inline-flex;align-items:center;gap:5px;background:var(--ink);color:#fff;border-radius:50px;padding:9px 16px;font-size:11px;font-weight:700;letter-spacing:.7px;text-decoration:none;text-transform:uppercase;transition:background .2s;white-space:nowrap;}
.btn-book:hover{background:#3a8b8a;}
.btn-book .arr{width:13px;height:13px;}
@media(max-width:1100px){.cards-grid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:768px){.cards-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:480px){.cards-grid{grid-template-columns:1fr;}}

/* Map panel card overrides */
.map-panel-card{border-radius:0;box-shadow:none;cursor:default;}
.map-panel-card:hover{transform:none;box-shadow:none;}
.map-panel-card .card-img{height:200px;}
.thm-mc-img{border-radius:14px;overflow:hidden;background:var(--cream-2);min-height:130px;}

/* Nearby regions: hidden tiles + view-all button */
.tile-hidden { display: none !important; }
.art-viewall-wrap { text-align: center; margin-top: 24px; }
.art-viewall-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--sand); border-radius: 50px; padding: 11px 24px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; letter-spacing: .3px; }
.art-viewall-btn:hover { border-color: var(--teal); color: var(--teal); background: #f5fafa; }
.art-viewall-btn svg { width: 16px; height: 16px; transition: transform .2s; }
