html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Lato', sans-serif;
  background-color: #060a12;
  color: #eaf2ff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Locks the screen to prevent scrolling on the home page */
.home-body {
  overflow: hidden; 
}

/* ===================== HEADER MENU & DROPDOWNS ===================== */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 50px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 30;
  pointer-events: auto;
}

body:not(.home-body) header {
  position: relative;
  background: rgba(6, 10, 18, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;        
  font-style: italic;       
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #8bb7ff;           
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7); 
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav li { position: relative; }

nav a {
  color: #eaf2ff;
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease, background 0.2s ease;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  display: block;
  padding: 10px 0;
}

nav > ul > li > a:hover { color: #8bb7ff; }

/* Dropdown Shared Styles */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(12, 20, 38, 0.95); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  min-width: 220px;
  padding: 10px 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  flex-direction: column;
  gap: 0;
}

.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .sub-menu { display: flex; }

.dropdown-menu li { width: 100%; }

.dropdown-menu a {
  padding: 14px 24px;
  font-size: 0.95rem;
  text-transform: capitalize;
  letter-spacing: 1px;
  text-shadow: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.dropdown-submenu .sub-menu {
  top: -10px;
  left: 100%; 
  margin-left: 5px; 
}

.arrow { font-size: 0.7rem; margin-left: 6px; opacity: 0.8; }

/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-image: url('spa-bg.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(6, 10, 18, 0.2) 0%, rgba(6, 10, 18, 0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ===================== OVERLAY PANELS ===================== */
.ui-layer {
  position: absolute;
  top: 120px; 
  bottom: 60px;
  left: 0;
  width: 100%;
  z-index: 15;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  box-sizing: border-box;
}

.panel-column {
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: auto;
}

.glass-card {
  background: rgba(15, 25, 45, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-container { height: 100%; display: flex; flex-direction: column; }
.carousel-container h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; margin-top: 0; margin-bottom: 15px; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px;
}
.carousel-slide { display: none; flex-direction: column; animation: fadeIn 0.8s ease; }
.carousel-slide.active { display: flex; }
.carousel-slide img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 15px;
}
.carousel-slide p { font-size: 0.95rem; line-height: 1.5; color: #d1e1fc; margin: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.external-link {
  display: inline-block;
  margin-top: 10px;
  color: #8bb7ff;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
}
.external-link:hover { color: #ffffff; text-decoration: underline; }

.info-block { margin-bottom: 10px; }
.info-block h4 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem; margin: 0 0 10px 0; color: #8bb7ff;
}
.info-block p { font-size: 0.9rem; line-height: 1.5; margin: 0; color: #eaf2ff; }

.journals-block { flex-grow: 1; display: flex; flex-direction: column; }
.journals-block h3 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-top: 0; margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px;
}
.journal-list { display: flex; flex-direction: column; gap: 15px; overflow-y: auto; padding-right: 5px; }
.journal-item { display: flex; gap: 15px; align-items: center; text-decoration: none; color: inherit; transition: transform 0.2s ease; }
.journal-item:hover { transform: translateX(5px); }
.journal-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }
.journal-item div { flex: 1; }
.journal-item h5 { margin: 0 0 5px 0; font-size: 1rem; color: #fff; }
.journal-item p { margin: 0; font-size: 0.8rem; color: #a0c2ff; }

.journal-list::-webkit-scrollbar { width: 4px; }
.journal-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.journal-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.view-all-container {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.view-all-link {
  color: #eaf2ff;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}
.view-all-link:hover { color: #8bb7ff; }

/* ===================== BUBBLES LAYER ===================== */
#bubbles-container {
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: 10; 
  pointer-events: auto; 
  overflow: hidden;
}
#bubbles-canvas { 
  display: block; 
  width: 100%; 
  height: 100%; 
  pointer-events: auto; 
  cursor: default; 
}

/* ===================== DYNAMIC CONTENT SECTION ===================== */
.subpage-container { padding-top: 40px; }
.content-section { padding: 80px 24px; max-width: 900px; margin: 0 auto; line-height: 1.6; }
.content-section h2 {
  font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #4a90e2; margin-bottom: 20px;
  border-bottom: 2px solid #1e3a5f; padding-bottom: 10px;
}
.bathhouse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.bathhouse-card { background: rgba(30, 58, 95, 0.2); border: 1px solid rgba(74, 144, 226, 0.3); border-radius: 8px; padding: 20px; }
.bathhouse-card h3 { font-family: 'Playfair Display', serif; margin-top: 0; color: #eaf2ff; }

/* ===================== MOBILE RESPONSIVENESS ===================== */
@media (max-width: 900px) {
  header { padding: 15px 20px; flex-direction: column; gap: 15px; position: relative; }
  .logo-title { font-size: 2.2rem; text-align: center; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
  .dropdown-menu { min-width: 140px; }
  .hero { height: auto; min-height: 100vh; flex-direction: column; justify-content: flex-start; }
  #bubbles-container { position: relative; height: 50vh; min-height: 400px; width: 100%; }
  .ui-layer { position: relative; top: 0; bottom: auto; flex-direction: column; padding: 20px; gap: 20px; }
  .panel-column { width: 100%; }
  .journals-block { max-height: 350px; }
}

/* ===================== CONTACT & ABOUT STYLING ===================== */
.about-segment p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #d1e1fc;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-top: 30px;
}

.contact-details .detail-block {
  margin-bottom: 25px;
}

.contact-details h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #8bb7ff;
  margin: 0 0 5px 0;
}

.contact-details p, .contact-details a {
  color: #eaf2ff;
  font-size: 1rem;
  text-decoration: none;
}

.contact-details a:hover {
  color: #ffffff;
  text-decoration: underline;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0c2ff;
}

#contact-form input, #contact-form textarea {
  background: rgba(12, 20, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

#contact-form input:focus, #contact-form textarea:focus {
  outline: none;
  border-color: #8bb7ff;
}

.submit-btn {
  align-self: flex-start;
  padding: 12px 28px;
  background: #4a90e2;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #357abd;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .submit-btn {
    width: 100%;
  }
}

/* ===================== INTRO TEXT & AD STYLING ===================== */
.healing-waters-font {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  color: #8bb7ff;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.text-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d1e1fc;
  margin-top: 0;
  margin-bottom: 15px;
}

/* ===================== ADMIN TAB SYSTEM ===================== */
.admin-tabs {
  display: flex; gap: 10px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px;
  flex-wrap: wrap;
}
.tab-btn {
  background: transparent; border: 1px solid transparent; color: #a0c2ff;
  padding: 10px 20px; cursor: pointer; border-radius: 6px; font-weight: bold;
}
.tab-btn.active {
  background: rgba(74,144,226,0.2); border: 1px solid #4a90e2; color: #fff;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===================== INLINE MEDIA (SHORTCODE OUTPUT) ===================== */
.inline-media-container {
    margin: 15px 0;
    padding: 0;
}

.inline-media-container img {
    border-radius: 4px;
}

.img-standard {
    width: 50%;
    max-width: 400px;
    float: left; 
    margin-right: 20px;
    margin-bottom: 15px;
}

.img-large {
    width: 100%;
    max-width: 800px;
    display: block; 
    margin: 20px auto;
}

.image-title {
    font-size: 0.9em;
    color: #555;
    text-align: right; 
    margin-top: 8px;
    font-style: italic;
}

/* ========================================= */
/* FIX: MOBILE OVERRIDES & TOUCH FIXES       */
/* ========================================= */
@media (max-width: 900px) {
  /* Show the full original picture on mobile without cropping */
  .hero {
    background-size: 100% auto !important; 
    background-position: top center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 50vh !important; 
  }

  /* Unlock scrolling over the canvas */
  #bubbles-canvas, #bubbles-container {
    touch-action: pan-y !important; 
  }
  
  html, body, .home-body, .main-container {
    overflow-y: auto !important;
    height: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Make menu items easier to tap */
  nav ul {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100%;
  }
  
  nav a, .menu-item {
    padding: 15px 25px !important; 
    margin-bottom: 10px !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 1.1rem !important; 
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 8px;
  }
}
