/*
Theme Name: Shambala Fincas
Theme URI: http://localhost/
Author: Finca Shambala
Description: Tema propio y editable sin código para Finca Shambala y Cabañas. Incluye buscador y calendario de disponibilidad conectado a Google Apps Script, galería filtrable con lightbox, catálogo de fincas, amenidades, barra fija de WhatsApp en móvil y soporte completo para páginas nuevas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: shambala-fincas
*/

:root {
  --bg: #F2F6F1;
  --card: #ffffff;
  --ink: #0E3B2F;
  --mut: #4F6B61;
  --line: #D5E2D8;
  --acc: #D83A56;
  --accink: #ffffff;
  --sun: #F2B134;
  --hero-top: #0E3B2F;
  --hero-bot: #1F6B4F;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1F18;
    --card: #112B22;
    --ink: #E7F2EA;
    --mut: #9DB8AB;
    --line: #23463A;
    --acc: #F0587A;
  }
}

:root[data-theme="dark"] {
  --bg: #0A1F18;
  --card: #112B22;
  --ink: #E7F2EA;
  --mut: #9DB8AB;
  --line: #23463A;
  --acc: #F0587A;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 'Figtree', system-ui, -apple-system, sans-serif;
  padding-bottom: 84px;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 800;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  font: 600 1rem 'Figtree', sans-serif;
  background: var(--acc);
  color: var(--accink);
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: transform .12s ease, opacity .15s ease;
}

.btn:hover {
  opacity: .93;
}

.btn:active {
  transform: scale(.99);
}

.btn.alt {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

/* Header & Navigation */
.site-header {
  position: absolute;
  inset: env(safe-area-inset-top, 0px) 0 auto 0;
  z-index: 20;
}

body.admin-bar .site-header {
  top: calc(32px + env(safe-area-inset-top, 0px));
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: calc(46px + env(safe-area-inset-top, 0px));
  }
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  color: #fff;
}

.logo {
  font: 800 1.25rem 'Bricolage Grotesque', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.logo img {
  max-height: 36px;
  width: auto;
  border-radius: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav {
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  padding: 6px 2px;
  transition: opacity .15s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  background: rgba(14, 59, 47, .35);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  margin: 12px 20px 0;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px rgba(8, 30, 22, .25);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.mobile-drawer a {
  display: block;
  padding: 10px 8px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
}

.mobile-drawer a:hover {
  background: var(--bg);
}

.site-header a.pill {
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 99px;
  padding: 8px 16px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}

.site-header a.pill:hover {
  background: rgba(255, 255, 255, .14);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bot) 70%);
  color: #fff;
  padding: 112px 0 120px;
}

.hero.has-photo {
  background-size: cover;
  background-position: center;
}

.hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 59, 47, .74) 0%, rgba(14, 59, 47, .58) 55%, rgba(11, 50, 38, .82) 100%);
  z-index: 1;
}

.hero svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 62%;
  min-height: 200px;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.05rem, 10vw, 4.6rem);
  font-weight: 800;
  max-width: 11ch;
  color: #fff;
  overflow-wrap: break-word;
}

.hero p {
  max-width: 34ch;
  font-size: 1.1rem;
  margin: 16px 0 0;
  color: #E3F1E7;
}

/* Internal Page Hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bot) 100%);
  color: #fff;
  padding: 108px 0 54px;
}

.page-hero h1 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 800;
  color: #fff;
}

.page-hero p {
  color: #E3F1E7;
  max-width: 52ch;
  margin: 12px 0 0;
}

/* Search Box */
.search {
  position: relative;
  z-index: 4;
  margin: -72px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(8, 30, 22, .22);
  max-width: 760px;
}

.search.search-inline {
  margin: 24px auto;
}

.search h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.fields {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.fields > div {
  min-width: 0;
}

.fields .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--mut);
  margin-bottom: 4px;
}

input[type="date"],
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: 500 1rem 'Figtree', sans-serif;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-height: 48px;
}

