/* =========================================================
   MOTA STYLESHEET

    1. Theme (colors and fonts live here and nowhere else)
    2. Base
    3. Buttons
    4. Navigation
    5. Slideshow pictures (used by the hero and the story photo)
    6. Hero
    7. Homepage sections
    8. Layout and panels
    9. Catalog (chips, sorting, service cards)
   10. Cart
   11. Forms
   12. Details dialog
   13. Toast
   14. Loader
   15. Footer
   16. Butterfly assistant
   17. Customer account window
   18. Reduced motion (always last)
   ========================================================= */

/* =========================================================
   1. THEME
   Change colors and fonts here; everything below uses these variables.
   ========================================================= */
[data-theme="coastal"] {
  --sky-top: #6cc6ee;
  --sky-bottom: #dff4fc;
  --sea: #0369a1;
  --sea-dark: #075985;
  --sea-light: #9bdcf7;
  --sand: #f3e2bd;
  --bg: #fbf5e6;
  --accent: #ff7a59;
  --card: #ffffff;
  --text: #0b3954;
  --muted: #4b6475;
  --border: #dccfae;
  --error: #b91c1c;
  --success: #15803d;
  --ring: rgba(3, 105, 161, .28);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Hero: darker on the left so the white text stays readable over any photo */
  --hero-overlay: linear-gradient(90deg, rgba(5, 37, 47, .72), rgba(5, 37, 47, .22));
  /* Sits behind the photos; only visible if none of them loads */
  --hero-fallback: linear-gradient(160deg, var(--sea-dark), var(--sky-top));
}

/* =========================================================
   2. BASE
   ========================================================= */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; }

/* =========================================================
   3. BUTTONS
   One base style, then variations.
   ========================================================= */
