:root {
  --resort-dark: #2f241f;
  --resort-gold: #b38b59;
  --resort-beige: #f8f2ea;
  --resort-light: #ffffff;
  --resort-text: #3d342f;
  --header-tan: #c19a6b;
  --header-top-bg: #f5f2eb;
  --header-nav-bg: #2c2926;
  --header-text-muted: #5c5650;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--resort-text);
  background: var(--resort-light);
}

/* ----- Luxury site header (two-tier) ----- */
.site-header {
  position: relative;
  z-index: 1020;
}

.site-header-top {
  position: relative;
  background-color: var(--header-top-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='none' stroke='%23cfc8bc' stroke-width='0.35' opacity='0.55' d='M0 60 C20 45 40 75 60 60 S100 45 120 60'/%3E%3Cpath fill='none' stroke='%23cfc8bc' stroke-width='0.35' opacity='0.45' d='M0 40 C25 25 50 55 75 40 S105 20 120 35'/%3E%3Cpath fill='none' stroke='%23cfc8bc' stroke-width='0.35' opacity='0.4' d='M0 85 C30 70 55 100 85 85 S110 95 120 88'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-contact-cluster {
  justify-content: flex-start;
}

.header-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.header-icon-ring {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--header-tan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--header-tan);
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.35);
}

.header-contact-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--header-text-muted);
  font-weight: 500;
}

.header-email-link {
  color: var(--header-text-muted);
  text-decoration: none;
  word-break: break-word;
}

.header-email-link:hover {
  color: var(--resort-dark);
}

.site-brand-logo {
  max-height: 135px;
  width: auto;
  display: block;
  margin: 0 auto 4px;
}

.site-brand-name {
  display: block;
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: #3d2f28;
  line-height: 1.1;
}

.site-brand:hover .site-brand-name {
  color: #2a1f1a;
}

.header-phone {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--header-tan);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.header-phone:hover {
  color: #a67f4f;
}

.header-book-btn {
  background: var(--header-tan);
  border: 1px solid var(--header-tan);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
}

.header-book-btn:hover {
  background: #a67f4f;
  border-color: #a67f4f;
  color: #fff !important;
}

.site-header-nav {
  background: var(--header-nav-bg);
  padding: 0;
}

.site-nav-menu .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.65rem 0.85rem !important;
}

.site-nav-menu .nav-link:hover,
.site-nav-menu .nav-link:focus {
  color: var(--header-tan) !important;
}

.site-nav-menu .nav-link.active {
  color: var(--header-tan) !important;
}

.mobile-header-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding-left: 0.35rem;
  background-color: var(--header-top-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='none' stroke='%23cfc8bc' stroke-width='0.35' opacity='0.55' d='M0 60 C20 45 40 75 60 60 S100 45 120 60'/%3E%3Cpath fill='none' stroke='%23cfc8bc' stroke-width='0.35' opacity='0.45' d='M0 40 C25 25 50 55 75 40 S105 20 120 35'/%3E%3Cpath fill='none' stroke='%23cfc8bc' stroke-width='0.35' opacity='0.4' d='M0 85 C30 70 55 100 85 85 S110 95 120 88'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-brand-logo {
  max-height: 96px;
  width: auto;
  padding-top: 10px;
}

.mobile-menu-toggle {
  margin-left: auto;
  padding-right: 0.2rem;
  z-index: 2;
}

.mobile-menu-toggle .navbar-toggler-icon {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(61,52,47,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.1' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.mobile-nav-extras {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0.6rem;
  padding: 0.9rem 0 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mobile-nav-extra-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.mobile-nav-extra-link:hover {
  color: var(--header-tan);
}

#top-hero,
#about-homestay,
#why-choose-us {
  scroll-margin-top: 1rem;
}

.brand-font,
.section-title,
.hero-title {
  font-family: "Playfair Display", serif;
}

.section-pad {
  padding: 70px 0;
}

.resort-navbar {
  transition: background-color 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
}

.resort-navbar.scrolled {
  background: rgba(27, 19, 15, 0.92);
}

.hero-section {
  min-height: 92vh;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url("/images/placeholder.jpg") center / cover no-repeat;
}

.inner-hero {
  min-height: 45vh;
  margin-top: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("/images/placeholder.jpg") center / cover no-repeat;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.btn-gold {
  background: var(--resort-gold);
  border: 1px solid var(--resort-gold);
  color: #fff;
}

.btn-gold:hover {
  background: #9c7444;
  border-color: #9c7444;
  color: #fff;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1rem;
  box-shadow: 0 10px 24px rgba(27, 20, 16, 0.08);
}

.feature-icon-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  margin-bottom: 1rem;
}

.feature-icon-placeholder-svg {
  width: 56px;
  height: 56px;
  color: var(--header-tan);
  opacity: 0.55;
}

.feature-icon-bi {
  font-size: 2.25rem;
  line-height: 1;
  color: var(--header-tan);
}

.why-section-wrap {
  padding-top: 30px;
}

.why-section-card {
  border-radius: 10px;
  box-shadow: 0 15px 34px rgba(25, 19, 16, 0.16);
}

.why-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.why-content-panel {
  background: #4a3f3b;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.why-mini-text {
  color: #d5a86f;
  letter-spacing: 2px;
  font-size: 0.72rem;
  font-weight: 500;
}

.why-description {
  color: rgba(255, 255, 255, 0.86);
}

.why-feature-item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #f7efe5;
  font-size: 0.95rem;
  font-weight: 500;
}

.why-feature-item i {
  font-size: 1rem;
  color: #d7ac73;
}

.shadow-soft {
  box-shadow: 0 15px 32px rgba(23, 18, 15, 0.13);
}

.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 10px 24px rgba(27, 20, 16, 0.08);
  text-align: center;
}

