/* Mây Homestay — homepage-only styles (Views/Home/Index.cshtml) */

:root {
  --hs-cream: #fbf7ef;
  --hs-cream-alt: #f4efe3;
  --hs-green: #3e5a3a;
  --hs-green-dark: #2e4530;
  --hs-amber: #c17f3a;
  --hs-amber-dark: #a8672c;
  --hs-text: #2f2b22;
  --hs-text-muted: #8a8272;
  --hs-border: #e7e0d0;
}

body.home-page {
  background-color: var(--hs-cream);
  color: var(--hs-text);
  font-family: "Inter", sans-serif;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page .font-serif {
  font-family: "Playfair Display", serif;
}

.home-page .font-script {
  font-family: "Caveat", cursive;
}

.home-page a {
  text-decoration: none;
}

.home-page .text-amber {
  color: var(--hs-amber);
}

.home-page .text-green {
  color: var(--hs-green);
}

.home-page .bg-cream-alt {
  background-color: var(--hs-cream-alt);
}

.home-page .section-eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hs-green);
  text-transform: uppercase;
}

.home-page .section-link {
  color: var(--hs-amber);
  font-weight: 600;
  white-space: nowrap;
}

.home-page .section-link:hover {
  color: var(--hs-amber-dark);
}

/* ---------- Header ---------- */
.home-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #fff;
  border-bottom: 1px solid var(--hs-border);
}

.home-header .home-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  line-height: 0;
  padding: 0;
}

.home-header .home-brand-logo {
  width: 180px;
  height: auto;
  display: block;
}

.home-header .home-brand-tagline {
  max-width: 145px;
  border-left: 1px solid var(--hs-border);
  padding-left: 1rem;
  color: var(--hs-amber-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.home-header .nav-link {
  color: var(--hs-text);
  font-weight: 500;
}

.home-header .nav-link.active {
  color: var(--hs-amber);
  font-weight: 700;
  border-bottom: 2px solid var(--hs-amber);
}

.home-header .btn-book {
  background-color: var(--hs-amber);
  border-color: var(--hs-amber);
  color: #fff;
  border-radius: 50rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
}

.home-header .btn-book:hover {
  background-color: var(--hs-amber-dark);
  border-color: var(--hs-amber-dark);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero-section {
  padding-top: 3rem;
  position: relative;
}

.hero-feature {
  text-align: center;
}

.hero-feature i {
  font-size: 1.4rem;
  color: var(--hs-green);
}

.hero-feature span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.4rem;
}

.hero-image-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-quote-card {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--hs-text);
}

.hero-carousel-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.hero-carousel-controls button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--hs-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-quote-italic {
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  color: var(--hs-text-muted);
}

/* ---------- Rooms ---------- */
.room-card {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: 0.85rem;
  overflow: hidden;
  height: 100%;
}

.room-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.room-card .room-body {
  padding: 1rem;
}

.room-card .room-meta {
  font-size: 0.82rem;
  color: var(--hs-text-muted);
}

.room-card .room-price {
  color: var(--hs-amber);
  font-weight: 700;
}

.room-card .btn-room-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--hs-amber);
  border-radius: 50rem;
  background-color: var(--hs-amber);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.room-card .btn-room-book:hover {
  background-color: var(--hs-amber-dark);
  border-color: var(--hs-amber-dark);
  color: #fff;
}

/* ---------- Amenities strip ---------- */
.amenities-strip {
  border-top: 1px solid var(--hs-border);
  border-bottom: 1px solid var(--hs-border);
  background: #fff;
}

.amenity-item {
  text-align: center;
}

.amenity-item i {
  font-size: 1.5rem;
  color: var(--hs-green);
}

.amenity-item span {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 0.4rem;
}

/* ---------- Check-in steps ---------- */
.checkin-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
}

.checkin-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  border-top: 2px dashed var(--hs-border);
  z-index: 0;
}

.checkin-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  padding: 0 0.5rem;
}

.checkin-step .step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hs-cream-alt);
  color: var(--hs-green);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border: 1px solid var(--hs-border);
}

.checkin-step h6 {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.checkin-step p {
  font-size: 0.85rem;
  color: var(--hs-text-muted);
}

.checkin-image-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
}

