/* ==========================================================================
   Sharon Hotel & Apartment — Stylesheet
   Palette: accent #b4614a · bg #f6f1e9 · bg-dark #e9e0d4
   ========================================================================== */

:root {
  --accent: #b4614a;
  --accent-dark: #96503d;
  --bg: #f6f1e9;
  --bg-dark: #e9e0d4;
  --text: #35281f;
  --text-soft: #6b5c50;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 30px -12px rgba(53, 40, 31, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(53, 40, 31, 0.2);
  --max-width: 1180px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 820px; }

.section { padding: 88px 0; }
.section-alt { background: var(--bg-dark); }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 12px;
}
.eyebrow-light { color: rgba(255,255,255,0.92); }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  max-width: 720px;
}

.section-lead {
  max-width: 640px;
  color: var(--text-soft);
  font-size: 17px;
  margin-bottom: 40px;
}

/* Language toggling: default language is English; Vietnamese spans start hidden
   via the `hidden` attribute in the HTML, so the page is fully readable with
   no JavaScript at all. JS only toggles the `hidden` attribute at runtime. */
[hidden] { display: none !important; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-sm); }

.btn-light { background: var(--bg); color: var(--accent); }
.btn-light:hover { background: var(--white); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 233, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(53,40,31,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--accent); }
.brand-sub { font-size: 10px; letter-spacing: 0.16em; color: var(--text-soft); font-weight: 600; }

.main-nav { display: none; gap: 28px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.main-nav a:hover { color: var(--accent); }

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-dark);
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--text);
}
.lang-toggle .lang-opt { padding: 2px 4px; border-radius: 6px; }
.lang-toggle .lang-sep { opacity: 0.4; }
html[lang="en"] .lang-toggle .i18n-en-tag { background: var(--accent); color: var(--white); }
html[lang="vi"] .lang-toggle .i18n-vi-tag { background: var(--accent); color: var(--white); }

.header-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile dropdown nav */
@media (max-width: 899px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 10px 24px 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(53,40,31,0.08);
    box-shadow: var(--shadow-sm);
  }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(53,40,31,0.06); }
  .main-nav.open { display: flex; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg, .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,20,14,0.35) 0%, rgba(30,20,14,0.35) 40%, rgba(24,16,11,0.82) 100%);
}
.hero-content {
  position: relative;
  color: var(--white);
  padding-bottom: 72px;
  padding-top: 140px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 6vw, 58px);
  max-width: 780px;
  margin-bottom: 20px;
}
.hero-sub {
  max-width: 560px;
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-ratings { display: flex; flex-wrap: wrap; gap: 14px; }
.rating-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.rating-chip em { font-style: normal; font-weight: 500; opacity: 0.9; }

/* ---------------- Rooms ---------------- */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}
@media (min-width: 760px) {
  .rooms-grid { grid-template-columns: repeat(3, 1fr); }
}
.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.room-photo {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-dark);
}
.room-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.room-photo:hover img { transform: scale(1.05); }
.room-photo-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.room-photo-expand svg { width: 16px; height: 16px; }

.room-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-size: 21px; margin-bottom: 10px; }
.room-desc { color: var(--text-soft); font-size: 14.5px; margin-bottom: 16px; flex: 1; }
.room-amenities {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.room-amenities li {
  background: var(--bg);
  border: 1px solid var(--bg-dark);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--text-soft);
}
.rooms-note { text-align: center; color: var(--text-soft); font-size: 14px; margin-top: 32px; }

/* ---------------- Amenities / About ---------------- */
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}
@media (min-width: 640px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .amenities-grid { grid-template-columns: repeat(3, 1fr); } }
.amenity {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 500;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.amenity-ico { font-size: 24px; line-height: 1; }

/* ---------------- Reviews ---------------- */
.reviews-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 760px) { .reviews-summary { grid-template-columns: repeat(2, 1fr); } }
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.review-card-top { display: flex; align-items: center; gap: 16px; }
.google-g { width: 40px; height: 40px; flex-shrink: 0; }
.google-g-sm { width: 24px; height: 24px; }
.booking-badge {
  background: #003580;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 12px;
  flex-shrink: 0;
}
.review-score { font-size: 24px; font-weight: 700; font-family: var(--serif); }
.stars { color: #fbbc04; font-size: 16px; margin-left: 4px; }
.badge-word { font-size: 15px; font-family: var(--sans); font-weight: 600; color: var(--text-soft); margin-left: 6px; }
.review-count { font-size: 13.5px; color: var(--text-soft); }

.reviews-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}
@media (min-width: 860px) { .reviews-columns { grid-template-columns: repeat(2, 1fr); } }

.platform-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}
.platform-head .booking-badge { padding: 6px 9px; font-size: 11.5px; }

.review-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.review-tile-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-size: 14.5px; }
.reviewer-meta { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.tile-stars { margin-left: auto; color: #fbbc04; font-size: 13px; white-space: nowrap; }
.tile-score {
  margin-left: auto;
  background: #003580;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  padding: 5px 9px;
  flex-shrink: 0;
}
.tile-title { font-weight: 700; font-size: 14.5px; margin: 0 0 6px; }
.tile-quote { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.6; }
.tile-response {
  margin-top: 12px;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-soft);
}
.flag { font-size: 13px; }

/* ---------------- Enquiry form ---------------- */
.enquiry-form {
  max-width: 640px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: flex; flex-direction: column; }
.form-row-2 { flex-direction: row; gap: 16px; }
.form-row-2 label { flex: 1; }
.enquiry-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--bg-dark);
  background: var(--bg);
  color: var(--text);
}
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
@media (max-width: 520px) { .form-row-2 { flex-direction: column; gap: 16px; } }

/* ---------------- Location ---------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}
@media (min-width: 860px) { .location-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.location-address { font-family: var(--serif); font-size: 19px; margin-bottom: 18px; }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.location-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 320px; }
.location-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------------- FAQ ---------------- */
.faq-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 20px 22px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.faq-icon { font-size: 20px; color: var(--accent); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { margin: 0; padding: 0 22px 20px; color: var(--text-soft); font-size: 14.5px; }

/* ---------------- Footer ---------------- */
.site-footer { background: #2c2119; color: rgba(255,255,255,0.85); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: rgba(255,255,255,0.55); }
.footer-tag { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-col h4 { color: var(--white); font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; margin-bottom: 10px; font-size: 14.5px; color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--white); }
.footer-wa { color: var(--accent) !important; font-weight: 600; }
.footer-bottom { padding: 22px 24px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ---------------- Floating WhatsApp button ---------------- */
.fab-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35);
  z-index: 90;
  animation: fab-pulse 2.6s ease-in-out infinite;
}
.fab-wa svg { width: 30px; height: 30px; fill: #fff; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35), 0 0 0 10px rgba(37,211,102,0); }
}

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,10,7,0.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.lightbox-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}
.lightbox-dot.active { background: #fff; }

/* ---------------- Utility / focus ---------------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
