/* =========================================================================
   COMPONENTS DESIGN SYSTEM (Aethelgard Reserve)
   ========================================================================= */

/* --- 1. TYPOGRAPHY HELPERS & LABELS --- */
.section-pretitle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--fs-pretitle);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--secondary);
  margin-bottom: var(--space-xs);
}

.section-pretitle.light {
  color: var(--accent);
}

.section-pretitle::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.section-title.light {
  color: var(--white);
}

/* Responsive Linebreak Helper: Single-line on PC / Desktop, break on mobile */
@media (min-width: 768px) {
  .mobile-br {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .mobile-br {
    display: inline !important;
  }
}

.section-desc {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
  max-width: 620px;
}

.section-desc.light {
  color: var(--text-light);
  opacity: 0.85;
}

/* --- 2. BUTTON STYLES (Screenshot 3 & 4) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Primary Button: Safari Terracotta #B65C3A */
.btn-primary {
  background-color: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}

.btn-primary:hover {
  background-color: var(--cta-hover);
  border-color: var(--cta-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(182, 92, 58, 0.28);
}

.btn-primary .btn-arrow {
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Secondary Button: Outlined / WhatsApp */
.btn-outline-whatsapp {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}

.btn-outline-whatsapp:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Card Button: Full width or block button */
.btn-card {
  width: 100%;
  background-color: var(--cta);
  color: var(--white);
  padding: 13px 20px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.btn-card:hover {
  background-color: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(182, 92, 58, 0.22);
}

/* Link Style: "View All Services →" */
.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cta);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.editorial-link:hover {
  color: var(--cta-hover);
}

.editorial-link .arrow {
  transition: transform var(--transition-fast);
}

.editorial-link:hover .arrow {
  transform: translateX(4px);
}

/* --- 3. BADGES & CHIPS --- */
.badge-location {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-chip svg {
  width: 15px;
  height: 15px;
  stroke: var(--secondary);
  fill: none;
  stroke-width: 2;
}

/* --- 4. SANCTUARY CARDS (Reference Screenshot 2 Match) --- */
.sanctuary-card {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sanctuary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
}

.sanctuary-image-frame {
  position: relative;
  width: 100%;
}

.sanctuary-image-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5; /* "thoda slim" */
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background-color: #121A15;
}

.sanctuary-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sanctuary-card:hover .sanctuary-image-inner img {
  transform: scale(1.04);
}

/* Green strip attached "ditto chipkana" at the bottom-left of the image */
.sanctuary-strip-badge {
  position: absolute;
  bottom: -13px;
  left: 0;
  z-index: 5;
  background-color: #15241B; /* deep rich forest dark green */
  color: #D4B279; /* warm sand gold */
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 20px;
  line-height: 1.2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.sanctuary-card-content {
  padding: 30px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sanctuary-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: #121A15;
  line-height: 1.22;
  margin-bottom: 5px;
}

.sanctuary-card-subtitle {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 400;
  color: #4C5750;
  margin-bottom: 12px;
}

.sanctuary-card-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #606C63;
  margin-bottom: 22px;
  flex: 1;
}

.sanctuary-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background-color: #B35832;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.sanctuary-card-btn:hover {
  background-color: #9E4924;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179, 88, 50, 0.35);
}

.sanctuary-card-btn .btn-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.sanctuary-card-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.sanctuary-meta-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 4px;
  border-top: none;
  margin-top: auto;
}

.sanctuary-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: #38423B;
}

.sanctuary-meta-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.sanctuary-meta-item svg:not([stroke]) {
  fill: currentColor;
}

/* --- 5. FEATURE / VALUE CARDS (Screenshot 1 & 2) --- */
.feature-card {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--cta);
}

.feature-icon-box svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-card-desc {
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --- 6. PROCESS STEPS (Screenshot 1 & 2) --- */
.process-step {
  display: flex;
  flex-direction: column;
  position: relative;
}

.process-step-num-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.process-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background-color: var(--white);
  flex-shrink: 0;
}

.process-step-icon {
  color: var(--cta);
  display: flex;
  align-items: center;
}

.process-step-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.process-step-desc {
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- 7. TESTIMONIAL CARDS (Screenshot 1 & 2) --- */
.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--secondary-bg);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-subtle);
  height: 100%;
}

.testimonial-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.rating-stars {
  display: flex;
  gap: 4px;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.rating-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text);
  margin-bottom: var(--space-md);
  flex: 1;
}

.testimonial-author-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-author-meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--secondary);
}

/* --- 8. RESERVATION DRAWER MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 30, 23, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  display: none;
  justify-content: flex-end;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  display: flex !important;
}

.drawer-content {
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: var(--background);
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  padding: var(--space-xl) var(--space-lg);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--secondary-bg);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.drawer-close:hover {
  color: var(--cta);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background-color: var(--white);
  border: 1px solid var(--secondary-bg);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(182, 92, 58, 0.12);
}

/* --- 9. VIDEO & GALLERY LIGHTBOXES --- */
.video-modal-overlay,
.gallery-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(14, 23, 18, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.video-modal-overlay.active,
.gallery-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  display: flex !important;
}

.video-modal-container {
  width: 100%;
  max-width: 900px;
  background-color: var(--primary-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-gold);
}

.gallery-modal-container {
  max-width: 1000px;
  width: 100%;
  text-align: center;
  position: relative;
}

.gallery-modal-container img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--cta);
  border-color: var(--cta);
}

/* --- 10. MOBILE STICKY ACTION BAR --- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 12px);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.mobile-sticky-btn {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.8vw, 8px);
  height: 42px;
  padding: 0 clamp(8px, 2vw, 14px);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 2.8vw, 0.86rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  transition: transform var(--transition-fast, 0.15s ease), opacity 0.15s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.mobile-sticky-btn:hover {
  opacity: 0.95;
}

.mobile-sticky-btn:active {
  transform: scale(0.97);
}

.mobile-sticky-btn.btn-book {
  background-color: var(--cta);
}

.mobile-sticky-btn.btn-whatsapp {
  background-color: #1E7E53;
}

.mobile-sticky-btn.btn-inquire {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.mobile-sticky-btn svg {
  width: clamp(14px, 4vw, 16px);
  height: clamp(14px, 4vw, 16px);
  flex-shrink: 0;
}

.mobile-sticky-btn svg.icon-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.mobile-sticky-btn svg.icon-fill {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: block;
  }
}

/* =========================================================================
   Floating WhatsApp Button (Fixed on all viewports)
   ========================================================================= */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: #25D366;
  color: #ffffff !important;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.floating-whatsapp-btn:hover {
  background-color: #1ebe5d;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
  color: #ffffff !important;
}

.floating-whatsapp-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: 74px; /* Placed cleanly above mobile sticky bar */
    right: 16px;
    padding: 10px 14px;
    font-size: 13px;
  }
}
