/* ==========================================================================
   THE MARICH PASS GATEWAY HOTEL — public website
   Mobile-first. Breakpoints: 576px, 768px, 992px, 1200px
   ========================================================================== */

:root {
  --brand:        #123f2e;
  --brand-dark:   #0c2e21;
  --brand-light:  #1a4a3a;
  --accent:       #c9a227;
  --cream:        #f7f5ef;
  --ink:          #1f2421;
  --muted:        #6b7280;
  --line:         #e6e3da;
  --white:        #ffffff;
  --danger:       #c0392b;
  --ok:           #1e8e4e;
  --radius:       14px;
  --shadow:       0 10px 30px rgba(18, 63, 46, .10);
  --shadow-sm:    0 2px 10px rgba(18, 63, 46, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site-body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--brand-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1rem; }

/* --- Top bar ------------------------------------------------------------- */
.site-topbar {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, .82);
  font-size: .8rem;
  padding: .45rem 0;
}
.site-topbar .site-wrap { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; align-items: center; }
.site-topbar .site-topbar-spacer { margin-left: auto; }
.site-topbar i { margin-right: .35rem; opacity: .75; }
.site-topbar a { color: rgba(255, 255, 255, .92); }

/* --- Navigation ---------------------------------------------------------- */
.site-nav {
  background: var(--brand);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--shadow-sm);
}
.site-nav .site-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}
.site-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 0;
  text-decoration: none;
  line-height: 1.2;
}
.site-brand:hover { text-decoration: none; }
.site-brand .badge-logo {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--brand-dark);
  display: grid; place-items: center;
  font-size: 1.05rem;
}
.site-brand small { display: block; font-weight: 400; font-size: .68rem; opacity: .75; }

.site-nav-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--white);
  border-radius: 9px;
  padding: .45rem .7rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: block;
}
.site-nav-toggle:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.site-menu {
  list-style: none;
  display: none;
  width: 100%;
  margin: 0;
  padding: .25rem 0 .9rem;
  flex-direction: column;
  gap: .1rem;
}
.site-menu.show { display: flex; }
.site-menu li a {
  color: rgba(255, 255, 255, .92);
  padding: .6rem .25rem;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: .95rem;
}
.site-menu li a:hover, .site-menu li a:focus { color: var(--accent); text-decoration: none; }
.site-menu .nav-cta { color: var(--brand-dark); background: var(--accent); border-radius: 9px; text-align: center; font-weight: 600; border-bottom: 0; margin-top: .5rem; }
.site-menu .nav-cta:hover { color: var(--brand-dark); filter: brightness(1.07); }

@media (min-width: 992px) {
  .site-nav-toggle { display: none; }
  .site-menu { display: flex !important; flex-direction: row; align-items: center; gap: .35rem; width: auto; margin-left: auto; padding: 0; }
  .site-menu li a { border-bottom: 0; padding: .55rem .7rem; border-radius: 8px; }
  .site-menu li a:hover, .site-menu li a:focus { background: rgba(255, 255, 255, .1); }
  .site-menu .nav-cta { margin-top: 0; margin-left: .35rem; padding: .5rem 1rem; }
}

