/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
}
.site-nav.scrolled {
  background: rgba(28, 16, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px var(--gutter);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--color-cream);
  letter-spacing: 0.08em;
  font-style: italic;
}
.nav-logo span {
  color: var(--color-teal-light);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246,237,216,0.7);
}
.lang-switcher button {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(246,237,216,0.55);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 4px;
  transition: color 0.3s;
}
.lang-switcher button.active,
.lang-switcher button:hover {
  color: var(--color-cream);
}
.lang-switcher .divider {
  opacity: 0.3;
}
.nav-book-btn {
  background: var(--color-crimson);
  color: var(--color-cream);
  border: none;
  cursor: pointer;
  font-family: var(--font-body-en);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 2px;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.nav-book-btn:hover {
  background: var(--color-crimson-soft);
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  /* v1.3.0 — background-image is set inline via PHP from the front-page
     metabox (_nk_front_hero_bg attachment ID, with fallback to
     /assets/images/hero.jpg). Do not re-add a background-image rule here. */
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero.loaded .hero-bg {
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 16, 10, 0.30) 20%,
    rgba(28, 16, 10, 1.45) 60%,
    rgba(28, 16, 10, 2.55) 100%
  );
}
/* Mist effect at bottom */
.hero-mist {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(90, 191, 176, 0.18) 40%,
    rgba(246, 237, 216, 0.20) 100%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 800px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-teal-light);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--ease) forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 90px);
  font-weight: 300;
  font-style: italic;
  color: var(--color-cream);
  line-height: 1.05;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s var(--ease) forwards;
}
.hero-title .line-accent {
  display: block;
  color: var(--color-cream);
  font-style: normal;
  font-size: 0.65em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: var(--font-body-en);
  margin-top: 8px;
}
.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(246,237,216,0.82);
  margin-bottom: 40px;
  letter-spacing: 0.03em;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s var(--ease) forwards;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s var(--ease) forwards;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-crimson);
  color: var(--color-cream);
  font-family: var(--font-body-en);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn-primary:hover {
  background: var(--color-crimson-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(122, 31, 31, 0.45);
}
.btn-primary svg { flex-shrink: 0; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-cream);
  font-family: var(--font-body-en);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 2px;
  border: 1px solid rgba(246,237,216,0.4);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.25s;
}
.btn-secondary:hover {
  border-color: rgba(246,237,216,0.85);
  background: rgba(246,237,216,0.08);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.4s ease forwards;
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246,237,216,0.5);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(246,237,216,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.5); opacity: 0.2; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.section-about {
  padding: var(--section-pad) 0;
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}
.section-about::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,191,176,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.section-about::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,31,31,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-crimson);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-crimson);
  flex-shrink: 0;
}
.about-heading {
  font-size: clamp(34px, 4vw, 54px);
  color: var(--color-charcoal);
  margin-bottom: 28px;
  font-style: italic;
}
.about-text {
  color: var(--color-text-light);
  font-size: clamp(15px, 1.4vw, 17px);
  margin-bottom: 16px;
}
.about-signature {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-signature-line {
  width: 48px;
  height: 1px;
  background: var(--color-gold);
}
.about-signature-text {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-style: italic;
}

.about-image-wrap {
  position: relative;
}
.about-image-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.about-image-frame:hover img { transform: scale(1.04); }
/* Decorative border offset */
.about-image-frame::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}
/* Floating badge */
.about-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--color-crimson);
  color: var(--color-cream);
  padding: 18px 22px;
  border-radius: 3px;
  z-index: 2;
  text-align: center;
  box-shadow: 0 8px 32px rgba(122,31,31,0.35);
}
.about-badge .num {
  font-family: var(--font-display);
  font-size: 36px;
  font-style: italic;
  line-height: 1;
  display: block;
}
.about-badge .label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  display: block;
  margin-top: 4px;
}

/* ============================================================
   HIGHLIGHTS / AMENITIES
   ============================================================ */
.section-highlights {
  padding: var(--section-pad) 0;
  background: var(--color-charcoal);
  position: relative;
}
.section-highlights::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.highlights-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 70px);
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 50px);
  font-style: italic;
  color: var(--color-cream);
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.highlight-card {
  background: rgba(255,255,255,0.04);
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 32px);
  text-align: center;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--color-teal);
  transition: transform 0.4s var(--ease);
}
.highlight-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}
.highlight-card:hover::before {
  transform: translateX(-50%) scaleX(1);
}
.highlight-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(90,191,176,0.15);
  border-radius: 50%;
  color: var(--color-teal);
}
.highlight-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  color: var(--color-cream);
  margin-bottom: 10px;
}
.highlight-desc {
  font-size: 13px;
  color: rgba(246,237,216,0.55);
  line-height: 1.65;
}

/* ============================================================
   GALLERY
   ============================================================ */