#res,
.sh-res {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.msg {
  font-size: .95rem;
  color: var(--mut);
  margin: 0;
}

.r {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.r b {
  display: block;
}

.r small {
  color: var(--mut);
}

.r.ok {
  border-color: #2E9D6B;
}

.tag {
  display: inline-block;
  margin-top: 4px;
  font-size: .8rem;
  font-weight: 600;
  border-radius: 99px;
  padding: 3px 10px;
  background: #DDF3E6;
  color: #14573B;
}

.tag.no {
  background: #F6DDE2;
  color: #8A1F36;
}

.r .btn {
  padding: 10px 16px;
  min-height: 44px;
  font-size: .92rem;
  white-space: nowrap;
}

/* Sections */
.sh-section {
  padding: 64px 0 0;
}

.lead {
  color: var(--mut);
  max-width: 48ch;
  margin: 10px 0 24px;
}

/* Fincas / Rooms */
.rooms {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 12px;
  margin: 0 -20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rooms::-webkit-scrollbar,
.chips::-webkit-scrollbar {
  display: none;
}

.room {
  flex: 0 0 82%;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.room.room-link {
  cursor: pointer;
}

.room.room-link:hover {
  transform: translateY(-3px);
  border-color: var(--acc);
  box-shadow: 0 12px 26px rgba(8, 30, 22, .12);
}

.room-gal-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--acc);
}

.ph {
  height: 190px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
  position: relative;
  overflow: hidden;
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.room .in {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.room h3 {
  font-size: 1.25rem;
}

.room p {
  margin: 6px 0 10px;
  color: var(--mut);
  font-size: .95rem;
}

.meta {
  font-size: .9rem;
  font-weight: 600;
}

.meta.price {
  color: var(--mut);
  font-weight: 500;
  margin-top: 2px;
}

/* Amenities */
.am {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.am div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.am span {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 4px;
}

.am b {
  display: block;
}

.am small {
  color: var(--mut);
}

/* Chips & Gallery */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chip {
  flex: none;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 99px;
  padding: 8px 16px;
  font: 600 .9rem 'Figtree', sans-serif;
  cursor: pointer;
  min-height: 44px;
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.gal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 130px;
  gap: 10px;
}

.g {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  font: 600 .85rem 'Figtree', sans-serif;
  text-align: left;
  width: 100%;
  height: 100%;
}

.g:nth-child(5n+1) {
  grid-row: span 2;
}

.g img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.g:hover img {
  transform: scale(1.03);
}

.g span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
}

/* Lightbox Dialog */
.lb {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 820px);
  width: 100%;
  color: #fff;
}

.lb::backdrop {
  background: rgba(5, 15, 11, .92);
}

.lbn span {
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .75);
}

.lbi {
  height: min(62vh, 520px);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font: 600 1.2rem 'Figtree', sans-serif;
}

.lbi img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #071510;
}

.lbn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.lbn button {
  border: 0;
  border-radius: 99px;
  background: #fff;
  color: #0E3B2F;
  font: 600 1rem 'Figtree', sans-serif;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
}

/* Calendar */
.cal-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

.cal-col {
  min-width: 0;
}

.cal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  max-width: 520px;
}

.cal-map-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cal-map-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.cal-map-head h3 {
  font-size: 1.15rem;
}

.cal-map-head span {
  font-size: .8rem;
  color: var(--mut);
}

.map-zoom-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.map-zoom-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .18s ease-out;
  will-change: transform, transform-origin;
}

.map-zoom-stage.is-zooming {
  cursor: crosshair;
}

.map-zoom-stage.is-zooming img {
  transform: scale(2.35);
}

.lb-map {
  max-width: min(96vw, 1080px);
}

.lbi-map {
  height: min(78vh, 720px);
  background: #ffffff;
  padding: 10px;
  overflow: auto;
  touch-action: pinch-zoom pan-x pan-y;
}

.lbi-map img {
  background: #ffffff;
}