/* --- Hero ---------------------------------------------------------------- */
.site-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, #0c2e21 0%, #164b39 55%, #22674e 100%);
  overflow: hidden;
}
.site-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(201, 162, 39, .22), transparent 55%);
  pointer-events: none;
}
.site-hero .site-wrap { position: relative; z-index: 1; padding: 3rem 1rem 3.4rem; }
.site-hero h1 {
  font-size: clamp(1.75rem, 5.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .75rem;
  max-width: 20ch;
}
.site-hero p.lead { font-size: clamp(.95rem, 2.4vw, 1.12rem); opacity: .9; max-width: 60ch; margin: 0 0 1.5rem; }
.site-hero-eyebrow {
  display: inline-block;
  background: rgba(201, 162, 39, .18);
  border: 1px solid rgba(201, 162, 39, .5);
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* --- Availability search bar --------------------------------------------- */
.site-search {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-top: -2.1rem;
  position: relative;
  z-index: 5;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) { .site-search { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .site-search { grid-template-columns: repeat(5, 1fr) auto; align-items: end; } }
.site-search label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .25rem; }
.site-search input, .site-search select {
  width: 100%;
  padding: .62rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
  min-height: 44px;
}
.site-search input:focus, .site-search select:focus { outline: 2px solid var(--brand-light); outline-offset: 1px; border-color: var(--brand-light); }

/* --- Buttons ------------------------------------------------------------- */
.btn-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .68rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
  font-family: inherit;
  transition: filter .15s ease;
}
.btn-site:hover { text-decoration: none; filter: brightness(1.06); }
.btn-site-primary { background: var(--brand); color: var(--white); }
.btn-site-accent  { background: var(--accent); color: var(--brand-dark); }
.btn-site-outline { background: transparent; border-color: currentColor; color: var(--brand); }
.btn-site-light   { background: rgba(255, 255, 255, .14); color: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn-site-block   { width: 100%; }
.btn-site:disabled { opacity: .55; cursor: not-allowed; }

/* --- Sections ------------------------------------------------------------ */
.site-section { padding: 2.75rem 0; }
.site-section.alt { background: var(--white); }
.site-section-head { text-align: center; max-width: 62ch; margin: 0 auto 1.9rem; }
.site-section-head .eyebrow { color: var(--accent); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.site-section-head h2 { font-size: clamp(1.35rem, 3.4vw, 2rem); color: var(--brand); margin: .35rem 0 .5rem; }
.site-section-head p { color: var(--muted); margin: 0; }

.site-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .site-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .site-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } .site-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .site-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .site-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.site-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.site-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.site-card .thumb { aspect-ratio: 3 / 2; background: linear-gradient(135deg, #164b39, #2b7a5c); position: relative; }
.site-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.site-card .badge-demo {
  position: absolute; left: .6rem; top: .6rem;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: .64rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 999px;
}
.site-card .body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.site-card h3 { font-size: 1.05rem; color: var(--brand); margin: 0 0 .3rem; }
.site-card .meta { font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.site-card .desc { font-size: .88rem; color: #4b5563; flex: 1; }
.site-card .price { font-size: 1.2rem; font-weight: 700; color: var(--brand); margin: .7rem 0 .1rem; }
.site-card .price small { font-size: .74rem; font-weight: 400; color: var(--muted); }
.amenity-list { list-style: none; padding: 0; margin: .55rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.amenity-list li { font-size: .72rem; background: #eef4f1; color: var(--brand-light); border-radius: 999px; padding: .18rem .55rem; }

/* --- Forms --------------------------------------------------------------- */
.site-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .site-form { padding: 1.75rem; } }
.site-form label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .3rem; color: #374151; }
.site-form .req { color: var(--danger); }
.site-form input[type=text], .site-form input[type=email], .site-form input[type=tel],
.site-form input[type=date], .site-form input[type=number], .site-form input[type=password],
.site-form input[type=search], .site-form select, .site-form textarea {
  width: 100%;
  padding: .62rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--white);
  min-height: 44px;
}
.site-form textarea { min-height: 110px; resize: vertical; }
.site-form input:focus, .site-form select:focus, .site-form textarea:focus { outline: 2px solid var(--brand-light); outline-offset: 1px; border-color: var(--brand-light); }
.site-form .hint { font-size: .76rem; color: var(--muted); margin-top: .25rem; }
.form-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .form-grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .form-grid.three { grid-template-columns: repeat(3, 1fr); } }
.form-grid .full { grid-column: 1 / -1; }

.site-alert { border-radius: 11px; padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1rem; border: 1px solid transparent; }
.site-alert-ok    { background: #e8f6ee; border-color: #b7e0c8; color: #155f38; }
.site-alert-warn  { background: #fdf6e3; border-color: #f0dca6; color: #7a5b06; }
.site-alert-error { background: #fdeceb; border-color: #f3c2be; color: #97231a; }
.site-alert-info  { background: #eaf1fb; border-color: #c3d7f2; color: #1c4a80; }

/* --- Summary / key-value -------------------------------------------------- */
.site-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; box-shadow: var(--shadow-sm); }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .45rem .9rem; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }
.total-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; padding-top: .6rem; margin-top: .6rem; border-top: 2px solid var(--line); }
.total-row strong { font-size: 1.3rem; color: var(--brand); }

/* --- Gallery ------------------------------------------------------------- */
.gallery-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 576px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--white); cursor: pointer; padding: 0; }
.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  color: #fff; font-size: .78rem; padding: 1.4rem .6rem .5rem;
}
.gallery-item .zoom { position: absolute; right: .45rem; top: .45rem; background: rgba(0, 0, 0, .5); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10, 20, 16, .93); display: none; place-items: center; z-index: 2000; padding: 1rem; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 82vh; width: auto; border-radius: 10px; }
.lightbox .close { position: absolute; top: 1rem; right: 1rem; background: transparent; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.lightbox .cap { color: #dfe8e3; text-align: center; margin-top: .8rem; font-size: .9rem; }

/* --- Steps / features ----------------------------------------------------- */
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-weight: 700; margin-bottom: .6rem; flex: 0 0 40px; }
.step { display: flex; gap: .8rem; align-items: flex-start; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: #eef4f1; color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: .7rem; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--brand-dark); color: rgba(255, 255, 255, .74); margin-top: 2.5rem; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin: 0 0 .8rem; }
.site-footer a { color: rgba(255, 255, 255, .74); font-size: .87rem; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; padding: 2.2rem 0 1.4rem; }
@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem 0; font-size: .8rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; }

/* --- Misc ----------------------------------------------------------------- */
.page-head { background: linear-gradient(135deg, #0c2e21, #22674e); color: var(--white); padding: 2rem 0; }
.page-head h1 { margin: 0 0 .35rem; font-size: clamp(1.4rem, 3.6vw, 2.1rem); }
.page-head p { margin: 0; opacity: .85; font-size: .95rem; }

.badge-site { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; letter-spacing: .03em; }
.badge-site-ok      { background: #e8f6ee; color: #155f38; }
.badge-site-warn    { background: #fdf6e3; color: #7a5b06; }
.badge-site-danger  { background: #fdeceb; color: #97231a; }
.badge-site-info    { background: #eaf1fb; color: #1c4a80; }
.badge-site-muted   { background: #eceff1; color: #455a64; }

.site-empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.site-empty i { font-size: 2rem; opacity: .35; display: block; margin-bottom: .6rem; }

.prose h2 { color: var(--brand); font-size: 1.25rem; margin: 1.4rem 0 .5rem; }
.prose h3 { color: var(--brand); font-size: 1.05rem; margin: 1.1rem 0 .4rem; }
.prose p  { color: #4b5563; }
.prose ul { color: #4b5563; padding-left: 1.15rem; }
.prose li { margin-bottom: .3rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--brand-dark); padding: .6rem 1rem; z-index: 3000; font-weight: 700; }
.skip-link:focus { left: .5rem; top: .5rem; }

.site-hero + .site-search { margin-top: -2.1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-card:hover { transform: none; }
}

/* Print */
@media print {
  .site-nav, .site-topbar, .site-footer, .btn-site, .site-search { display: none !important; }
  body.site-body { background: #fff; }
}