.section-gallery {
  padding: var(--section-pad) 0;
  background: var(--color-cream-dark);
}
.gallery-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.gallery-header .section-title { color: var(--color-charcoal); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 10px;
}
/* Masonry-like layout */
.gallery-item { overflow: hidden; border-radius: 3px; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item:nth-child(1) { grid-column: span 8; grid-row: span 2; aspect-ratio: 16/9; }
.gallery-item:nth-child(2) { grid-column: span 4; aspect-ratio: 4/3; }
.gallery-item:nth-child(3) { grid-column: span 4; aspect-ratio: 4/3; }
.gallery-item:nth-child(4) { grid-column: span 4; aspect-ratio: 4/3; }
.gallery-item:nth-child(5) { grid-column: span 4; aspect-ratio: 4/3; }
.gallery-item:nth-child(6) { grid-column: span 4; aspect-ratio: 4/3; }

/* ============================================================
   EXPERIENCE STRIP
   ============================================================ */
.section-experience {
  background: var(--color-crimson);
  padding: clamp(40px, 5vw, 70px) 0;
  overflow: hidden;
}
.experience-strip {
  display: flex;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.experience-item {
  text-align: center;
  color: var(--color-cream);
}
.experience-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-style: italic;
  color: var(--color-teal-light);
  line-height: 1;
  display: block;
}
.experience-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,237,216,0.65);
  margin-top: 6px;
  display: block;
}
.experience-divider {
  width: 1px;
  height: 60px;
  background: rgba(246,237,216,0.15);
}

/* ============================================================
   LOCATION
   ============================================================ */
.section-location {
  padding: var(--section-pad) 0;
  background: var(--color-cream);
}
.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.location-info .section-label { color: var(--color-crimson); text-align: left; }
.location-info .section-title {
  font-size: clamp(28px, 3.2vw, 42px);
  color: var(--color-charcoal);
  text-align: left;
  margin-bottom: 24px;
}
.location-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.location-point {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--color-text-light);
}
.location-point-icon {
  width: 36px;
  height: 36px;
  background: var(--color-teal-mist);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-forest);
  flex-shrink: 0;
}
.location-point strong {
  color: var(--color-charcoal);
  font-weight: 500;
}
.map-embed {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(44,36,32,0.15);
  aspect-ratio: 4/3;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   BOOKING CTA
   ============================================================ */
.section-booking {
  padding: var(--section-pad) 0;
  background: var(--color-crimson-deep);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.section-booking::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.06'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.06'/%3E%3C/svg%3E") center/200px repeat;
}
.booking-content { position: relative; z-index: 1; }
.booking-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-teal-light);
  margin-bottom: 20px;
}
.booking-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  font-style: italic;
  color: var(--color-cream);
  margin-bottom: 16px;
}
.booking-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(246,237,216,0.72);
  margin-bottom: 44px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.btn-book-airbnb {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--color-cream);
  color: var(--color-crimson-deep);
  font-family: var(--font-body-en);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 20px 48px;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-bounce),
              box-shadow 0.3s var(--ease), background 0.3s;
}
.btn-book-airbnb:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  background: white;
}
.airbnb-icon {
  width: 22px;
  height: 22px;
  fill: #FF5A5F;
  flex-shrink: 0;
}
.booking-note {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(246,237,216,0.4);
  letter-spacing: 0.06em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-charcoal);
  padding: 40px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--color-cream);
  letter-spacing: 0.06em;
}
.footer-logo span { color: var(--color-teal); }
.footer-copy {
  font-size: 12px;
  color: rgba(246,237,216,0.35);
  letter-spacing: 0.06em;
}
.footer-link {
  font-size: 12px;
  color: rgba(246,237,216,0.45);
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
.footer-link:hover { color: var(--color-teal-light); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   LANGUAGE — Thai overrides
   ============================================================ */
.lang-th .hero-eyebrow,
.lang-th .hero-subtitle,
.lang-th .section-label,
.lang-th .about-text,
.lang-th .highlight-desc,
.lang-th .location-point,
.lang-th .booking-sub,
.lang-th .footer-copy {
  font-family: var(--font-body-th);
}

[data-lang="th"] { display: none; }
.lang-th [data-lang="en"] { display: none; }
.lang-th [data-lang="th"] { display: block; }
.lang-th .hero-title,
.lang-th .booking-title {
  font-style: normal;
  font-size: clamp(36px, 5vw, 70px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .about-inner,
  .location-inner {
    grid-template-columns: 1fr;
  }
  .about-image-wrap { order: -1; }
  .about-badge { bottom: -16px; left: 16px; }

  .highlights-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
  }

  .experience-divider { display: none; }

  .site-nav { padding: 14px 20px; }
  .nav-book-btn { padding: 8px 16px; font-size: 11px; }
}

@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* =====================================================================
 * Section Manager — custom section wrappers (v1.4.0)
 * ===================================================================== */

.nk-section-shortcode,
.nk-section-html,
.nk-section-heading,
.nk-section-tnm-gallery {
  position: relative;
  padding: 80px 0;
}

.nk-section-shortcode.nk-section-pad-compact { padding: 40px 0; }
.nk-section-shortcode.nk-section-pad-large   { padding: 120px 0; }
.nk-section-shortcode.nk-section-pad-none    { padding: 0; }

.nk-section-heading {
  padding: 60px 0 20px;
  text-align: center;
}

.nk-section-heading .section-title { margin-bottom: 14px; }

.nk-section-subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: var(--nk-text-muted, #7A6860);
  font-size: 1rem;
  line-height: 1.65;
}

.nk-section-tnm-gallery .gallery-header { margin-bottom: 40px; text-align: center; }

@media (max-width: 768px) {
  .nk-section-shortcode,
  .nk-section-html,
  .nk-section-heading,
  .nk-section-tnm-gallery { padding: 50px 0; }
}
