/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Light Theme (Tropical Luxury) */
  --primary-bg: #f4f8f7;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-bg-solid: #ffffff;
  --text-main: #142b24;
  --text-sub: #5c736c;
  --emerald-green: #058f70;
  --emerald-hover: #036b54;
  --emerald-glow: rgba(5, 143, 112, 0.12);
  --turquoise-blue: #1ba0b3;
  --sandy-gold: #cfa14b;
  --sandy-glow: rgba(207, 161, 75, 0.15);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-blur: blur(14px);
  --card-shadow: 0 10px 40px -10px rgba(8, 38, 30, 0.08);
  --inset-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  --navbar-bg: rgba(244, 248, 247, 0.75);
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
}

body.dark-mode {
  /* Dark Theme (Midnight Ocean) */
  --primary-bg: #050d0a;
  --card-bg: rgba(10, 24, 20, 0.72);
  --card-bg-solid: #0d1e19;
  --text-main: #e2eee9;
  --text-sub: #8fa8a1;
  --emerald-green: #00cf9d;
  --emerald-hover: #00a880;
  --emerald-glow: rgba(0, 207, 157, 0.18);
  --turquoise-blue: #00cec9;
  --sandy-gold: #e2b357;
  --sandy-glow: rgba(226, 179, 87, 0.2);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(16px);
  --card-shadow: 0 15px 45px -5px rgba(0, 0, 0, 0.5);
  --inset-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  --navbar-bg: rgba(5, 13, 10, 0.78);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-main);
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

button, select, input, textarea {
  outline: none;
  border: none;
  background: none;
  font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--text-sub);
  border-radius: 10px;
  border: 3px solid var(--primary-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-green);
}

/* ==========================================================================
   UTILITY STYLES
   ========================================================================== */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--border-radius-lg);
}

.glow-btn {
  background: linear-gradient(135deg, var(--emerald-green), var(--turquoise-blue));
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--emerald-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}
.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--emerald-glow), 0 0 10px rgba(255, 255, 255, 0.2);
  filter: brightness(1.05);
}
.glow-btn:active {
  transform: translateY(0);
}

.section-padding {
  padding: 100px 5% 80px 5%;
}

.container-width {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 5%;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo i {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--emerald-green), var(--turquoise-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
  color: var(--text-main);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-green);
  transition: var(--transition-fast);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Dropdown Language Selector Styling */
.lang-selector-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-selector-wrapper select {
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  padding: 6px 30px 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition-fast);
}
.lang-selector-wrapper::after {
  content: '▼';
  font-size: 0.6rem;
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--text-main);
}
.lang-selector-wrapper select:hover {
  border-color: var(--emerald-green);
}