.btn {
  display: inline-block; padding: 12px 18px; font: inherit; font-weight: 700;
  border: 2px solid var(--sea); border-radius: 10px; cursor: pointer; text-align: center;
  text-decoration: none; transition: background .15s, transform .05s;
}
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--sea-dark); border-color: var(--sea-dark); }
.btn-ghost { background: #fff; color: var(--sea-dark); }
.btn-ghost:hover:not(:disabled) { background: #e8f6fd; }
.btn-small { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-block { display: block; width: 100%; }
.btn:active:not(:disabled) { transform: scale(.99); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-danger { color: var(--error); border-color: transparent; background: none; }
.btn-danger:hover { background: #fee2e2; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }

/* =========================================================
   4. NAVIGATION
   ========================================================= */
.site-nav { position:relative; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px clamp(16px,4vw,56px); background:#fff; border-bottom:1px solid rgba(11,57,84,.08); }
.nav-brand { font-weight:900; letter-spacing:.06em; color:var(--sea-dark); text-decoration:none; font-size:1.15rem; }
.nav-brand small { display:block; font-size:.65rem; letter-spacing:.12em; font-weight:600; color:var(--muted); }
.nav-links { display:flex; align-items:center; gap:clamp(10px,2vw,24px); flex-wrap:wrap; justify-content:center; }
.nav-links a { color:var(--text); text-decoration:none; font-size:.92rem; font-weight:650; }
.nav-links a:hover { color:var(--sea); }
.nav-cart { border:1px solid var(--border); border-radius:999px; padding:8px 13px; color:var(--sea-dark); background:#fff; text-decoration:none; font-weight:700; white-space:nowrap; }
button.nav-cart { font: inherit; cursor: pointer; }   /* the Login / Register button */
@media (max-width: 760px) {
  .site-nav { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; justify-content: flex-start; }
}

/* =========================================================
   5. SLIDESHOW PICTURES
   Behavior lives in js/slideshow.js. Each picture is <img class="slide">; the visible one also has "active".
   ========================================================= */
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }

/* =========================================================
   6. HERO
   Photos are <img class="slide"> tags inside .hero-slides in index.html.
   Change the headline size in ".hero h1" and the darkness in --hero-overlay.
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 570px; display: flex; align-items: center; text-align: left;
  padding: 90px clamp(18px, 6vw, 84px) 150px;
  background: var(--hero-fallback);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }   /* dark layer over the photos */
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0; color: #fff; }

.brand-badge {
  display: inline-block; margin-bottom: 10px; padding: 4px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(8px);
  color: #fff; font-weight: 800; letter-spacing: 3px;
}
.hero-tagline { font-family: 'Fredoka', sans-serif; font-weight: 600; letter-spacing: 2px; border-radius: 30px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.035em; margin: 12px 0 18px; }
.hero p { max-width: 620px; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; margin: 0 0 28px; }
.hero .btn-primary { background: #f4b35e; border-color: #f4b35e; color: #163d45; }
.hero .btn-primary:hover:not(:disabled) { background: #ffd18c; border-color: #ffd18c; }

/* Decoration: sun, clouds and the wave edge. Delete the .sun/.cloud tags in index.html if they clash with a photo. */
.sun {
  position: absolute; top: 30px; left: 8%; width: 84px; height: 84px; border-radius: 50%;
  background: #ffe27a; opacity: .4;
  box-shadow: 0 0 0 16px rgba(255, 226, 122, .35), 0 0 0 36px rgba(255, 226, 122, .18);
}
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .4; animation: drift 40s linear infinite alternate; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.c1 { width: 120px; height: 34px; top: 80px; right: 10%; }
.c1::before { width: 52px; height: 52px; top: -26px; left: 16px; }
.c1::after { width: 38px; height: 38px; top: -18px; left: 66px; }
.c2 { width: 90px; height: 26px; top: 44px; right: 36%; animation-duration: 55s; }
.c2::before { width: 38px; height: 38px; top: -20px; left: 14px; }
.c2::after { width: 28px; height: 28px; top: -12px; left: 48px; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: 100px; display: block; }

@media (max-width: 760px) {
  .hero { min-height: 500px; padding: 75px 20px 130px; }
}
@media (max-width: 600px) {
  .sun { width: 56px; height: 56px; top: 18px; left: 6%; box-shadow: 0 0 0 10px rgba(255, 226, 122, .35), 0 0 0 22px rgba(255, 226, 122, .18); }
}

/* =========================================================
   7. HOMEPAGE SECTIONS
   Story, destinations, experiences and the planning banner.
   ========================================================= */
.home-content { max-width:1160px; margin:0 auto; padding:44px 18px 10px; }
.intro-story { padding:24px 8px 42px; display:grid; grid-template-columns:1.1fr .9fr; gap:32px; align-items:center; }
.eyebrow { text-transform:uppercase; letter-spacing:.14em; font-weight:800; font-size:.76rem; color: #1f2937; margin:0 0 10px; }
.story-title { font-size:clamp(1.8rem,4vw,3.1rem); line-height:1.12; margin:0 0 14px; letter-spacing:-.025em; }
.story-copy { color:var(--muted); font-size:1.02rem; line-height:1.8; margin:0; }
.story-photo {
  position: relative; overflow: hidden; height: 350px; border-radius: 24px;
  background: url('https://images.unsplash.com/photo-1510414842594-a61c69b5ae57?auto=format&fit=crop&w=1200&q=85') center/cover;   /* shows only if no slide loads */
  box-shadow: 0 14px 35px rgba(11, 57, 84, .15);
}
.home-section { padding:30px 0 46px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:20px; }
.section-head h2 { font-size:clamp(1.5rem,3vw,2.35rem); margin:0; letter-spacing:-.025em; }
.section-head p { color:var(--muted); margin:5px 0 0; }
.destination-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.destination-card { min-height:280px; border-radius:20px; overflow:hidden; position:relative; color:#fff; text-decoration:none; background-size:cover; background-position:center; display:flex; align-items:end; box-shadow:0 12px 26px rgba(11,57,84,.14); transition:transform .2s ease; }
.destination-card:hover { transform:translateY(-4px); }
.destination-card::after { content:''; position:absolute; inset:0; background:linear-gradient(0deg,rgba(4,31,40,.82),rgba(4,31,40,0) 72%); }
.destination-card > div { position:relative; z-index:1; padding:22px; }
.destination-card h3 { font-size:1.55rem; margin:0 0 4px; }
.destination-card p { margin:0; opacity:.92; }
.watamu-card { background-image:url('https://images.unsplash.com/photo-1507520193034-3f6e5b3a4f3b?auto=format&fit=crop&w=1000&q=85'); }
.malindi-card { background-image:url('https://images.unsplash.com/photo-1509233725247-49e657c54213?auto=format&fit=crop&w=1000&q=85'); }
.kilifi-card { background-image:url('https://images.unsplash.com/photo-1519046904884-53103b34b206?auto=format&fit=crop&w=1000&q=85'); }
.experience-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.experience-tile { background:#fff; border:1px solid var(--border); border-radius:18px; overflow:hidden; }
.experience-tile img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.experience-tile div { padding:16px; }
.experience-tile h3 { margin:0 0 6px; }
.experience-tile p { margin:0; color:var(--muted); font-size:.92rem; }
.planning-banner { border-radius:24px; padding:clamp(24px,5vw,44px); background:#145f63; color:#fff; display:flex; justify-content:space-between; align-items:center; gap:24px; }
.planning-banner h2 { margin:0 0 8px; font-size:clamp(1.6rem,3.5vw,2.5rem); }
.planning-banner p { margin:0; max-width:650px; color:rgba(255,255,255,.85); line-height:1.7; }
.planning-banner .eyebrow { color: #f7c477; }
.planning-banner .btn { flex:none; background:#f4b35e; border-color:#f4b35e; color:#153e45; }
.catalog-intro { border-radius:18px; background:#e8f3ed; padding:18px 20px; margin-bottom:18px; }
.catalog-intro h2 { margin:0 0 4px; }
.catalog-intro p { margin:0; color:var(--muted); }

@media (max-width: 760px) {
  .intro-story { grid-template-columns: 1fr; }
  .story-photo { height: 250px; }
  .destination-grid, .experience-grid { grid-template-columns: 1fr 1fr; }
  .destination-card { min-height: 230px; }
  .planning-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 500px) {
  .destination-grid, .experience-grid { grid-template-columns: 1fr; }
  .destination-card { min-height: 260px; }
  .section-head { display: block; }
}

/* =========================================================
   8. LAYOUT AND PANELS
   ========================================================= */
.page { max-width: 1040px; margin: -48px auto 40px; padding: 0 16px; position: relative; }
.panel {
  background: var(--card); border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(11, 57, 84, .12); border: 1px solid var(--border);
}
.panel h2 { margin: 0 0 4px; font-size: 1.4rem; }
.subtitle { margin: 0 0 20px; color: var(--muted); font-size: .95rem; }
.muted { color: var(--muted); font-size: .85rem; }
.block { display: block; }

/* =========================================================
   9. CATALOG
   ========================================================= */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* On phones the chips sit in one swipeable row instead of stacking */
@media (max-width: 600px) {
  /* flex-wrap must be "nowrap" here: a wrapping column sizes itself to its widest
     item (the whole chip row) instead of the screen, which made the page wider than a phone */
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .chips { flex-wrap: nowrap; min-width: 0; overflow-x: auto; padding-bottom: 6px; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
  .chip { white-space: nowrap; flex: none; }
}
.chip {
  padding: 8px 14px; font: inherit; font-weight: 600; font-size: .88rem;
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  border-radius: 999px; cursor: pointer;
}
.chip:hover { background: #e8f6fd; }
.chip[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.sort label { margin: 0; }
.sort select { width: auto; padding: 8px 10px; }

/* ===== Service cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--sand); }
.card-body { padding: 14px 16px; flex: 1; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--sea); }
.card h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.desc { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.price { margin: 0; font-weight: 700; color: var(--sea-dark); }
.card .btn { border-radius: 0; border-width: 0; border-top: 1.5px solid var(--border); }
.empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 20px; }

/* =========================================================
   10. CART
   ========================================================= */
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-row {
  display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.cart-info { display: flex; flex-direction: column; min-width: 0; }
.line { font-weight: 700; min-width: 90px; text-align: right; }
.cart-actions { display: flex; gap: 6px; }
.cart-total { display: flex; justify-content: space-between; padding-top: 14px; font-size: 1.1rem; font-weight: 700; }
.empty-cart { color: var(--muted); text-align: center; padding: 20px 0; margin: 0; }
@media (max-width: 600px) {
  .cart-row { grid-template-columns: 64px 1fr; }
  .line { text-align: left; }
  .line, .cart-actions { grid-column: 2; }
}

/* =========================================================
   11. FORMS
   ========================================================= */
.form-panel { max-width: 640px; margin-left: auto; margin-right: auto; }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], textarea, select {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 8px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--ring); }
input.invalid, textarea.invalid { border-color: var(--error); }
textarea { resize: vertical; min-height: 90px; }
.error { display: block; min-height: 1.1em; margin-top: 4px; color: var(--error); font-size: .85rem; }
.counter { text-align: right; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.success {
  display: none; margin-top: 16px; padding: 14px; background: #ecfdf5;
  border: 1px solid #a7f3d0; color: var(--success); border-radius: 8px; text-align: center; font-weight: 600;
}
.note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* =========================================================
   12. DETAILS DIALOG
   ========================================================= */
dialog {
  border: 0; border-radius: var(--radius); padding: 0; overflow: auto;
  width: calc(100% - 24px); max-width: 680px; max-height: calc(100vh - 24px);
  color: var(--text); background: var(--card); box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
dialog::backdrop { background: rgba(7, 40, 60, .55); }
.dlg-head { position: relative; }
.dlg-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--sand); }
.dlg-close {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: #fff; color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.dlg-content { padding: 18px 20px 22px; }
.dlg-content h2 { margin: 2px 0 6px; }
fieldset.group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; } /* min-width fixes rows spilling out on phones */
fieldset.group legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 400;
  border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--sea); background: #e8f6fd; }
.choice input { width: 18px; height: 18px; flex: none; }
.choice-img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: none; background: var(--sand); }
.choice-text { flex: 1; min-width: 0; }
.choice-price { font-weight: 700; color: var(--sea-dark); text-align: right; font-size: .9rem; }
@media (max-width: 520px) {
  .choice-img { width: 40px; height: 40px; }
  .dlg-content { padding: 16px 14px 20px; }
}
.choice.unavailable { opacity: .55; cursor: not-allowed; }
.breakdown { background: #eef8fd; border: 1px solid #cfe9f6; border-radius: 10px; padding: 12px 14px; margin: 6px 0 16px; }
.breakdown ul { list-style: none; margin: 0; padding: 0; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: .92rem; }
.breakdown .total { border-top: 1px solid #cfe9f6; margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 1.05rem; }
.dlg-actions { display: flex; gap: 10px; }
.dlg-actions .btn { flex: 1; }

/* =========================================================
   13. TOAST
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--sea-dark); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: opacity .2s, transform .2s; z-index: 900;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   14. LOADER
   The beach animation shown while the page loads and while a booking is sent.
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 70%, var(--sand) 100%);
  transition: opacity .35s;
}
.loader.leaving { opacity: 0; }
.loader-scene { width: 220px; text-align: center; }
.boat { width: 120px; height: 100px; animation: bob 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.loader-sea { width: 220px; height: 34px; overflow: hidden; margin-top: -14px; }
.loader-waves { width: 440px; height: 34px; display: block; animation: slide 3s linear infinite; }
.loader-icons { font-size: 2rem; display: flex; justify-content: center; gap: 14px; margin-top: 10px; }
.loader-icons span { animation: hop 1.2s ease-in-out infinite; }
.loader-icons span:nth-child(2) { animation-delay: .2s; }
.loader-icons span:nth-child(3) { animation-delay: .4s; }
.loader-msg { margin: 14px 0 0; font-weight: 700; color: var(--text); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(8px) rotate(4deg); } }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =========================================================
   15. FOOTER
   ========================================================= */
.contact-footer { background:#123f49; color:#fff; padding:32px 18px; }
.contact-footer-inner { max-width:1160px; margin:auto; display:flex; justify-content:space-between; align-items:flex-start; gap:24px; flex-wrap:wrap; }
.contact-footer p { color:rgba(255,255,255,.78); margin:6px 0; }
.contact-footer a { color:#ffe0a7; }
.contact-footer .placeholder { font-style:italic; color:#ffe0a7; }

/* =========================================================
   16. BUTTERFLY ASSISTANT
   ========================================================= */
#mota-butterfly {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: #fff7df;
  box-shadow: 0 5px 22px rgba(11, 57, 84, .2);
  cursor: pointer;
  font-size: 38px;
  animation: mota-fly 4s ease-in-out infinite;
  transition: transform .2s;
}

#mota-butterfly:hover {
  transform: scale(1.12);
}

@keyframes mota-fly {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(-12px, -15px) rotate(8deg); }
  50% { transform: translate(-4px, -25px) rotate(-5deg); }
  75% { transform: translate(10px, -10px) rotate(9deg); }
}

/* Chat window */
#mota-chat {
  position: fixed;
  right: 25px;
  bottom: 115px;
  z-index: 1001;
  width: min(360px, calc(100vw - 30px));
  height: 460px;
  max-height: calc(100vh - 145px);
  background: #fffdf7;
  border: 1px solid #dccfae;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(11, 57, 84, .2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#mota-chat.open {
  display: flex;
}

.mota-chat-header {
  background: #e5f5f4;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mota-chat-header h3 {
  margin: 0;
  color: #075985;
  font-size: 1rem;
}

#mota-chat-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #075985;
}

.mota-chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.mota-message {
  padding: 11px 13px;
  margin-bottom: 12px;
  border-radius: 14px;
  max-width: 90%;
  font-size: .92rem;
  line-height: 1.5;
}

.mota-message.bot {
  background: #eaf5ef;
  color: #164e48;
  margin-right: auto;
}

.mota-message.user {
  background: #dff1fc;
  color: #0b3954;
  margin-left: auto;
}

/* Life-cycle animation area */
#mota-life-cycle {
  text-align: center;
  min-height: 100px;
  padding: 10px;
  display: none;
}

#mota-life-cycle.active {
  display: block;
}

#mota-creature {
  font-size: 42px;
  display: inline-block;
  animation: mota-life-move 1s ease-in-out infinite;
}

#mota-stage {
  font-size: .8rem;
  color: #4b6475;
  margin-top: 5px;
}

@keyframes mota-life-move {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.08); }
}

/* Message input */
.mota-chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #dccfae;
  background: #fff;
}

#mota-question {
  min-width: 0;
  flex: 1;
  border: 1px solid #dccfae;
  border-radius: 20px;
  padding: 10px 13px;
  font: inherit;
}

#mota-send {
  border: 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: #0369a1;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

#mota-send:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  #mota-chat {
    right: 12px;
    bottom: 100px;
  }

  #mota-butterfly {
    right: 18px;
    bottom: 18px;
  }
}

/* =========================================================
   17. CUSTOMER ACCOUNT WINDOW
   ========================================================= */
.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(12, 35, 39, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.account-overlay.active {
  display: flex;
}

.account-panel {
  background: #fffdf6;
  color: #234448;
  width: 100%;
  max-width: 480px;
  padding: 30px;
  border-radius: 22px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.account-panel h2 {
  margin-top: 0;
  color: #087f7b;
}

.account-panel p {
  line-height: 1.6;
  color: #607477;
}

.account-panel input {
  width: 100%;
  padding: 13px;
  margin: 8px 0 15px;
  border: 1px solid #cbdad5;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}

.account-panel label {
  font-weight: 600;
  font-size: 14px;
}

.account-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 30px;
  background: #078d88;
  color: white;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.account-btn:hover {
  background: #066d69;
}

.account-close {
  position: absolute;
  top: 15px;
  right: 18px;
  border: none;
  background: none;
  font-size: 25px;
  cursor: pointer;
  color: #456;
}

.account-links {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
}

.account-links button {
  border: none;
  background: none;
  color: #078d88;
  cursor: pointer;
  font-weight: 700;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.account-tabs button {
  padding: 9px 14px;
  border: 1px solid #cbdad5;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
}

.account-tabs button.active {
  background: #078d88;
  color: white;
}

.account-section {
  display: none;
}

.account-section.active {
  display: block;
}

.account-note {
  background: #eaf5ef;
  border-radius: 12px;
  padding: 14px;
  margin-top: 15px;
  font-size: 14px;
}

.account-guest-note {
  background: #fff3df;
  padding: 15px;
  border-radius: 12px;
  margin-top: 15px;
  font-size: 14px;
}

.account-card {
  background: white;
  border: 1px solid #e1e9e5;
  border-radius: 13px;
  padding: 15px;
  margin: 12px 0;
}

.account-card h3 {
  margin: 0 0 8px;
}

@media(max-width: 550px) {
  .account-panel {
    padding: 23px 18px;
  }
}
.account-card .quote-line { font-weight: 700; color: #087f7b; }   /* the price we quoted */

/* Reviews: stars on cards, "What guests say", and the My reviews form */
.stars { color: #f5a623; letter-spacing: 2px; }
.card-rating { margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.guest-reviews { margin-top: 18px; padding-top: 14px; border-top: 1.5px solid var(--border); }
.guest-reviews h3 { margin: 0 0 6px; }
.guest-review { margin: 10px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 10px; }
.guest-review p { margin: 4px 0 0; overflow-wrap: anywhere; }
.review-card p { overflow-wrap: anywhere; }
.review-form textarea { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 10px; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; }
.review-msg { color: var(--error); min-height: 1.2em; margin: 4px 0; }
.review-status { font-weight: 700; }
.review-approved { color: var(--success); }
.review-rejected { color: var(--error); }
.star-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rating label { font-size: 2rem; line-height: 1; padding: 0 3px; color: #cdd6da; cursor: pointer; }
.star-rating label:hover, .star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #f5a623; }
.star-rating input:focus-visible + label { outline: 2px solid var(--sea); border-radius: 6px; }

/* =========================================================
   18. REDUCED MOTION
   For visitors who ask their device for less movement. Keep this last.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .boat, .loader-waves, .loader-icons span, #mota-butterfly, #mota-creature { animation: none; }
  .loader, .toast, .slide, .destination-card { transition: none; }
}
