/* ═══════════════════════════════════════════════════════════
   TubHotels Sanctuary — State Page Styles
   Template: page-state.php
   Design ref: demo/california-demo.html
═══════════════════════════════════════════════════════════ */

/* ── HERO ── */
.state-hero {
  height: 520px; position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.state-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.state-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,27,42,.7) 0%, rgba(13,27,42,.5) 50%, rgba(13,27,42,.8) 100%);
}
.state-hero-content { position: relative; z-index: 2; padding: 0 20px; }

.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,.35); }
.breadcrumb .current { color: rgba(255,255,255,.85); }

.state-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px,5vw,56px); font-weight: 900;
  color: #fff; line-height: 1.1;
  text-shadow: 0 3px 20px rgba(0,0,0,.4);
  margin-bottom: 14px;
}
.state-hero h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px,2.2vw,22px); font-weight: 400;
  color: rgba(255,255,255,.78); letter-spacing: 1px;
  max-width: 680px; margin: 0 auto 22px;
}
.hero-stats-row { display: flex; align-items: center; justify-content: center; gap: 32px; }
.hstat { text-align: center; }
.hstat-n { font-family: 'Playfair Display', serif; font-size: 26px; 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: 32px; background: rgba(255,255,255,.2); }

/* ── INTRO BAR ── */
.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; }

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

/* ── 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(30px,3.5vw,48px); 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: 240px; }
.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: 15px; 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; }
.pin { width: 10px; height: 10px; flex-shrink: 0; }

/* ── MAP ── */
.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: 0 8px 40px rgba(27,58,92,.12), 0 2px 8px rgba(0,0,0,.08); }
.thm-map { width: 100%; display: block; }

.thm-desktop-panel {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: min(380px,36%); min-width: 300px; 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: #8a95a3; font-size: 14px; text-align: center;
}
.thm-placeholder::before { content: '🗺️'; font-size: 40px; opacity: .6; }

.thm-card { background: #fff; overflow: hidden; cursor: pointer; border-radius: 0; }
.thm-card-image-wrap { position: relative; }
.thm-card-image { display: block; width: 100%; height: 240px; object-fit: cover; }
.thm-slider { position: relative; overflow: hidden; }
.thm-slider-track { display: flex; transition: transform .3s ease; }
.thm-slide { min-width: 100%; }
.thm-slide img { display: block; width: 100%; height: 240px; object-fit: cover; }
.thm-slider-btn {
  all: unset; box-sizing: border-box; position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
}
.thm-slider-btn:hover { background: #fff; }
.thm-slider-prev { left: 10px; }
.thm-slider-next { right: 10px; }
.thm-slider-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.thm-slider-dot { all: unset; box-sizing: border-box; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: background .2s, transform .2s; }
.thm-slider-dot[aria-current="true"] { background: #fff; transform: scale(1.3); }

.thm-card-content { padding: 18px 20px 22px; }
.thm-title { margin: 0 0 6px; font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.thm-address { margin: 0 0 14px; color: #8a95a3; 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: #0a1520; }
.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 #e8e0d5; border-bottom: 1px solid #e8e0d5;
}
.thm-card-price, .thm-card-rating { margin: 0; display: flex; align-items: center; gap: 5px; }
.thm-price-amount { font-weight: 900; font-size: 22px; color: var(--ink); }
.thm-price-label  { color: #8a95a3; font-size: 11px; }
.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: #8a95a3; font-size: 11px; }
.thm-desc { margin: 0; font-size: 12px; color: #8a95a3; 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);
  animation: fab-pulse 2.8s ease-in-out infinite;
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(13,27,42,.38); }
  50%       { box-shadow: 0 6px 32px rgba(13,27,42,.60), 0 0 0 8px rgba(201,168,76,.15); }
}
.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: #0a1520; }

/* ── 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 48px; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .tiles { grid-template-columns: repeat(2,1fr); }
  .desc-wrap { padding: 32px 32px; }
}
@media (max-width: 991px) {
  .thm-map-container { display: none; }
  .thm-desktop-panel { display: none !important; }
  .thm-fab { display: inline-flex !important; }
  /* Map modal full screen + close button below fixed nav */
  .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 section header hidden on mobile */
  .map-sec-header { display: none !important; }
}
@media (max-width: 600px) {
  #nav { padding: 14px 20px; }
  .page-main { padding: 32px 20px; }
  .state-hero { height: 300px; }
  .state-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; }
  .thm-map-modal { top: 10px; right: 10px; bottom: 10px; left: 10px; border-radius: 20px; }
  .thm-mini-card { left: 10px; right: 10px; bottom: 10px; border-radius: 18px; }
}