.testimonial-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  margin: 0 auto;
  background: linear-gradient(135deg, #b89262, #8b6a42);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
}

.testimonial-card p {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
}

.rating-summary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.rating-stars {
  color: #d09b56;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
}

.rating-text {
  color: #5f5248;
  font-size: 0.95rem;
}

.banner-section {
  min-height: 45vh;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url("/images/placeholder.jpg") center / cover no-repeat;
}

.room-card,
.gallery-img,
.experience-card {
  border: 0;
  overflow: hidden;
  border-radius: 12px;
}

.room-card img {
  height: 220px;
  object-fit: cover;
}

.room-card:hover {
  transform: translateY(-4px);
  transition: 0.3s ease;
}

.experience-card {
  position: relative;
}

.overlay-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  font-size: 1.2rem;
}

.booking-box {
  background: var(--resort-beige);
  border-radius: 12px;
  padding: 1.4rem;
}

.enquiry-phone-group .enquiry-country-code {
  min-width: 7.75rem;
}

@media (max-width: 575.98px) {
  .enquiry-phone-group .enquiry-country-code {
    max-width: 42% !important;
    min-width: 6.75rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    font-size: 0.8rem;
  }
}

.footer-section {
  background: var(--resort-dark);
}

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-action {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.floating-action:hover {
  transform: translateY(-2px);
  color: #fff;
}

.floating-call {
  background: #4f46e5;
}

.floating-whatsapp {
  background: #25d366;
}

.accommodation-head {
  gap: 0.75rem;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: #1f1815;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.35s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-login-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("/images/placeholder.jpg") center / cover no-repeat;
}

.login-card {
  max-width: 420px;
  width: 100%;
}

.homepage-editor-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.homepage-editor-form .form-label {
  font-weight: 600;
  color: #2f241f;
}

.editor-card {
  border: 1px solid #e7e2da;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(39, 29, 22, 0.06);
}

.editor-card-head {
  background: #f8f3ed;
  border-bottom: 1px solid #e7e2da;
  padding: 1rem 1.2rem;
}

.editor-card-head h5 {
  color: #2f241f;
}

.editor-card-head small {
  color: #796e63;
}

.editor-card-body {
  padding: 1rem 1.2rem 1.2rem;
}

.editor-subcard {
  border: 1px solid #ebe4dc;
  border-radius: 10px;
  padding: 0.9rem;
  background: #fcfbf9;
}

.editor-preview-img,
.editor-preview-thumb {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e6dfd5;
  object-fit: cover;
  background: #f6f2ed;
}

.editor-preview-img {
  height: 140px;
}

.editor-preview-thumb {
  height: 96px;
}

.editor-actions {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid #e7e2da;
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

@media (max-width: 767px) {
  .section-pad {
    padding: 60px 0;
  }

  .hero-section .container {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7.2vw, 2.15rem);
    line-height: 1.2;
  }

  .hero-section .lead {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .header-actions {
    justify-content: center;
    text-align: center;
  }

  .site-nav-menu {
    text-align: center;
  }

  .site-brand-logo {
    max-height: 86px;
  }

  .mobile-brand-logo {
    max-height: 84px;
  }

  .site-nav-menu .nav-link {
    font-size: 0.82rem;
    padding: 0.75rem 0.6rem !important;
  }

  #navbarMain {
    padding: 0.4rem 0.2rem 0.8rem;
  }

  .feature-card {
    padding: 1.4rem 1rem;
  }

  .feature-icon-slot {
    min-height: 56px;
    margin-bottom: 0.7rem;
  }

  .feature-icon-placeholder-svg {
    width: 46px;
    height: 46px;
  }

  .feature-icon-bi {
    font-size: 1.8rem;
  }

  .accommodation-head {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .accommodation-head .btn {
    width: 100%;
  }

  .why-section-wrap {
    padding-top: 10px;
  }

  .why-image {
    min-height: 240px;
  }

  .why-content-panel {
    padding: 1.2rem 1rem;
  }

  .why-feature-item {
    font-size: 0.88rem;
  }

  .testimonial-card {
    padding: 1.45rem 1rem;
  }

  .testimonial-card p {
    max-width: 34ch;
    margin-bottom: 1rem;
  }

  .room-card img {
    height: 190px;
  }

  .banner-section {
    min-height: 34vh;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .section-pad {
    padding: 66px 0;
  }

  .mobile-header-row {
    min-height: 82px;
  }

  .mobile-brand-logo {
    max-height: 72px;
  }

  .hero-section .container {
    max-width: 88%;
  }

  .hero-title {
    font-size: clamp(2rem, 4.8vw, 2.75rem);
    line-height: 1.2;
  }

  .hero-section .lead {
    max-width: 44ch;
    margin-left: auto;
    margin-right: auto;
  }

  .site-nav-menu .nav-link {
    font-size: 0.86rem;
    padding: 0.8rem 0.85rem !important;
  }

  .feature-card {
    padding: 1.6rem 1rem;
  }

  .feature-icon-bi {
    font-size: 2rem;
  }

  .accommodation-head {
    flex-direction: row;
    align-items: center !important;
  }

  .accommodation-head .btn {
    width: auto;
  }

  .why-image {
    min-height: 300px;
  }

  .why-content-panel {
    padding: 1.6rem 1.3rem;
  }

  .testimonial-card {
    padding: 1.75rem 1.4rem;
  }

  .room-card img {
    height: 205px;
  }

  .banner-section {
    min-height: 38vh;
  }

  .floating-actions {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 991.98px) {
  .site-header-top {
    display: none !important;
  }

  .hero-section {
    min-height: 50vh;
  }

  .things-to-do-list,
  .things-to-do-list li {
    text-align: left;
  }

  .site-header-nav {
    background: #f5f2eb;
  }

  .site-header-nav .container {
    position: relative;
  }

  .site-nav-menu {
    width: 100%;
    align-items: stretch !important;
  }

  .site-nav-menu .nav-item {
    width: 100%;
  }

  .site-nav-menu .nav-link {
    color: #3d342f !important;
    text-align: left;
    border-bottom: 1px solid rgba(61, 52, 47, 0.12);
    letter-spacing: 0.05em;
  }

  .mobile-nav-extra-link {
    color: #3d342f;
  }

  .mobile-nav-extra-link i {
    color: #5b4637;
  }

  .header-book-btn {
    width: fit-content;
  }

  .admin-top-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .admin-top-actions .btn,
  .admin-top-actions form {
    width: auto;
  }

  .admin-top-actions form .btn {
    width: 100%;
  }

  .editor-card-head,
  .editor-card-body {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .editor-actions {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    margin-top: 0.5rem;
  }

  .editor-actions .btn {
    width: 100%;
  }
}

.room-image-picker {
  display: block;
  border: 1px solid #e6dfd5;
  border-radius: 10px;
  padding: 0.45rem;
  background: #fcfbf9;
}

.room-image-thumb {
  width: 100%;
  height: 130px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.45rem;
}

.room-image-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #53473f;
}

.popup-image-trigger {
  cursor: zoom-in;
}

.popup-image-wrap {
  position: relative;
  overflow: hidden;
}

.popup-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0));
  opacity: 0.8;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.popup-zoom-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.66);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.2s ease;
  pointer-events: none;
}

.popup-image-wrap:hover::after,
.popup-image-wrap:hover .popup-zoom-icon {
  opacity: 1;
}

.popup-image-wrap:hover .popup-zoom-icon {
  transform: translateY(0);
}

.image-popup-content {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.image-popup-preview {
  max-height: 88vh;
  width: auto;
  margin: 0 auto;
}

.image-popup-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 10;
  width: 38px;
  height: 38px;
  background-color: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  padding: 0;
  opacity: 1;
  background-image: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-popup-close:hover {
  background-color: rgba(0, 0, 0, 0.86);
  border-color: rgba(255, 255, 255, 0.8);
}

.image-popup-close::before {
  content: "\00d7";
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 500;
}