.checkin-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkin-image-wrap .overlay-quote {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(20, 30, 15, 0.55) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.checkin-image-wrap .overlay-quote p {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0;
}

/* ---------- Branches ---------- */
.branch-card {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: 0.85rem;
  overflow: hidden;
  height: 100%;
}

.branch-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.branch-card .branch-body {
  padding: 1rem;
}

.branch-card .branch-address {
  font-size: 0.85rem;
  color: var(--hs-text-muted);
}

.branch-card .badge-tag {
  background: var(--hs-cream-alt);
  color: var(--hs-green);
  font-weight: 500;
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
  border-radius: 50rem;
}

/* ---------- Directions video ---------- */
.route-video-btn {
  border: 1px solid var(--hs-amber);
  border-radius: 50rem;
  background: rgba(193, 127, 58, 0.1);
  color: var(--hs-amber-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.route-video-btn:hover,
.route-video-btn:focus {
  border-color: var(--hs-amber-dark);
  background: var(--hs-amber);
  color: #fff;
}

.route-video-modal {
  border: 0;
  border-radius: 1rem;
}

.route-video-modal .modal-header {
  border-bottom-color: var(--hs-border);
}

.route-video-modal .modal-body {
  padding: 1.5rem;
  background: var(--hs-cream);
}

.route-video-portrait {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border: 1px solid var(--hs-border);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(43, 40, 30, 0.12);
}

/* Keep the <video> itself a plain rectangle: rounding/shadowing it directly can make Chrome stop repainting frames. */
.route-video-portrait video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #111;
}

.route-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--hs-green-dark), var(--hs-green));
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.route-video-placeholder[hidden] {
  display: none;
}

.route-video-placeholder i {
  font-size: 2.25rem;
  color: #f4c982;
}

.route-video-placeholder strong {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

.route-video-placeholder span {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.route-video-placeholder code {
  color: #fff;
}

.route-guide-list {
  display: grid;
  gap: 1rem;
}

.route-guide-list > div {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.route-guide-list i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hs-cream-alt);
  color: var(--hs-amber-dark);
}

.route-guide-list span {
  color: var(--hs-text-muted);
  font-size: 0.9rem;
}

.route-guide-list strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--hs-text);
}

/* ---------- Gallery ---------- */
.gallery-strip img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 0.6rem;
}

.gallery-more {
  position: relative;
  border-radius: 0.6rem;
  overflow: hidden;
  height: 170px;
}

.gallery-more::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 15, 0.45);
}

.gallery-more i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.5rem;
  z-index: 1;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: 0.85rem;
  padding: 1.25rem;
  height: 100%;
}

.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card .stars {
  color: #f0ad4e;
  font-size: 0.85rem;
}

.testimonial-card p.quote {
  font-size: 0.9rem;
  color: var(--hs-text);
  margin: 0.6rem 0;
}

.testimonial-card .date {
  font-size: 0.78rem;
  color: var(--hs-text-muted);
}

/* ---------- Contact / FAQ ---------- */
.zalo-card {
  background: #2a6fd6;
  color: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
}

.zalo-card .zalo-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  background: #fff;
  color: #2a6fd6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.zalo-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.zalo-card ul li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.zalo-card .qr-box {
  background: #fff;
  border-radius: 0.6rem;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a6fd6;
  font-size: 2rem;
}

.zalo-card .btn-zalo {
  background: #fff;
  color: #2a6fd6;
  font-weight: 600;
  border-radius: 0.5rem;
}

.faq-list .faq-item {
  border-bottom: 1px solid var(--hs-border);
  padding: 0.85rem 0;
}

.faq-list .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: var(--hs-text);
}

.faq-list .faq-question:hover {
  color: var(--hs-green);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: linear-gradient(120deg, var(--hs-green-dark), var(--hs-green));
  color: #fff;
  border-radius: 1rem;
  overflow: hidden;
  padding: 3rem 2rem;
}

.cta-banner .btn-cta {
  background: var(--hs-amber);
  border-color: var(--hs-amber);
  color: #fff;
  font-weight: 600;
  border-radius: 50rem;
  padding: 0.6rem 1.5rem;
}

.cta-banner .btn-cta:hover {
  background: var(--hs-amber-dark);
  border-color: var(--hs-amber-dark);
  color: #fff;
}

.cta-banner .cta-script {
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  opacity: 0.9;
}

/* ---------- Footer ---------- */
.home-footer {
  background: #fff;
  border-top: 1px solid var(--hs-border);
}

.home-footer .footer-brand {
  line-height: 0;
}

.home-footer .footer-brand-logo {
  width: 260px;
  height: auto;
  display: block;
}

.home-footer h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.home-footer .footer-link {
  color: var(--hs-text-muted);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.home-footer .footer-link:hover {
  color: var(--hs-green);
}

.home-footer .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hs-cream-alt);
  color: var(--hs-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid var(--hs-border);
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--hs-text-muted);
}

@media (max-width: 767.98px) {
  body.home-page {
    padding-top: calc(57px + env(safe-area-inset-top, 0px));
  }

  .home-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    width: 100%;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .home-header .home-brand {
    gap: 0.4rem;
    margin-right: 0.5rem;
  }

  .home-header .home-brand-logo {
    width: 120px;
    height: auto;
  }

  .home-header .home-brand-tagline {
    display: block;
    max-width: 90px;
    padding-left: 0.45rem;
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    line-height: 1.35;
  }

  .home-footer .footer-brand-logo {
    width: 240px;
    height: auto;
  }

  .hero-image-wrap img {
    height: 280px;
  }

  .checkin-steps {
    flex-direction: column;
    gap: 1.5rem;
  }

  .checkin-steps::before {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
  .home-header .home-brand-tagline {
    display: none;
  }
}
