:root {
  --primary: #14708c;
  --primary-dark: #0d4f63;
  --accent: #ff7a3d;
  --whatsapp: #25d366;
  --bg: #f3f8fa;
  --card-bg: #ffffff;
  --text: #17323b;
  --muted: #5c7a83;
  --border: rgba(20, 60, 70, 0.1);
}

body.dark {
  --bg: #0f1a1e;
  --card-bg: #182a30;
  --text: #eaf2f4;
  --muted: #9fb7bd;
  --border: rgba(255, 255, 255, 0.08);
  --primary-dark: #0a3542;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

a { color: inherit; }

/* page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-circle {
  position: relative;
  width: 76px;
  height: 76px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--accent);
  animation: loaderSpin 0.9s linear infinite;
}

.loader-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  animation: loaderPulse 1.4s ease-in-out infinite;
}

.loader-text {
  color: #fff;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 13px;
  opacity: 0.9;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-ring, .loader-emoji { animation: none; }
}

header.hero {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 14px 16px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: heroFadeIn 0.7s ease both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wave-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 200%;
  height: 100%;
  animation: waveMove 16s linear infinite;
}

.wave2 {
  animation-duration: 10s;
  animation-direction: reverse;
  opacity: 0.75;
}

@keyframes waveMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  header.hero, .wave { animation: none; }
}

.top-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

#langSelect {
  border-radius: 999px;
  border: none;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  cursor: pointer;
}

.theme-toggle {
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

header.hero .logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

header.hero .logo-row span.emoji {
  font-size: 28px;
}

header.hero h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 1px;
}

header.hero p.tagline {
  margin: 6px 0 0;
  font-size: 14px;
  opacity: 0.92;
  min-height: 18px;
}

.main-nav {
  margin-top: 14px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-call {
  background: var(--accent);
  color: #fff;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-detail {
  background: var(--primary);
  color: #fff;
  width: 100%;
  justify-content: center;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 14px 60px;
}

.section-title {
  font-size: 19px;
  color: var(--primary-dark);
  margin: 30px 0 14px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}

body.dark .section-title {
  color: #7fd4ee;
}

.section-more {
  margin: -6px 0 10px;
  padding-left: 10px;
}

.section-more a {
  color: var(--primary);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(20, 60, 70, 0.12);
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: cardRise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--card-delay, 0s);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(20, 60, 70, 0.18);
}

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

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; opacity: 1; }
}

.card img {
  width: 100%;
  aspect-ratio: 900 / 1457;
  object-fit: cover;
  display: block;
}

.card img.service-img {
  aspect-ratio: 1 / 1;
}

.blog-cover-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.card-img-wrap {
  position: relative;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  letter-spacing: 0.2px;
}

.card-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--text);
}

.card-body .meta {
  font-size: 12.5px;
  color: var(--muted);
}

.card-body .price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 2px;
}

body.dark .card-body .price {
  color: #7fd4ee;
}

.blog-excerpt {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.card-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.card-actions:last-child {
  margin-top: auto;
  padding-top: 4px;
}

.card-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 9px 10px;
  font-size: 13px;
}

footer {
  text-align: center;
  padding: 34px 14px 26px;
  color: var(--muted);
  font-size: 13px;
  background: var(--card-bg);
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

body.dark footer a {
  color: #7fd4ee;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
  padding-bottom: 26px;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text);
}

.footer-brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-about {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.footer-line {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.copyright {
  margin: 10px 0 0;
  font-size: 11.5px;
  opacity: 0.8;
}

.header-logo {
  height: 42px;
  width: auto;
}

/* detail pages (tour / service / blog post) reuse the old modal styles */
.detail-page {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(20, 60, 70, 0.12);
  margin-top: 10px;
}

.modal-img {
  width: 100%;
  display: block;
}

.modal-content {
  padding: 16px 20px 22px;
}

.modal-content h1 {
  margin: 0 0 10px;
  font-size: 21px;
  color: var(--primary-dark);
}

body.dark .modal-content h1 {
  color: #7fd4ee;
}

.modal-row {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.modal-highlights {
  margin: 6px 0 16px;
  padding-left: 20px;
}

.modal-highlights li {
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 6px;
  color: var(--text);
}

.modal-note {
  background: rgba(255, 122, 61, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 4px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 100px;
}

.btn-share {
  background: var(--primary-dark);
  color: #fff;
}

body.dark .btn-share {
  background: #24414a;
  color: #eaf2f4;
}

.blog-content {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text);
  margin-top: 12px;
}

.blog-content img {
  max-width: 100%;
  border-radius: 10px;
}

/* ---------------- Reviews & comments ---------------- */
.reviews-section {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 18px 20px 22px;
  margin-top: 20px;
  box-shadow: 0 3px 12px rgba(20, 60, 70, 0.1);
}

.reviews-section .section-title {
  margin-top: 0;
}

.review-item {
  border-top: 0.5px solid var(--border);
  padding: 12px 0;
}

.review-author {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 3px;
}

.review-content {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.muted-text {
  font-size: 13px;
  color: var(--muted);
}

.form-success {
  background: rgba(37, 211, 102, 0.12);
  color: #1a8f4c;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}

body.dark .form-success {
  color: #6fe3a0;
}

.inline-form {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inline-form-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.inline-form input,
.inline-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.star-select {
  font-size: 22px;
  color: var(--border);
  cursor: pointer;
  user-select: none;
}

.star-select span {
  transition: color 0.15s ease;
}

.star-select span.active {
  color: #ff9d00;
}

/* ---------------- Static pages (about) ---------------- */
.static-page {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 18px 20px 22px;
  box-shadow: 0 3px 12px rgba(20, 60, 70, 0.1);
  margin-top: 10px;
}

.static-page p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.about-points {
  padding-left: 20px;
}

.about-points li {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text);
}

.welcome-panel {
  max-width: 420px;
  text-align: center;
  padding: 28px 22px 26px;
}

.welcome-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.welcome-header .emoji {
  font-size: 30px;
}

.welcome-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

body.dark .welcome-header h2 {
  color: #7fd4ee;
}

.welcome-sub {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 20px;
}

.welcome-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.welcome-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  animation: cardRise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--card-delay, 0s);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.welcome-lang-btn:hover,
.welcome-lang-btn:active {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.welcome-lang-btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 25, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0s linear 0s;
}

.modal-panel {
  background: var(--card-bg);
  color: var(--text);
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(26px) scale(0.97);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.lightbox.open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .modal-panel { transition: none; }
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  box-shadow: 0 -3px 14px rgba(0,0,0,0.12);
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  z-index: 500;
}

.sticky-cta .btn {
  flex: 1;
  justify-content: center;
  padding: 9px 8px;
  font-size: 12.5px;
}

@media (min-width: 720px) {
  .sticky-cta { display: none; }
}

body { padding-bottom: 76px; }
@media (min-width: 720px) { body { padding-bottom: 0; } }

/* ---------------- Booking form ---------------- */
.booking-section {
  margin-top: 34px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 22px 20px 26px;
  box-shadow: 0 3px 12px rgba(20, 60, 70, 0.1);
}

.booking-section .section-title {
  margin-top: 0;
}

.booking-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin: -6px 0 16px;
  padding-left: 10px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row textarea {
  resize: vertical;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-submit {
  justify-content: center;
  margin-top: 4px;
  font-size: 15px;
  padding: 12px 18px;
}

/* ---------------- Map ---------------- */
.map-section {
  margin-top: 34px;
}

.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(20, 60, 70, 0.12);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 10px 0 0 10px;
}

/* ---------------- FAQ ---------------- */
.faq-section {
  margin-top: 34px;
  margin-bottom: 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20, 60, 70, 0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer, .faq-icon { transition: none; }
}

/* ---------------- Footer: reviews & social ---------------- */
.review-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn-review {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  text-decoration: none;
}

@media (max-width: 720px) {
  .review-links, .social-links { justify-content: center; }
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(12px);
  background: var(--primary-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2500;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 720px) {
  .toast { bottom: 24px; }
}