/* Theme Toggle Button styling */
.theme-toggle-btn {
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-main);
}
.theme-toggle-btn:hover {
  border-color: var(--emerald-green);
  transform: rotate(20deg);
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
}
.mobile-nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO / WELCOME SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  height: 95vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(5, 18, 15, 0.72) 30%, rgba(5, 18, 15, 0.35) 70%, rgba(244, 248, 247, 0) 100%);
  z-index: 2;
}
body.dark-mode .hero-overlay {
  background: linear-gradient(to right, rgba(5, 13, 10, 0.85) 30%, rgba(5, 13, 10, 0.5) 70%, rgba(5, 13, 10, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
  color: #fff;
  animation: fadeInUp 0.8s ease;
}
.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-content h2 {
  font-size: 1.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  color: var(--sandy-gold);
  margin-bottom: 25px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.hero-content p {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Secondary Button */
.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Float Widget: Weather Badge in Hero */
.weather-widget-badge {
  position: absolute;
  right: 5%;
  bottom: 8%;
  z-index: 10;
  width: 280px;
  padding: 20px;
  color: var(--text-main);
  animation: fadeInUp 1s ease 0.2s both;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}
.weather-header h3 {
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.weather-header i {
  color: var(--sandy-gold);
}

.weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 15px;
}
.weather-item {
  display: flex;
  flex-direction: column;
}
.weather-item span.label {
  font-size: 0.75rem;
  color: var(--text-sub);
  text-transform: uppercase;
}
.weather-item span.value {
  font-size: 1.25rem;
  font-weight: 700;
}

.weather-flag-status {
  background: var(--inset-shadow);
  border: 1px solid var(--glass-border);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}
.flag-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}
.flag-dot.green { background-color: #2ecc71; box-shadow: 0 0 10px rgba(46, 204, 113, 0.4); }
.flag-dot.yellow { background-color: #f1c40f; box-shadow: 0 0 10px rgba(241, 196, 15, 0.4); }
.flag-dot.red { background-color: #e74c3c; box-shadow: 0 0 10px rgba(231, 76, 60, 0.4); }

.weather-flag-status span {
  font-size: 0.82rem;
  font-weight: 500;
}

.weather-footer {
  font-size: 0.65rem;
  color: var(--text-sub);
  text-align: right;
  display: block;
}

/* ==========================================================================
   GOOGLE BUSINESS FICHA CARD (THE KNOWLEDGE PROFILE)
   ========================================================================== */
.ficha-section {
  background-color: var(--primary-bg);
}

.ficha-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}

/* Ficha Column Info Text */
.ficha-info-text h3 {
  color: var(--emerald-green);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.ficha-info-text h2 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.ficha-info-text p {
  color: var(--text-sub);
  font-size: 1.05rem;
  margin-bottom: 25px;
}

/* The Ficha GBP Card itself */
.gbp-card {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
}

/* GBP Gallery Top Header */
.gbp-hero-gallery {
  height: 220px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  background-color: #000;
}
.gbp-gallery-main {
  height: 100%;
  background: url('images/hero_bavaro.jpg') center/cover no-repeat;
  position: relative;
}
.gbp-gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 100%;
}
.gbp-side-img-1 {
  background: url('images/snorkeling_bavaro.jpg') center/cover no-repeat;
}
.gbp-side-img-2 {
  background: url('images/resort_sunset_bavaro.jpg') center/cover no-repeat;
}

.gbp-card-body {
  padding: 25px;
  background: var(--card-bg-solid);
}

/* Business Title */
.gbp-biz-header {
  margin-bottom: 15px;
}
.gbp-biz-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}
.gbp-biz-cat {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 8px;
  display: block;
}
.gbp-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gbp-rating-score {
  font-weight: 700;
  color: var(--sandy-gold);
  font-size: 1.05rem;
}
.gbp-rating-stars {
  color: var(--sandy-gold);
  font-size: 0.85rem;
  display: flex;
  gap: 2px;
}
.gbp-rating-count {
  font-size: 0.88rem;
  color: var(--text-sub);
}

/* Action Quick Links */
.gbp-actions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 20px;
}
.gbp-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: var(--emerald-green);
  transition: var(--transition-fast);
  padding: 8px 0;
  border-radius: var(--border-radius-sm);
}
.gbp-action-item:hover {
  background: var(--emerald-glow);
  color: var(--emerald-hover);
}
.gbp-action-item i {
  font-size: 1.15rem;
}
.gbp-action-item span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* GBP Tabs System */
.gbp-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 20px;
  gap: 5px;
}
.gbp-tab-btn {
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition-fast);
}
.gbp-tab-btn:hover {
  color: var(--emerald-green);
}
.gbp-tab-btn.active {
  color: var(--emerald-green);
  border-bottom-color: var(--emerald-green);
}

/* Tab Panels */
.gbp-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}
.gbp-tab-content.active {
  display: block;
}

/* GBP Info Tab Content */
.gbp-info-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.gbp-info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  font-size: 0.92rem;
}
.gbp-info-item i {
  font-size: 1rem;
  color: var(--text-sub);
  width: 20px;
  margin-top: 3px;
  text-align: center;
}
.gbp-info-item p {
  color: var(--text-main);
  flex: 1;
}

/* GBP Reviews Tab Content */
.gbp-tab-reviews-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.gbp-review-card {
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background: var(--primary-bg);
  border: 1px solid var(--glass-border);
}
.gbp-rev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.gbp-rev-user {
  font-weight: 600;
  font-size: 0.88rem;
}
.gbp-rev-stars {
  color: var(--sandy-gold);
  font-size: 0.72rem;
}
.gbp-rev-text {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* GBP Photos Tab Content */
.gbp-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gbp-photos-grid img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.gbp-photos-grid img:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* GBP Q&A Tab Content */
.gbp-qa-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gbp-faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}
.gbp-faq-item h4 {
  background: var(--primary-bg);
  padding: 12px;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}
