/* ============================================================
   AMULYTO HOLIDAYS — shared site stylesheet
   Used by all pages (stays, cruises, yachts, scuba, detail, etc.)
   Home page has its own inline styles.
   ============================================================ */

:root {
  --cream:        #f5f0e6;
  --cream-soft:   #faf6ed;
  --cream-deep:   #ede5d2;
  --paper:        #fffcf6;
  --espresso:     #1a1410;
  --espresso-2:   #2c2520;
  --taupe:        #6b6157;
  --taupe-soft:   #9b9189;
  --gold:         #b8954a;
  --gold-light:   #d4b46a;
  --gold-deep:    #8a6e34;
  --hairline:     #e2d8c4;
  --shadow-lux:   0 30px 80px -30px rgba(26, 20, 16, 0.35);
  --serif: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--espresso);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }

.container        { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--espresso);
}
.h-display em { font-style: italic; font-weight: 400; color: var(--gold-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--espresso);
  background: transparent;
  border: 1px solid var(--espresso);
  transition: all .35s cubic-bezier(.2,.7,.3,1);
  cursor: pointer;
}
.btn:hover { background: var(--espresso); color: var(--cream); }
.btn-light { color: var(--cream); border-color: rgba(245, 240, 230, 0.65); }
.btn-light:hover { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.btn-gold { color: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: var(--paper); }
.btn-solid {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}
.btn-solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

.btn .arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .35s ease; }
.btn .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 32px; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .4s ease;
  background: rgba(245, 240, 230, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav.transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}
/* Brand wordmark (replaces logo image) */
.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0.2px;
  color: var(--espresso);
  display: inline-flex;
  align-items: baseline;
  transition: color .4s ease;
  white-space: nowrap;
}
.brand em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
.nav.transparent .brand em { color: var(--gold-light); }
.brand .brand-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-left: 7px;
  align-self: center; display: inline-block; flex: none;
}
.nav.transparent .brand { color: var(--cream); }
@media (max-width: 1080px) { .brand { font-size: 26px; } }
.nav-links {
  display: flex; gap: 30px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--espresso);
  transition: color .4s ease;
  white-space: nowrap;
}
.nav.transparent .nav-links { color: var(--cream); }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: currentColor;
  transition: width .35s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-right {
  display: flex; align-items: center; gap: 24px;
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--espresso);
  transition: color .4s ease;
}
.nav.transparent .nav-right { color: var(--cream); }
/* Language switcher (styled native select — inherits nav colour) */
.nav-lang { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.nav-lang .lang-globe { width: 15px; height: 15px; flex: none; opacity: .9; }
.lang-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: transparent; border: 0; outline: none;
  color: currentColor;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  padding: 12px 20px 12px 2px;   /* >=40px hit height + room for chevron */
  margin: 0; line-height: 1; cursor: pointer;
}
.lang-select::-ms-expand { display: none; }
.nav-lang::after {                /* custom chevron, follows nav colour */
  content: ''; position: absolute; right: 3px; top: 50%;
  width: 6px; height: 6px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); pointer-events: none; opacity: .75;
}
.lang-select:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.lang-select option {             /* readable popup whatever the nav colour */
  color: #1a1410; background: #fffcf6;
  font-weight: 500; letter-spacing: normal; text-transform: none;
}
.nav-concierge {
  padding: 11px 22px;
  border: 1px solid currentColor;
  transition: all .35s ease;
}
.nav-concierge:hover { background: var(--espresso); color: var(--cream); }
.nav.transparent .nav-concierge:hover { background: var(--cream); color: var(--espresso); }

/* ===== Page header (non-home pages) ===== */
.page-header {
  padding: 200px 0 90px;
  text-align: center;
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
}
.page-header .eyebrow { justify-content: center; margin-bottom: 26px; }
.page-header .eyebrow::before { display: none; }
.page-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.page-header h1 em { font-style: italic; color: var(--gold-deep); }
.page-header .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--taupe);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== Filters bar ===== */
.filter-bar {
  background: var(--cream-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 24px 0;
  position: sticky;
  top: 80px;
  z-index: 50;
}
.filter-row {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  justify-content: space-between;
}
.filter-group { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.filter-select, .filter-input {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--espresso);
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  min-width: 160px;
  cursor: pointer;
  transition: border-color .25s;
}
.filter-select:focus, .filter-input:focus { border-color: var(--gold); }
.filter-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--taupe);
}

/* ===== Listing grid ===== */
.listing-wrap { padding: 80px 0 160px; }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
}
.item-card { cursor: pointer; display: block; }
.item-img {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-deep);
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
}
.item-img-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.4s cubic-bezier(.2,.7,.3,1);
}
.item-card:hover .item-img-bg { transform: scale(1.06); }
.item-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 12px;
  background: var(--paper);
  color: var(--espresso);
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
}
.item-badge.gold { background: var(--gold); color: var(--paper); }
.item-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 10px;
}
.item-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--espresso);
}
.item-desc {
  font-size: 13px; color: var(--taupe); margin-bottom: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; border-top: 1px solid var(--hairline);
}
.item-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--espresso);
}
.item-price small {
  font-family: var(--sans); font-style: normal;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--taupe); margin-left: 6px;
}
.item-rating {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-deep);
}

/* Empty state */
.empty {
  text-align: center; padding: 120px 40px; color: var(--taupe);
}
.empty h3 { font-family: var(--serif); font-size: 32px; margin-bottom: 12px; color: var(--espresso); }