.calh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calh b {
  font: 800 1.15rem 'Bricolage Grotesque', sans-serif;
  text-transform: capitalize;
}

.calh button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}

.cg {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cg i {
  font-style: normal;
  font-size: .75rem;
  color: var(--mut);
  padding: 4px 0;
}

.d {
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  font: 700 .95rem 'Figtree', sans-serif;
  background: #16A34A;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: filter .12s ease, transform .1s ease;
}

.d:hover:not(:disabled):not(.x) {
  filter: brightness(0.92);
}

.d.x {
  background: repeating-linear-gradient(45deg, #DC2626, #DC2626 5px, #B91C1C 5px, #B91C1C 10px);
  color: #ffffff;
  cursor: pointer;
}

.d.part {
  background: repeating-linear-gradient(45deg, #FACC15, #FACC15 5px, #EAB308 5px, #EAB308 10px);
  color: #1C1917;
  cursor: pointer;
}

.d.x:hover,
.d.part:hover {
  filter: brightness(1.06);
}

.d.p {
  background: #DDF3E6;
  color: #14573B;
  opacity: .55;
  cursor: default;
}

.d.sel {
  background: #1D4ED8;
  color: #ffffff;
  box-shadow: 0 0 0 2px #93C5FD inset;
}

.d.rg {
  background: #2563EB;
  color: #ffffff;
}

.leg {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .85rem;
  color: var(--mut);
  margin-top: 12px;
}

.leg s {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  vertical-align: -2px;
  margin-right: 6px;
  text-decoration: none;
}

.cal-info {
  margin-top: 12px;
  font-size: .9rem;
}

.cal-info:empty {
  margin-top: 0;
}

.cal-info-box {
  background: var(--bg);
  border: 1.5px solid #DC2626;
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.cal-info-box.is-free {
  border-color: #16A34A;
}

.cal-info-box.is-partial {
  border-color: #EAB308;
}

.cal-info-box .cal-free-hint {
  color: #15803D;
  font-weight: 600;
  font-size: .86rem;
}

.cal-info-box .cal-switch {
  justify-self: start;
  border: 0;
  border-radius: 99px;
  background: #16A34A;
  color: #fff;
  font: 600 .82rem 'Figtree', sans-serif;
  padding: 6px 12px;
  cursor: pointer;
}

.finca-pill {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 3px 10px;
  color: #fff;
  background: #DC2626;
}

.finca-pill.cabanas {
  background: #B45309;
}

.finca-pill.shambala {
  background: #9333EA;
}

.finca-pill.ambas {
  background: #DC2626;
}

.finca-pill.salon {
  background: #0284C7;
}

.finca-pill.free-pill {
  background: #16A34A;
}

.r-detail {
  display: block;
  margin-top: 4px;
  font-size: .84rem;
  color: var(--mut);
}

.r-detail.warn {
  color: #B45309;
  font-weight: 600;
}

.cap-hint {
  margin-top: 12px;
  font-size: .88rem;
}

.cap-hint:empty {
  margin-top: 0;
}

.cap-hint-box {
  background: var(--bg);
  border: 1.5px solid #16A34A;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--ink);
}

.cap-hint-box.is-warn {
  border-color: #EA580C;
}

/* Eco & Convivencia Notice */
.eco-banner {
  margin-top: 24px;
  background: var(--card);
  border: 1.5px solid #16A34A;
  border-left: 6px solid #16A34A;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.eco-banner-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.eco-banner h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.eco-banner p {
  margin: 0;
  color: var(--mut);
  font-size: .95rem;
}

/* Location & Social */
.loc-grid {
  display: grid;
  gap: 16px;
}

.loc-map {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  min-height: 280px;
}

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

.loc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.loc-card h3 {
  font-size: 1.3rem;
  margin-top: 6px;
}

.loc-card p {
  color: var(--mut);
  margin: 8px 0 16px;
  font-size: .95rem;
}

.loc-kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--mut);
}

.loc-social-wrap {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 600 .9rem 'Figtree', sans-serif;
  text-decoration: none;
  transition: transform .12s ease, border-color .15s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  border-color: var(--acc);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-social .social-btn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .24);
  color: var(--bg);
}

.footer-social .social-btn:hover {
  background: rgba(255, 255, 255, .16);
  border-color: var(--sun);
}

/* Final CTA & Footer */
.final {
  margin-top: 64px;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 56px 20px;
  border-radius: 28px 28px 0 0;
}

.final h2 {
  color: var(--bg);
}

.final p {
  color: var(--line);
  margin: 12px auto 24px;
  max-width: 36ch;
}

.final .btn {
  background: var(--sun);
  color: #1b1500;
}

.site-footer {
  background: var(--ink);
  color: var(--line);
  font-size: .85rem;
  text-align: center;
  padding: 0 20px 28px;
}

.site-footer p {
  margin: 0;
}

.site-footer.standalone {
  margin-top: 64px;
  padding-top: 28px;
}

/* Mobile Sticky Bar */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--card);
  border-top: 1px solid var(--line);
}

