/* =========================================================================
   SaiStay Shirdi — Public site design system
   Warm hospitality palette, premium/trustworthy/clean feel.
   ========================================================================= */

:root {
  --color-primary: #8B1E1E;
  --color-primary-dark: #6b1616;
  --color-gold: #D4A017;
  --color-bg: #FFF9F0;
  --color-dark: #2B2118;
  --color-accent: #F4E3B2;
  --color-white: #ffffff;
  --color-muted: #7a6f60;
  --color-success: #1e8b4c;
  --color-danger: #b3261e;
  --color-border: #ece0c8;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 8px 30px rgba(43, 33, 24, 0.08);
  --shadow-card: 0 4px 18px rgba(43, 33, 24, 0.10);
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* BUGFIX / hardening: guard against any single wide element (a long
   unbroken URL in text, an oversized image, a stray inline style, a
   hosting-side "optimizer" that mangles a stylesheet, etc.) forcing the
   whole page into horizontal scroll — which visually looks exactly like
   "content squeezed into a narrow column with blank space beside it",
   because the browser then renders starting from a nonzero scroll
   offset. html/body are explicitly pinned to the viewport width and
   every full-bleed structural element gets an explicit 100% width so
   nothing can silently collapse to its content width instead of
   stretching to fill its parent. */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-bg);
  margin: 0;
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }

.site-navbar,
.hero,
.page-hero,
.partner-hero,
.site-footer,
section {
  width: 100%;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.25;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

.text-gold { color: var(--color-gold); }
.text-primary-brand { color: var(--color-primary); }
.bg-brand { background: var(--color-primary); }
.bg-cream { background: var(--color-bg); }

/* ---- Buttons ---------------------------------------------------------- */
.btn-brand {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #fff;
  font-weight: 600;
  padding: .75rem 1.6rem;
  border-radius: 50px;
  transition: all .2s ease;
}
.btn-brand:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }

