/* ============================================================
   Only Memories Homestay — Modern Design System
   Inspired by Andaman Paradise Holidays
   Colors: #0B132B Dark Navy | #00BCD4 Aqua Teal | #FFFFFF White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables (Nature Theme) ────────────────────────────── */
:root {
  --primary:      #2E7D32; /* Forest Green */
  --primary-dark: #1B5E20;
  --primary-light:#E8F5E9; /* Light Mint */
  --secondary:    #1B3022; /* Very Dark Green-Black */
  --accent:       #8BC34A; /* Lime Green */
  --bg:           #FFFFFF;
  --bg-alt:       #F1F8F1;
  --text:         #1B3022;
  --text-muted:   #556B5A;
  --border:       #E0E7E1;
  --shadow:       0 10px 30px rgba(46, 125, 50, 0.08);
  --shadow-hover: 0 15px 40px rgba(46, 125, 50, 0.12);
  --radius:       20px;
  --radius-sm:    12px;
  --transition:   .3s ease-in-out;
  --font:         'Poppins', sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { 
  overflow-x: hidden; 
  width: 100%;
  position: relative;
}
body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { 
  font-weight: 700; 
  color: var(--secondary); 
  margin-bottom: 1rem;
}
h1 { font-weight: 900; }
p { color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-sn {
  padding: 20px 0;
  transition: var(--transition);
  z-index: 1050;
}
.navbar-sn.transparent { background: transparent; }
.navbar-sn.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  padding: 8px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  transition: var(--transition);
  white-space: nowrap;
}
.navbar-sn.scrolled .navbar-brand-text { color: var(--secondary); }
.navbar-brand-text span { color: var(--accent); }

.navbar-sn .nav-link {
  color: #fff !important;
  font-weight: 600;
  margin: 0 10px;
  font-size: 0.95rem;
  transition: var(--transition);
}
.navbar-sn.scrolled .nav-link { color: var(--secondary) !important; }
.navbar-sn .nav-link:hover, .navbar-sn .nav-link.active { color: var(--primary) !important; }

.navbar-sn .btn-enquiry {
  background: var(--primary);
  color: #fff !important;
  border-radius: 50px;
  padding: 10px 25px !important;
  font-weight: 600;
  margin-left: 15px;
}

.nav-link-sn {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  opacity: 0.85;
}
.navbar-sn.scrolled .nav-link-sn { color: var(--secondary); opacity: 1; }
.nav-link-sn:hover { color: var(--accent); opacity: 1; }
.navbar-sn.scrolled .nav-link-sn:hover { color: var(--primary); }
.nav-link-sn::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-link-sn:hover::after { width: 100%; }

.btn-nav-phone {
  background: #fff;
  color: var(--primary) !important;
  font-weight: 700;
  border: 1px solid transparent;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.navbar-sn.scrolled .btn-nav-phone {
  background: var(--primary);
  color: #fff !important;
}
.btn-nav-phone:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ── Minimalist Hamburger ────────────────────────────────────── */
.minimal-hamburger {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  padding: 0;
  z-index: 1100;
}
.minimal-hamburger span {
  display: block;
  width: 32px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}
.minimal-hamburger span:last-child { width: 20px; }
.navbar-sn.scrolled .minimal-hamburger span { background: var(--accent); }
.minimal-hamburger:hover span:last-child { width: 32px; }

/* ── Modern Nav Drawer ──────────────────────────────────────── */
.modern-nav-drawer {
  background: var(--secondary) !important;
  width: 100% !important;
  border: none;
}
.nav-drawer-link {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 20px;
  transition: var(--transition);
}
.nav-drawer-link:hover {
  color: var(--primary);
  transform: translateX(10px);
}
.nav-drawer-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}
.nav-drawer-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Photo Frame Layout ─────────────────────────────────────── */
.photo-frame-v2 {
  position: relative;
  background: #fff;
  padding: 15px 15px 45px 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-radius: 5px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05);
}
.photo-frame-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.photo-frame-v2 .frame-label {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
  font-style: italic;
}
.photo-frame-v2:hover {
  transform: translateY(-15px) scale(1.02) !important;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  z-index: 10;
}
.gallery-photo-frame .col-md-4:nth-child(even) .photo-frame-v2 {
  transform: translateY(-20px);
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* Ken Burns Effect */
.splide__slide.is-active .hero-section {
  animation: kenBurns 10s ease-out forwards;
}
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.animate-hero-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.splide__slide.is-active .animate-hero-text,
.page-header-sn .animate-hero-text {
  opacity: 1;
  transform: translateY(0);
}

/* ── Standalone Page Header ─────────────────────────────────── */
.page-header-sn {
  padding: 160px 0 100px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.page-header-content {
  position: relative;
  z-index: 2;
}
.page-header-sn .sub-title {
  display: block;
  margin-bottom: 15px;
}
.page-header-sn h1 span {
  color: var(--accent);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(11, 26, 14, 0.65); /* Dark Forest Green Overlay */
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 25px;
  color: #FFFFFF;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Search Widget (Reference Style) ─────────────────────────── */
.search-container {
  position: relative;
  margin-top: -60px;
  z-index: 10;
}
.search-widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}
.search-field {
  padding: 10px 15px;
  border-right: 1px solid #eee;
}
.search-field:last-child { border-right: none; }
.search-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.search-field input, .search-field select {
  border: none;
  width: 100%;
  font-weight: 600;
  outline: none;
}

/* ── Section Header ─────────────────────────────────────────── */
.section-py { padding: 100px 0; }
.section-header { margin-bottom: 60px; }
.section-header .sub-title {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.section-header .main-title {
  font-size: 2.5rem;
  font-weight: 800;
  position: relative;
}
.section-header .main-title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--primary);
  margin-top: 15px;
}

/* ── Package Cards ──────────────────────────────────────────── */
.pkg-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: none;
}
.pkg-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.pkg-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.pkg-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.pkg-card:hover .pkg-img img { transform: scale(1.1); }
.pkg-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pkg-body { padding: 25px; }
.pkg-location {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pkg-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary);
}
.pkg-footer {
  padding: 20px 25px;
  background: var(--bg-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pkg-price { font-weight: 800; font-size: 1.2rem; color: var(--secondary); }
.pkg-price span { font-weight: 400; font-size: 0.8rem; color: var(--text-muted); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-sn-primary {
  background: var(--primary);
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  transform: translateY(0) translateZ(0);
  backface-visibility: hidden;
}
.btn-sn-primary:hover {
  transform: translateY(-5px) translateZ(0);
  box-shadow: 0 12px 25px rgba(46, 125, 50, 0.35);
  background: var(--primary-dark);
}
.btn-sn-primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: rgba(255,255,255,0.2);
  transform: rotate(45deg);
  transition: .5s;
  opacity: 0;
}
.btn-sn-primary:hover::after {
  left: 120%;
  opacity: 1;
}

.btn-sn-secondary {
  background: var(--secondary);
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
  transform: translateY(0) translateZ(0);
  backface-visibility: hidden;
  border: none;
}
.btn-sn-secondary:hover {
  transform: translateY(-5px) translateZ(0);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  opacity: 0.9;
  background: #000;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonial-box {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testi-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid var(--primary-light);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer-sn {
  background: var(--secondary);
  color: #fff;
  padding: 80px 0 20px;
}
.footer-sn h5 { color: #fff; margin-bottom: 25px; font-weight: 700; }
.footer-sn a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-sn a:hover { color: var(--primary); }

/* ── Floating Buttons ───────────────────────────────────────── */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.floating-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: var(--transition);
  animation: pulse-contact 2s infinite;
}
@keyframes pulse-contact {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(46, 125, 50, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}
.btn-whatsapp { animation-name: pulse-whatsapp; }
@keyframes pulse-whatsapp {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.floating-btn:hover { transform: scale(1.2) rotate(5deg); color: #fff; animation: none; }
.btn-whatsapp { background: #25D366; }
.btn-call { background: var(--primary); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .navbar-sn { padding: 15px 0; }
  .navbar-sn.scrolled { background: var(--secondary) !important; }
  .search-container { margin-top: -30px; }
  .search-widget .search-field { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
  .search-widget .search-field:last-of-type { border-bottom: none; margin-bottom: 0; }
  .section-header .main-title { font-size: 2rem; }
  .hero-title { font-size: 3rem; }
  .section-py { padding: 60px 0; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .floating-contact { bottom: 20px; right: 20px; }
  .floating-btn { width: 50px; height: 50px; font-size: 1.2rem; }
  .search-widget { padding: 20px; }
  .main-title { font-size: 1.8rem; }
  .sub-title { font-size: 0.8rem; }
  .pkg-img { height: 200px; }
  
  /* Mobile Gallery Photo Frames */
  .photo-frame {
    border-width: 4px;
    border-radius: 8px;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
  .frame-label-overlay {
    font-size: 0.7rem;
    padding: 4px 8px;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .navbar-brand-text { font-size: 1.1rem; }
  .btn-sn-primary, .btn-sn-secondary { 
    padding: 10px 20px;
    font-size: 0.85rem;
    width: auto;
    display: inline-block;
    margin: 5px;
  }
  .btn-sn-secondary { margin-left: 5px !important; }
  .search-widget { padding: 15px; border-radius: 15px; }
  .search-field label { font-size: 0.65rem; margin-bottom: 2px; }
  .search-field input, .search-field select { font-size: 0.85rem; }
  .testimonial-box { padding: 20px; }
  .testimonial-box p { font-size: 0.85rem; }
}

/* ── AJAX Loader ────────────────────────────────────────────── */
.ajax-loader {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  backdrop-filter: blur(2px);
}
.ajax-loader .spinner-border {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
}

/* ── Lightbox Styles ─────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 5px solid #fff;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.lightbox-overlay.open .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: var(--accent);
}

/* ── Premium Flash Alerts (Toasts) ─────────────────────────── */
.flash-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  width: calc(100% - 40px);
}
.flash-alert {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  padding: 1.25rem 3rem 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 5px solid transparent;
  animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.alert-success.flash-alert { border-left-color: var(--primary); color: #1a4d2e; }
.alert-danger.flash-alert { border-left-color: #dc3545; color: #842029; }
.alert-warning.flash-alert { border-left-color: #ffc107; color: #664d03; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Additional Tour Packages Custom Color Rules ────────────────── */
.hover-primary-green:hover {
  color: var(--primary) !important;
}
.pkg-card .img-zoom {
  transition: transform 0.5s ease;
}
.pkg-card:hover .img-zoom {
  transform: scale(1.08);
}