/* ===== Footer ===== */
.footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 100px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 70px;
}
.footer-brand .footer-wordmark {
  color: var(--cream);
  font-size: 34px;
  margin-bottom: 22px;
}
.footer-brand .footer-wordmark em { color: var(--gold-light); }
.footer-brand .footer-wordmark .brand-dot { background: var(--gold-light); }
.footer-brand p {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.6);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.7);
  transition: color .25s ease;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 230, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(245, 240, 230, 0.45);
  text-transform: uppercase;
}
.footer-credit {
  text-align: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 240, 230, 0.08);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(245, 240, 230, 0.32);
}
.footer-credit a {
  color: rgba(245, 240, 230, 0.58);
  border-bottom: 1px solid rgba(245, 240, 230, 0.22);
  transition: color .2s ease, border-color .2s ease;
}
.footer-credit a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.footer-langs { display: flex; gap: 18px; }
.footer-langs a { color: rgba(245, 240, 230, 0.5); cursor: pointer; }
.footer-langs a:hover,
.footer-langs a.active { color: var(--gold-light); }

/* ===== Scroll-reveal animations ===== */
[data-anim] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.3,1), transform 1.1s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
[data-anim="fade"]  { transform: translateY(0); }
[data-anim="left"]  { transform: translateX(-40px); }
[data-anim="right"] { transform: translateX(40px); }
[data-anim="zoom"]  { transform: scale(0.96); }
[data-anim].in {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
[data-anim][data-delay="1"].in { transition-delay: .08s; }
[data-anim][data-delay="2"].in { transition-delay: .16s; }
[data-anim][data-delay="3"].in { transition-delay: .24s; }
[data-anim][data-delay="4"].in { transition-delay: .32s; }
[data-anim][data-delay="5"].in { transition-delay: .40s; }
[data-anim][data-delay="6"].in { transition-delay: .48s; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 30px; right: 30px;
  padding: 16px 26px;
  background: var(--espresso);
  color: var(--cream);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  box-shadow: var(--shadow-lux);
  transform: translateX(120%);
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
  z-index: 1000;
}
.toast.show { transform: translateX(0); }
.toast.error { background: #8b2820; }

/* ===== Responsive nav: long localized labels never overflow ===== */
@media (max-width: 1280px) {
  .nav-links { display: none; }          /* hamburger is the menu below wide desktop */
  .nav-right { display: flex; }
}
@media (max-width: 700px) {
  .nav-concierge { display: none; }      /* declutter mobile nav; hamburger has Contact */
}

/* ===== Mobile ===== */
@media (max-width: 1080px) {
  .container, .container-narrow { padding: 0 28px; }
  .nav { padding: 18px 28px; }
  .nav-links { display: none; }
  .nav-right { display: flex; gap: 14px; }
  .listing-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .filter-bar { position: static; }
  .filter-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .listing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-header { padding: 140px 0 60px; }
}

/* ===== Hamburger button + slide-in panel ===== */
.hb-btn {
  width: 24px; height: 16px; position: relative;
  background: none; border: 0; cursor: pointer;
  padding: 14px 10px; box-sizing: content-box;   /* ~52x44 tap area */
  display: inline-flex; flex-direction: column; justify-content: space-between;
  color: inherit;
}
.hb-btn span { display: block; height: 1.5px; width: 24px; background: currentColor; transition: .25s; }
.hb-btn:hover span { background: var(--gold-light); }

.hb-overlay {
  position: fixed; inset: 0; background: rgba(15,12,9,0.55);
  opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 600;
  backdrop-filter: blur(2px);
}
.hb-overlay.on { opacity: 1; pointer-events: auto; }
.hb-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 86vw;
  background: var(--cream); border-left: 1px solid var(--hairline);
  box-shadow: var(--shadow-lux); z-index: 601;
  transform: translateX(105%); transition: transform .42s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column; padding: 30px 36px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
body.hb-open { overflow: hidden; }
.hb-panel.on { transform: translateX(0); }
.hb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.hb-head .brand { font-size: 26px; color: var(--espresso); }
.hb-head .brand em { color: var(--gold-deep); }
.hb-x { font-size: 30px; line-height: 1; color: var(--taupe); background: none; border: 0; cursor: pointer; padding: 8px 12px; margin: -8px -12px; }
.hb-x:hover { color: var(--espresso); }
.hb-links { display: flex; flex-direction: column; }
.hb-links a {
  font-family: var(--serif); font-size: 24px; color: var(--espresso);
  padding: 13px 0; border-bottom: 1px solid var(--hairline); transition: color .2s, padding-left .2s;
}
.hb-links a:hover { color: var(--gold-deep); padding-left: 8px; }
.hb-sep { height: 26px; }
.hb-links a + .hb-sep + a { border-top: 0; }
@media (max-width: 480px) { .hb-panel { padding: 24px; } .hb-links a { font-size: 21px; } }

/* ===== Floating WhatsApp button ===== */
.wa-fab {
  position: fixed; z-index: 900;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-fab[hidden] { display: none; }
.wa-fab svg { width: 30px; height: 30px; display: block; }
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 12px 30px -6px rgba(0,0,0,0.5); }
@media (max-width: 640px) { .wa-fab { width: 52px; height: 52px; right: 16px; } .wa-fab svg { width: 27px; height: 27px; } }

/* ===== Mobile: 16px form fields to stop iOS auto-zoom on focus ===== */
@media (max-width: 640px) {
  input, textarea,
  .filter-select, .filter-input,
  .book-field input, .book-field textarea,
  .form-field input, .form-field textarea, .form-field select,
  .co-input, .login-input { font-size: 16px; }
}