.bar .btn {
  flex: 1;
}

/* WordPress Content / Inner Pages */
.wp-page-content {
  padding: 40px 0 16px;
}

.entry-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 4vw, 40px);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.5em;
  margin-bottom: .5em;
}

.entry-content p {
  margin: 0 0 1.1em;
}

.entry-content img {
  border-radius: 14px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.1em;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.post-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a:hover {
  text-decoration: underline;
}

/* Desktop Breakpoint */
@media (min-width: 800px) {
  .site-nav {
    display: block;
  }

  .menu-toggle,
  .mobile-drawer {
    display: none !important;
  }

  .rooms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .room {
    flex: none;
  }

  .am {
    grid-template-columns: repeat(3, 1fr);
  }

  .fields {
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
  }

  .fields .full {
    grid-column: auto;
  }

  .gal {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 170px;
  }

  .loc-grid {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }

  .cal-layout.has-map {
    grid-template-columns: minmax(340px, 470px) minmax(0, 1fr);
    align-items: start;
  }

  .cal-layout.has-map .cal {
    max-width: none;
  }

  .cal-layout.has-map .map-zoom-stage {
    aspect-ratio: auto;
    min-height: 440px;
  }

  .loc-map,
  .loc-map iframe {
    min-height: 360px;
  }

  .bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .final {
    border-radius: 28px;
    margin: 64px 20px 0;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 14px;
  }

  .logo {
    font-size: 1.08rem;
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .site-header a.pill {
    padding: 7px 12px;
    font-size: .84rem;
  }

  .hero {
    padding: 96px 0 104px;
  }

  .hero p {
    font-size: 1rem;
  }

  .search {
    padding: 16px;
    border-radius: 18px;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .r {
    flex-direction: column;
    align-items: stretch;
  }

  .r .btn {
    width: 100%;
  }

  .rooms {
    padding: 4px 14px 12px;
    margin: 0 -14px;
  }

  .room {
    flex: 0 0 86%;
  }

  .cal,
  .cal-map-card,
  .loc-card {
    padding: 14px;
    border-radius: 18px;
  }

  .cg {
    gap: 3px;
  }

  .d {
    font-size: .86rem;
    border-radius: 8px;
  }

  .am {
    gap: 10px;
  }

  .am div {
    padding: 12px;
    overflow-wrap: break-word;
  }

  .social-links .social-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .lbn #lc {
    flex-basis: 100%;
    text-align: center;
    order: -1;
    font-size: .92rem;
  }

  .lbn button {
    flex: 1;
    padding: 10px 12px;
    font-size: .9rem;
  }

  .bar {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .bar .btn {
    padding: 12px 14px;
    font-size: .95rem;
  }
}

@media (max-width: 340px) {
  .am {
    grid-template-columns: 1fr;
  }

  .gal {
    grid-auto-rows: 112px;
    gap: 8px;
  }

  .d {
    font-size: .8rem;
  }
}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
