/* ==========================================================================
   Hotel Mina International — refinement layer
   Loaded after style.css and heritage.css. Softer, more minimal surfaces:
   rounded cards, photos, inputs and pill buttons; the utility strip,
   header, CTA band, footer, map, list rules and editorial lines stay square.
   Remove this file (and its <link> in includes/header.php) to revert.
   ========================================================================== */

:root {
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;
  --edge: clamp(.5rem, 1.1vw, 1rem);          /* inset for rounded full-width panels */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 1px 2px rgba(48, 33, 36, .06), 0 2px 8px -2px rgba(48, 33, 36, .06);
  --shadow-md: 0 2px 4px rgba(48, 33, 36, .04), 0 14px 32px -14px rgba(48, 33, 36, .22);
  --shadow-lg: 0 4px 10px rgba(48, 33, 36, .05), 0 30px 60px -24px rgba(48, 33, 36, .32);
  --line-soft: #ebe3d8;
  --r: var(--r-sm);
  --r-lg: 22px;
}

body { background: var(--white); color: var(--ink); text-rendering: optimizeLegibility; }
::selection { background: var(--gold-soft); color: var(--peacock); }
:focus-visible { outline: 2px solid var(--peacock); outline-offset: 3px; border-radius: var(--r-xs); }

/* ---------- Type: a little calmer ---------- */
h2 { font-size: clamp(2.15rem, 3.5vw, 3.35rem); line-height: 1.06; }
h3 { font-size: 1.6rem; }
.lead { line-height: 1.6; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-head { margin-bottom: clamp(1.75rem, 3.2vw, 2.75rem); }
.section-head p { font-size: 1.04rem; }

/* Section link → quiet pill with an arrow */
.section-head .link,
.story-grid .link {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--peacock);
  transition: background-color .2s, border-color .2s, color .2s;
}
.section-head .link::after,
.story-grid .link::after { content: "→"; transition: transform .2s var(--ease); }
.section-head .link:hover,
.story-grid .link:hover { background: var(--peacock); border-color: var(--peacock); color: #fffaf0; }
.section-head .link:hover::after,
.story-grid .link:hover::after { transform: translateX(3px); }

/* ---------- Buttons: pills ---------- */
.btn {
  border-radius: var(--r-pill); padding-inline: 1.5rem; letter-spacing: .01em;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-wine, .btn-gold, .dock .btn { box-shadow: 0 6px 16px -8px rgba(80, 39, 44, .55); }
.btn-wine:hover, .btn-gold:hover, .dock .btn:hover { box-shadow: 0 10px 22px -10px rgba(80, 39, 44, .6); }
.btn-line { border-color: var(--line-strong); background: transparent; }
.btn-line:hover { background: var(--peacock); border-color: var(--peacock); color: #fffaf0; }
.btn-ghost { border-color: rgba(255, 255, 255, .38); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); color: #fff; }

/* ---------- Utility strip (square, quieter) ---------- */
.utility { background: var(--pearl); color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.utility b { color: var(--gold-deep); }
.utility a { color: var(--peacock); font-weight: 500; }
.utility a + a { border-left-color: var(--line-strong); }

/* ---------- Header (square, frosted, lifts on scroll) ---------- */
.site-head {
  background: rgba(255, 252, 247, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; box-shadow: none;
  transition: box-shadow .25s, border-color .25s, background-color .25s;
}
.site-head.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 10px 30px -22px rgba(48, 33, 36, .35); background: rgba(255, 252, 247, .94); }
.head-row { min-height: 72px; transition: min-height .25s var(--ease); }
.site-head.is-scrolled .head-row { min-height: 64px; }
.logo img { transition: height .25s var(--ease); }
.site-head.is-scrolled .logo img { height: 40px; }

.nav ul { gap: .15rem; }
.nav a { padding: .45rem .85rem; border: 0; border-radius: var(--r-pill); font-weight: 500; color: var(--ink); transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--pearl); color: var(--peacock); }
.nav a[aria-current="page"] { background: var(--gold-soft); color: var(--peacock); font-weight: 600; border: 0; }
.nav-toggle { border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; }

@media (max-width: 1040px) {
  .nav {
    left: var(--edge); right: var(--edge); top: calc(100% + 8px);
    border: 1px solid var(--line-soft); border-radius: var(--r-lg);
    background: rgba(255, 252, 247, .98); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 110px);
  }
  .nav ul { padding: .6rem; gap: .15rem; }
  .nav a { padding: .8rem 1rem; border: 0; border-radius: var(--r-sm); font-size: 1.05rem; }
  .nav a[aria-current="page"] { border: 0; }
  .nav-only-mobile:first-of-type { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--line-soft); }
  @media (prefers-reduced-motion: no-preference) {
    .nav.is-open { animation: drop .22s var(--ease) both; }
    @keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- Notices ---------- */
.notice { border-radius: var(--r-sm); border-left-width: 0; box-shadow: inset 3px 0 0 var(--teal); }
.notice-error { box-shadow: inset 3px 0 0 var(--ruby); }
.notice-success { box-shadow: inset 3px 0 0 var(--ok); }

/* ---------- Rounded inset panels: hero, page heads, banquet feature ---------- */
.arrival, .image-head, .banquet-feature {
  margin-inline: var(--edge); border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
}
.arrival { margin-top: var(--edge); }
.image-head { margin-top: var(--edge); }
.arrival .wrap, .image-head .wrap, .banquet-feature .wrap {
  width: min(100% - 2 * var(--gut) + 2 * var(--edge), var(--wrap));
}

/* Hero */
.arrival-inner { min-height: clamp(520px, 40vw, 680px); padding-block: 3.5rem 7.5rem; }
.arrival-title { font-size: clamp(3.8rem, 6.1vw, 6.5rem); }
.arrival-desc { color: rgba(255, 250, 240, .9); }
.arrival-controls {
  left: max(calc(var(--gut) - var(--edge)), calc((100% - var(--wrap)) / 2));
  bottom: 5.25rem; gap: .6rem; padding: .3rem; border-radius: var(--r-pill);
  background: rgba(20, 13, 12, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.arrival-controls button { width: 34px; height: 34px; border-color: rgba(255, 255, 255, .35); background: transparent; transition: background-color .2s, color .2s; }
.arrival-controls span { padding-inline: .2rem; }
.scene-caption { bottom: 5.6rem; opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .arrival.is-live .arrival-slide:not([hidden]) { animation: sceneIn .9s var(--ease) both; }
  .arrival.is-live .arrival-slide:not([hidden]) .arrival-copy > * { animation: rise .8s var(--ease) both; }
  .arrival.is-live .arrival-slide:not([hidden]) .arrival-copy > :nth-child(2) { animation-delay: .06s; }
  .arrival.is-live .arrival-slide:not([hidden]) .arrival-copy > :nth-child(3) { animation-delay: .12s; }
  .arrival.is-live .arrival-slide:not([hidden]) .arrival-copy > :nth-child(4) { animation-delay: .18s; }
  @keyframes sceneIn { from { opacity: .35; } to { opacity: 1; } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .arrival-image img { animation: drift 14s ease-out both; }
  @keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
}

/* Page heads */
.image-head { padding: clamp(3.5rem, 6.5vw, 6.5rem) 0; }
.image-head h1 { font-size: clamp(3rem, 5.2vw, 5.4rem); }
.page-rooms .image-head { padding-bottom: clamp(5rem, 8vw, 7.5rem); }

/* ---------- Booking dock: floating card ---------- */
.dock-wrap { position: relative; z-index: 6; margin-top: -4rem; }
.dock-wrap-inner { margin-top: -3.25rem; }
.dock {
  background: #fffdf9; border: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 1rem clamp(1rem, 2.2vw, 1.75rem) clamp(1.1rem, 2.2vw, 1.6rem);
}
.page-rooms .dock { border-width: 1px; }
.dock-tabs {
  display: inline-flex; gap: 0; padding: 4px; margin-bottom: 1.1rem;
  background: var(--pearl); border: 1px solid var(--line-soft); border-radius: var(--r-pill);
}
.dock-tabs button {
  border: 0; margin: 0; padding: .45rem 1.15rem; border-radius: var(--r-pill);
  font-size: .95rem; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s;
}
.dock-tabs button:hover { color: var(--peacock); }
.dock-tabs button[aria-selected="true"] { background: #fff; color: var(--peacock); box-shadow: var(--shadow-sm); border: 0; }
.f > span { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.f input, .f select {
  height: 50px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.f input:hover, .f select:hover { border-color: var(--line-strong); }
.f input:focus, .f select:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--peacock); box-shadow: 0 0 0 4px rgba(80, 39, 44, .1);
}
.dock-form .btn { min-height: 50px; padding-inline: 1.6rem; }

/* ---------- Story ---------- */
.story-grid img { border-radius: var(--r-md); }

/* ---------- Room tiles ---------- */
.rooms-preview { background: var(--pearl); }
.room-tile-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1.28; box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.room-tile:hover .room-tile-img { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.room-tile h3 { font-size: clamp(1.55rem, 2.2vw, 2rem); margin-top: .15rem; }
.room-tile:hover h3 { text-decoration: none; color: var(--teal); }
.room-tile .rate { position: relative; padding-right: 1.75rem; border-top-color: var(--line); }
.room-tile .rate::after { content: "→"; position: absolute; right: .1rem; bottom: 0; color: var(--gold-deep); transition: transform .2s var(--ease); }
.room-tile:hover .rate::after { transform: translateX(4px); }

/* ---------- Direct benefits: one soft card ---------- */
.direct { padding-block: clamp(2.5rem, 5vw, 4rem); }
.direct-list { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(1.25rem, 2.6vw, 2rem); box-shadow: var(--shadow-sm); }
.direct-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; border-left-color: var(--line-soft); }
.direct-list li > * { grid-column: 2; }
.direct-list .d-ico { grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--gold-soft); color: var(--peacock); }
.direct-list .d-ico svg { width: 22px; height: 22px; }
.direct-list strong { font-size: 1.45rem; }
@media (max-width: 720px) { .direct-list li { border-bottom-color: var(--line-soft); } }

/* ---------- Banquet feature ---------- */
.banquet-feature { background: #44262b; }
.banquet-feature h2 { font-size: clamp(2.6rem, 4.4vw, 4.3rem); }
.hall-pair { gap: .75rem; max-width: 28rem; }
.hall-chip {
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05); padding: .95rem 1.1rem;
}
.bf-mosaic { gap: .7rem; }
.shot { border-radius: var(--r-md); }
.shot img { transition: transform .7s var(--ease); }

/* ---------- Feature, picture and tour cards ---------- */
.feature img, .pic-card img { border-radius: var(--r-lg); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pic-card:hover img { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pic-card:hover h2, .pic-card:hover h3 { text-decoration: none; color: var(--teal); }
.feature h3, .pic-card h3 { font-size: 1.6rem; }
.tour-card a { border-radius: var(--r-lg); }

/* ---------- Location ---------- */
.distances { border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: .4rem clamp(1.1rem, 2.5vw, 1.75rem); }
.distances div { border-bottom-color: var(--line-soft); }
.distances dd { color: var(--peacock); font-weight: 600; }

/* ---------- Photo strip, gallery, lightbox ---------- */
.strip { gap: .7rem; }
.strip a { border-radius: var(--r-md); }
.masonry { column-gap: .8rem; }
.masonry a { border-radius: var(--r-md); margin-bottom: .8rem; }
.chip { border-radius: var(--r-pill); border: 1px solid var(--line); transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { background: var(--pearl); }
.lightbox { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(24, 16, 16, .92); }
.lightbox img { border-radius: var(--r-md); }
.lightbox button { border-color: rgba(255, 255, 255, .25); transition: background-color .2s, color .2s; }
.lightbox button:hover { background: #fff; color: var(--peacock); border-color: #fff; }

/* ---------- Rooms list ---------- */
.room-list { border-top-color: var(--line-soft); }
.room-row { border-bottom-color: var(--line-soft); }
.room-row-img { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.room-row-img img { transition: transform .6s var(--ease); }
.room-row-img:hover img { transform: scale(1.04); }
.facts { gap: .4rem; }
.facts li, .facts li:last-child { background: var(--pearl); border: 1px solid var(--line-soft); border-radius: var(--r-pill); padding: .2rem .8rem; font-size: .9rem; }
details summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-soft); font-size: .9rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
@media (max-width: 900px) { .room-row-book { border-radius: var(--r-md); } }
.policy-strip { border-radius: var(--r-lg); border: 1px solid var(--line-soft); }
.steps li span { transition: background-color .2s; }

/* ---------- Cards and forms ---------- */
.card { border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card.form, .summary, .ticket, .amen-group { border-top: 1px solid var(--line-soft); }
.ticket { border-top: 1px solid var(--line-soft); box-shadow: var(--shadow-md); }
.summary img { border-radius: var(--r-md); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="date"], .field input[type="password"], .field select, .field textarea,
.form .field input, .form .field select, .form .field textarea {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.choice > span { border: 1px solid var(--line); border-radius: var(--r-sm); }
.choice input:checked + span { border-color: var(--peacock); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--peacock); }
.check input { border-radius: var(--r-xs); }
.cal { border: 1px solid var(--line); border-radius: var(--r-md); }
.cal-nav { border: 1px solid var(--line); }
.cal-day { border-radius: var(--r-xs); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.aside-card { border-radius: var(--r-lg); }
.confirm-mark { box-shadow: 0 0 0 8px var(--ok-soft); }
.ticket-nights { border-radius: var(--r-pill); }

/* ---------- Banquet page ---------- */
.hall-card { border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.hall-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.hall-card-img { overflow: hidden; }
.incl-list li { border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.icon-chip { border-radius: var(--r-md); }
.icon-chip-sm { border-radius: var(--r-xs); }
.good-to-know { border-color: var(--line); }

/* ---------- Amenities, about ---------- */
.amen-group { border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.amen-group li { border-bottom-color: var(--line-soft); }
.split-media > img { border-radius: var(--r-lg); outline: 0; box-shadow: var(--shadow-md); }
.split-media.trio img, .inline-photo { border-radius: var(--r-lg); }
.fact-row { border-top-color: var(--line); }

/* ---------- Blog ---------- */
.post-cover { border-radius: var(--r-xl); }
.prose img { border-radius: var(--r-lg); }
.post-cta { border-left: 0; border-radius: var(--r-lg); border: 1px solid var(--line-soft); }

/* ---------- Contact ---------- */
.contact-info img { border-radius: var(--r-lg); }
.contact-list div { border-bottom-color: var(--line-soft); }

/* ---------- CTA band + footer (square) ---------- */
.cta-band { border-top: 0; }
.site-foot .jaali { opacity: .35; }
.social a { transition: background-color .2s, border-color .2s, color .2s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: #2b2022; }
.site-foot a:hover { text-decoration: none; }

/* ---------- Mobile bar: floating pill ---------- */
@media (max-width: 720px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); padding: 5px;
    gap: 5px; border: 1px solid var(--line-soft); border-radius: var(--r-pill);
    background: rgba(255, 252, 247, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 16px 36px -14px rgba(48, 33, 36, .45);
  }
  .mobile-bar a { min-height: 48px; border: 0; border-radius: var(--r-pill); }
  .mobile-bar a.primary { box-shadow: 0 6px 14px -6px rgba(80, 39, 44, .6); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .dock-wrap { margin-top: -3rem; }
}
@media (max-width: 720px) {
  :root { --edge: .5rem; --r-xl: 22px; }
  .arrival-inner { padding: 3.5rem 0 7.5rem; min-height: 540px; }
  .arrival-controls { bottom: 4.25rem; }
  .scene-caption { bottom: 4.6rem; }
  .page-home .dock-wrap, .page-rooms .dock-wrap { width: min(100% - 2 * var(--edge) - 1rem, var(--wrap)); }
  .dock-wrap { margin-top: -2.75rem; }
  .dock { border: 1px solid var(--line-soft); padding: 1rem 1rem 1.15rem; }
  .dock-tabs { display: flex; }
  .dock-tabs button { flex: 1; }
  .head-actions .btn { min-height: 40px; padding-inline: 1rem; }
  .site-head.is-scrolled .logo img { height: 36px; }
  .story-grid img { border-radius: var(--r-sm); }
  .image-head { padding-block: 3rem; }
  .page-head.image-head { padding-block: 3rem; }
  .page-rooms .image-head { padding-bottom: 5rem; }
}
@media (max-width: 440px) {
  .room-tile-img { aspect-ratio: 1.6; }
}

/* ---------- Scroll reveal (only when JS opts in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rv-d, 0s); }
  .js-reveal .rv.in { opacity: 1; transform: none; }
}

@media print {
  .arrival, .image-head, .banquet-feature { margin: 0; border-radius: 0; }
  .site-head { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