.gbp-faq-item h4::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--text-sub);
}
.gbp-faq-item.active h4::after {
  content: '−';
}
.gbp-faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--card-bg-solid);
}
.gbp-faq-item.active .faq-answer {
  max-height: 200px;
}
.gbp-faq-item .faq-answer p {
  padding: 12px;
  font-size: 0.84rem;
  color: var(--text-sub);
  border-top: 1px solid var(--glass-border);
  line-height: 1.5;
}

/* ==========================================================================
   ULTIMATE TRAVEL GUIDE SECTION
   ========================================================================== */
.guide-section {
  background-color: var(--card-bg-solid);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}
.section-header p {
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.guide-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}
.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(5, 143, 112, 0.08);
  border-color: var(--emerald-green);
}

.guide-card-img {
  height: 200px;
  overflow: hidden;
}
.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.guide-card:hover .guide-card-img img {
  transform: scale(1.05);
}

.guide-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--card-bg);
}
.guide-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}
.guide-card-body p {
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--emerald-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.card-link:hover {
  color: var(--emerald-hover);
}
.card-link i {
  transition: transform 0.2s ease;
}
.card-link:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   INTERACTIVE TRIP PLANNER SECTION
   ========================================================================== */
.planner-section {
  background-color: var(--primary-bg);
}

.planner-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.planner-form-card {
  padding: 40px;
}

.planner-form-group {
  margin-bottom: 25px;
}
.planner-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Select element styling */
.planner-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.planner-select-wrapper select {
  width: 100%;
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  padding: 12px 18px;
  border-radius: var(--border-radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition-fast);
  box-shadow: var(--inset-shadow);
}
.planner-select-wrapper select:focus {
  border-color: var(--emerald-green);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}
.planner-select-wrapper::after {
  content: '▼';
  font-size: 0.7rem;
  position: absolute;
  right: 18px;
  pointer-events: none;
  color: var(--text-sub);
}

.planner-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  justify-content: center;
  margin-top: 10px;
}

/* Planner Result Output Card styling */
.planner-result-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition-smooth);
}
.planner-result-card.hidden {
  display: none;
}

.result-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 15px;
}
.result-header-row h3 {
  font-size: 1.45rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.print-btn {
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px 15px;
  border-radius: var(--border-radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.print-btn:hover {
  border-color: var(--emerald-green);
  color: var(--emerald-green);
}

#itineraryDetails ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#itineraryDetails li {
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--card-bg-solid);
  padding: 15px 20px;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--emerald-green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* ==========================================================================
   INTERACTIVE MAP SECTION
   ========================================================================== */
.map-section {
  background-color: var(--card-bg-solid);
}

.map-wrapper {
  display: grid;
  grid-template-columns: 3.5fr 1fr;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
}

#map {
  height: 480px;
  z-index: 1;
}

/* Map Sidebar Legend */
.map-sidebar {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  padding: 30px 20px;
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.map-sidebar h3 {
  font-size: 1.15rem;
  margin-bottom: 5px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}
.map-legend-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 500;
}
.legend-color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
}
.legend-color-dot.beach { background: var(--emerald-green); }
.legend-color-dot.reef { background: var(--turquoise-blue); }
.legend-color-dot.market { background: var(--sandy-gold); }
.legend-color-dot.hotel { background: #34495e; }

/* Custom Leaflet Map Marker Styling */
.map-marker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.marker-pin-inner {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border: 2px solid #fff;
  transition: transform 0.2s ease;
}
.marker-pin-inner i {
  transform: rotate(45deg);
}

.marker-beach .marker-pin-inner { background: var(--emerald-green); }
.marker-reef .marker-pin-inner { background: var(--turquoise-blue); }
.marker-market .marker-pin-inner { background: var(--sandy-gold); }
.marker-hotel .marker-pin-inner { background: #34495e; }

.map-marker-icon:hover .marker-pin-inner {
  transform: scale(1.15) rotate(-45deg);
}

/* Map Popups styling */
.map-popup-card {
  padding: 5px;
}
.map-popup-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: 'Outfit', sans-serif;
  color: #111;
}
.map-popup-card p {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.4;
}
.popup-dir-btn {
  background: var(--emerald-green);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.popup-dir-btn:hover {
  background: var(--emerald-hover);
}

/* Leaflet dark theme adjustments for popup */
body.dark-mode .leaflet-popup-content-wrapper {
  background: #111e1a;
  color: #e2eee9;
  border: 1px solid rgba(255,255,255,0.1);
}
body.dark-mode .leaflet-popup-tip {
  background: #111e1a;
}
body.dark-mode .map-popup-card h3 {
  color: #fff;
}
body.dark-mode .map-popup-card p {
  color: #a3c2ba;
}

/* ==========================================================================
   REVIEWS & COMMENT BOARD SECTION
   ========================================================================== */
.reviews-section {
  background-color: var(--primary-bg);
}

.reviews-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

/* Form Styles */
.review-form-card {
  padding: 35px;
}
.review-form-card h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  color: var(--text-main);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  padding: 12px 15px;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  color: var(--text-main);
  box-shadow: var(--inset-shadow);
  transition: var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--emerald-green);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}