.btn-gold {
  background: var(--color-gold);
  border: 1px solid var(--color-gold);
  color: var(--color-dark);
  font-weight: 600;
  padding: .75rem 1.6rem;
  border-radius: 50px;
  transition: all .2s ease;
}
.btn-gold:hover { background: #b8880f; border-color: #b8880f; color: #fff; transform: translateY(-1px); }

.btn-outline-brand {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: 50px;
  transition: all .2s ease;
}
.btn-outline-brand:hover { background: var(--color-primary); color: #fff; }

.btn-sm-pill { border-radius: 50px; font-weight: 600; padding: .45rem 1.1rem; font-size: .9rem; }

/* ---- Navbar ------------------------------------------------------------ */
.site-navbar {
  background: rgba(255, 249, 240, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(43,33,24,.06);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.site-navbar .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.site-navbar .navbar-brand span { color: var(--color-gold); }
.brand-logo-img { height: 46px; width: auto; display: block; }
@media (max-width: 400px) {
  .brand-logo-text { display: none; }
}
.site-navbar .nav-link {
  font-weight: 500;
  color: var(--color-dark);
  margin: 0 .35rem;
}
.site-navbar .nav-link.active, .site-navbar .nav-link:hover { color: var(--color-primary); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(43,33,24,.55), rgba(43,33,24,.72)), url('../images/site/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 5rem 0 8rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); }
.hero p.lead { color: #f3e9d6; font-size: 1.15rem; }
.hero .price-pill {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-dark);
  font-weight: 700;
  padding: .5rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero .trust-line {
  color: var(--color-accent);
  font-size: .95rem;
  margin-top: 1.2rem;
  font-weight: 500;
}

/* ---- Search card (overlaps hero) ---------------------------------------- */
.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  margin-top: -6rem;
  position: relative;
  z-index: 5;
  border: 1px solid var(--color-border);
}
.search-card label { font-weight: 600; font-size: .85rem; color: var(--color-muted); }
.search-card .form-control, .search-card .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: .65rem .8rem;
}
.search-card .form-control:focus, .search-card .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 .2rem rgba(139,30,30,.12);
}

/* ---- Section titles ------------------------------------------------------ */
.section-eyebrow {
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: .8rem;
}
.section-title { margin-bottom: .5rem; }
.section-sub { color: var(--color-muted); max-width: 640px; }

/* ---- Room cards ----------------------------------------------------------- */
.room-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.room-card .room-img { height: 210px; width: 100%; object-fit: cover; background: var(--color-accent); }
.room-card .room-body { padding: 1.25rem 1.35rem 1.5rem; }
.room-card .price { color: var(--color-primary); font-weight: 700; font-size: 1.35rem; }
.room-card .price small { color: var(--color-muted); font-weight: 500; font-size: .85rem; }
.room-card .distance { color: var(--color-muted); font-size: .9rem; }
.room-card .amenity-list { list-style: none; padding: 0; margin: .85rem 0; }
.room-card .amenity-list li { font-size: .9rem; margin-bottom: .35rem; color: var(--color-dark); }
.room-card .amenity-list li i { color: var(--color-success); width: 18px; }
.badge-guests {
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 600;
  border-radius: 50px;
  padding: .35rem .8rem;
  font-size: .8rem;
}

/* ---- How it works steps -------------------------------------------------- */
.step-card { text-align: center; padding: 1.5rem 1rem; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem;
  margin: 0 auto 1rem;
  box-shadow: 0 6px 16px rgba(139,30,30,.25);
}
.step-card h5 { margin-bottom: .4rem; }
.step-card p { color: var(--color-muted); font-size: .92rem; }

/* ---- Trust badges / feature strip ----------------------------------------- */
.feature-strip { background: var(--color-accent); border-radius: var(--radius-md); padding: 1.5rem; }
.feature-strip .feature-item { text-align: center; }
.feature-strip i { font-size: 1.6rem; color: var(--color-primary); margin-bottom: .4rem; }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--color-dark); color: #e9ddc9; padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand h6 { margin-bottom: 0 !important; }
.footer-logo-img { height: 42px; width: auto; display: block; }
.site-footer a { color: #cfc0a3; }
.site-footer a:hover { color: var(--color-gold); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: #a99982; }

/* ---- Cards / generic ----------------------------------------------------- */
.card-soft { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); border: 1px solid var(--color-border); }
.badge-status { padding: .4rem .85rem; border-radius: 50px; font-weight: 600; font-size: .8rem; }

/* ---- Booking form (multi-step) -------------------------------------------- */
.booking-steps { display: flex; justify-content: space-between; margin-bottom: 2rem; max-width: 560px; }
.booking-steps .bstep { text-align: center; flex: 1; position: relative; }
.booking-steps .bstep .circ {
  width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center; margin: 0 auto .4rem; font-weight: 700; color: var(--color-muted);
}
.booking-steps .bstep.active .circ, .booking-steps .bstep.done .circ { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.booking-steps .bstep span { font-size: .78rem; color: var(--color-muted); }
.booking-steps .bstep.active span { color: var(--color-primary); font-weight: 600; }

.summary-box { background: var(--color-accent); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; }
.summary-box .row-line { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .95rem; }
.summary-box .row-line.total { border-top: 1px dashed rgba(43,33,24,.25); margin-top: .5rem; padding-top: .75rem; font-weight: 700; font-size: 1.05rem; }

.consent-box { background: #fff8ea; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 1rem; font-size: .88rem; color: var(--color-muted); }

/* ---- Sticky mobile book CTA ------------------------------------------------ */
.sticky-book-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
  background: #fff; box-shadow: 0 -6px 20px rgba(43,33,24,.12);
  padding: .75rem 1rem; display: none;
}
@media (max-width: 767.98px) {
  .sticky-book-cta.is-active { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
  body.has-sticky-cta { padding-bottom: 74px; }
}

/* ---- Utilities -------------------------------------------------------------- */
.rounded-xl { border-radius: var(--radius-lg) !important; }
.shadow-soft { box-shadow: var(--shadow-soft) !important; }
.min-vh-40 { min-height: 40vh; }
.gallery-thumb { height: 90px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; }
.gallery-thumb.active { border-color: var(--color-primary); }
.gallery-main { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-md); }

@media (max-width: 575.98px) {
  .gallery-main { height: 260px; }
  .search-card { margin-top: -3.5rem; padding: 1.25rem; }
}

/* ---- Floating WhatsApp / Call contact dock ---------------------------------- */
.floating-contact-dock {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1050;
  display: flex; flex-direction: column; gap: .65rem;
}
.floating-contact-btn {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; box-shadow: 0 8px 22px rgba(43,33,24,.28); transition: transform .15s ease;
}
.floating-contact-btn:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
.floating-whatsapp { background: #25D366; }
.floating-call { background: var(--color-primary); }
body.has-sticky-cta .floating-contact-dock { bottom: 5.5rem; }
@media (max-width: 575.98px) {
  .floating-contact-btn { width: 48px; height: 48px; font-size: 1.2rem; }
}

/* ---- Hotel partner pages ------------------------------------------------------ */
.partner-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, #4a3624 100%);
  padding: 4.5rem 0 5.5rem;
}
.partner-hero h1 { color: #fff; }
.partner-hero p.lead { color: #f3e9d6; }
.partner-fee-badge {
  display: inline-flex; align-items: center; gap: .5rem; background: rgba(212,160,23,.15);
  border: 1px solid rgba(212,160,23,.4); color: var(--color-gold); border-radius: 50px;
  padding: .5rem 1.1rem; font-weight: 600; font-size: .92rem;
}
.upload-field {
  border: 1.5px dashed var(--color-border); border-radius: var(--radius-sm); padding: 1rem 1.1rem; background: #fff;
}
.upload-field.is-required label.form-label::after { content: " *"; color: var(--color-primary); }
.doc-status-pill { font-size: .72rem; padding: .2rem .55rem; border-radius: 50px; font-weight: 600; }
.timeline-status { list-style: none; padding: 0; margin: 0; }
.timeline-status li { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed var(--color-border); }
.timeline-status li:last-child { border-bottom: none; }
.timeline-status .t-icon { width: 26px; height: 26px; border-radius: 50%; display:flex; align-items:center; justify-content:center; font-size:.75rem; flex-shrink: 0; margin-top: 2px; }

/* ---- Public hotel marketplace (hotels.php, hotel-details.php) -------------- */
.page-hero { background: var(--color-accent); }
.search-filter-card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); border: 1px solid var(--color-border); }

.amenity-check {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem;
  border: 1px solid var(--color-border); border-radius: 50px; font-size: .82rem; cursor: pointer;
  background: #fff; user-select: none;
}
.amenity-check input { margin: 0; }
.amenity-check:has(input:checked) { background: var(--color-accent); border-color: var(--color-gold); }

.hotel-card-link { text-decoration: none; color: inherit; display: block; }
.hotel-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--color-border);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hotel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.hotel-card-img-wrap { position: relative; }
.hotel-card-img { height: 200px; width: 100%; object-fit: cover; background: var(--color-accent); display: block; }
.hotel-card-star-badge {
  position: absolute; top: .6rem; left: .6rem; background: rgba(43,33,24,.72); color: var(--color-gold);
  border-radius: 50px; padding: .25rem .6rem; font-size: .72rem; letter-spacing: 1px;
}
.hotel-card-avail-badge {
  position: absolute; bottom: .6rem; left: .6rem; background: var(--color-success); color: #fff;
  border-radius: 50px; padding: .2rem .65rem; font-size: .72rem; font-weight: 600;
}
.hotel-card-body { padding: 1.1rem 1.25rem 1.35rem; }
.hotel-card-tagline { font-size: .85rem; color: var(--color-muted); margin-bottom: .4rem; }
.hotel-card-locality { font-size: .8rem; }
.hotel-card-price { color: var(--color-primary); font-weight: 700; font-size: 1.15rem; }
.hotel-card-price small { color: var(--color-muted); font-weight: 500; font-size: .78rem; }

.rating-badge {
  display: inline-flex; align-items: center; gap: .3rem; background: var(--color-primary); color: #fff;
  border-radius: 8px; padding: .25rem .55rem; font-weight: 700; font-size: .85rem;
}
.rating-badge small { font-weight: 500; opacity: .85; }
.rating-badge-sm { padding: .15rem .4rem; font-size: .72rem; border-radius: 6px; }

.hotel-option-name {
  display: inline-block; font-weight: 700; color: var(--color-primary); text-decoration: none;
  font-size: .95rem; margin-bottom: .25rem;
}
.hotel-option-name:hover { text-decoration: underline; }

.review-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 1rem 1.15rem; }

.empty-state { color: var(--color-muted); }

/* ---- Admin: property photo gallery grid ------------------------------------ */
.admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.admin-photo-card { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.admin-photo-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.admin-photo-card .apc-body { padding: .6rem .7rem; }
.admin-photo-card .apc-cover-tag { position: relative; }
.admin-photo-card .apc-cover-tag .cover-pill {
  position: absolute; top: .4rem; left: .4rem; background: var(--color-gold); color: #2B2118;
  font-size: .65rem; font-weight: 700; padding: .15rem .5rem; border-radius: 50px;
}