.review-board-card {
  padding: 40px;
  max-height: 520px;
  overflow-y: auto;
}
.review-board-card h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

.reviews-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-item-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.01);
  animation: fadeIn 0.4s ease;
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--emerald-green), var(--turquoise-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-right: 12px;
}
.user-info {
  flex: 1;
}
.user-info h4 {
  font-size: 0.92rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  margin-bottom: 2px;
}
.review-date {
  font-size: 0.72rem;
  color: var(--text-sub);
}
.review-stars {
  color: var(--sandy-gold);
  font-size: 0.75rem;
  display: flex;
  gap: 2px;
}
.review-text {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.success-message {
  margin-top: 15px;
  padding: 10px;
  background-color: var(--emerald-glow);
  border: 1px solid var(--emerald-green);
  color: var(--emerald-green);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius-sm);
  animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: #040c09;
  color: #8fa8a1;
  padding: 70px 5% 40px 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 15px;
}
.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
}
.footer-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition-fast);
}
.footer-social-icons a:hover {
  background: var(--emerald-green);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .ficha-grid-container {
    grid-template-columns: 1fr;
  }
  .planner-container {
    grid-template-columns: 1fr;
  }
  .reviews-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 5% 50px 5%;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--card-bg-solid);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 1050;
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  .nav-links.active {
    right: 0;
  }
  
  /* Mobile Menu Icon Active Animation */
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-section {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    height: auto;
    min-height: 100vh;
  }
  .hero-content {
    max-width: 100%;
    margin-bottom: 50px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .weather-widget-badge {
    position: relative;
    right: 0;
    bottom: 0;
    margin: 0 auto 30px auto;
    width: 100%;
    max-width: 360px;
  }
  
  .map-wrapper {
    grid-template-columns: 1fr;
  }
  .map-sidebar {
    border-left: none;
    border-top: 1px solid var(--glass-border);
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ==========================================================================
   PRINT STYLES (Clean PDF exports for Itineraries)
   ========================================================================== */
@media print {
  /* Hide all elements except the itinerary results */
  body * {
    visibility: hidden;
  }
  #itineraryResult, #itineraryResult * {
    visibility: visible;
  }
  #itineraryResult {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
  }
  .print-btn {
    display: none;
  }
  /* Force dark text for print */
  #itineraryDetails li {
    border-left: 4px solid #000 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
}

/* ==========================================================================
   MODALS SYSTEM (Guide posts, About Us, Privacy Policy)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(4, 12, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  padding: 40px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPop 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.modal-content.compact-modal {
  max-width: 600px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-sub);
  cursor: pointer;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
  z-index: 10;
}
.modal-close-btn:hover {
  background-color: var(--emerald-glow);
  color: var(--emerald-green);
  transform: rotate(90deg);
}

.modal-body-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}

.modal-image-container {
  height: 100%;
  max-height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@keyframes modalPop {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Google Maps iframe customization for Dark Mode */
body.dark-mode #googleMapIframe {
  filter: invert(90%) hue-rotate(180deg) contrast(1.1);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .modal-body-wrapper {
    grid-template-columns: 1fr;
  }
  .modal-image-container {
    height: 200px;
    margin-bottom: 20px;
  }
  .modal-content {
    padding: 30px 20px 20px 20px;
  }
}

