/* Shared styles for index.html and stays.html: fonts, WhatsApp / Call buttons,
   floating buttons, contact cards, developer credit, accessibility helpers. */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --wa: #25d366;
  --wa-hover: #1ebe5a;
  --wa-ink: #06301a;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 3000;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- WhatsApp "Book Now" button ---------- */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--wa);
  color: #fff;
  border: 0;
  border-radius: 100px;
  padding: 13px 24px 13px 20px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .2px;
  line-height: 1.1;
  text-shadow: 0 1px 1px rgba(0, 60, 25, .35);
  box-shadow: 0 6px 16px rgba(37, 211, 102, .32), inset 0 -2px 0 rgba(0, 0, 0, .08);
  cursor: pointer;
  transition: transform .25s, background .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn-wa:hover {
  background: var(--wa-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, .42), inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.btn-wa svg { width: 24px; height: 24px; fill: #fff; flex: none; filter: drop-shadow(0 1px 1px rgba(0, 60, 25, .3)); }
.btn-wa.sm { padding: 9px 15px 9px 12px; font-size: 13px; gap: 7px; }
.btn-wa.sm svg { width: 20px; height: 20px; }
.btn-wa.block { width: 100%; }
.btn-wa.lg { padding: 16px 30px; font-size: 17px; }

/* round Call icon button (icon only, has aria-label + title) */
.btn-call {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  border: 1px solid var(--border);
  transition: transform .25s, background .25s, color .25s;
  flex: none;
}
.btn-call:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.btn-call svg { width: 22px; height: 22px; fill: currentColor; }
.btn-call .call-label { display: none; }
.btn-call.sm { width: 38px; height: 38px; }
.btn-call.sm svg { width: 18px; height: 18px; }

/* header */
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-links .btn-wa { opacity: 1; color: #fff; }
.nav-links .btn-wa:hover { color: #fff; }

/* hero extras */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 20, 13, .82) 0%, rgba(5, 20, 13, .48) 48%, rgba(5, 20, 13, .18) 100%);
}
.hero-buttons { align-items: center; }
.hero h1 span { display: block; }
.hero .btn-call { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-call:hover { background: #fff; color: var(--green); }

/* card footers */
.room-meta .btn-wa, .stay-footer .btn-wa { flex: none; }
.package .btn-wa { width: 100%; }
.package .btn-wa { padding: 14px 22px; }

/* contact cards (replace the old form) */
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(16, 37, 28, .06);
  transition: transform .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16, 37, 28, .12); }
.contact-card .cc-icon {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--cream);
  color: var(--green);
}
.contact-card .cc-icon svg { width: 26px; height: 26px; fill: currentColor; }
.contact-card.wa { background: var(--wa); border-color: var(--wa); color: #fff; text-shadow: 0 1px 1px rgba(0, 60, 25, .3); }
.contact-card.wa .cc-icon { background: rgba(255, 255, 255, .22); color: #fff; }
.contact-card strong { display: block; font-size: 18px; }
.contact-card .cc-text { min-width: 0; }
.contact-card .cc-text span { display: block; font-size: 14px; opacity: .85; overflow-wrap: anywhere; }
.contact-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* floating buttons (WhatsApp + Call business + scroll up) */
.fab {
  position: fixed;
  right: 20px;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  transition: transform .25s;
}
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 28px; height: 28px; fill: currentColor; }
.fab-wa { bottom: 20px; background: var(--wa); color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); }
.fab-call { bottom: 88px; background: var(--orange); }
.fab-up {
  bottom: 156px;
  width: 46px; height: 46px;
  right: 25px;
  background: var(--green);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.fab-up.visible { opacity: 1; pointer-events: auto; }
.fab-up svg { width: 22px; height: 22px; }

/* footer: developer credit */
.dev-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; }
.dev-credit a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dev-credit a:hover { color: var(--orange); }

/* FAQ questions are real buttons (keyboard + screen reader friendly), so reset the browser button look */
button.faq-question {
  width: 100%;
  background: none;
  border: 0;
  border-radius: 0;
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  gap: 16px;
}
button.faq-question span { flex: none; }
.faq-item.active .faq-answer { max-height: 420px; }
.faq-answer p { margin: 0; }

/* lazy images: reserve space, soft fade-in once decoded */
img { height: auto; }
img[loading="lazy"] { background: #e9efe9; }
.logo img { background: transparent !important; }

@media (max-width: 900px) {
  .nav-links .nav-cta { flex-direction: column; align-items: stretch; width: 100%; margin-top: 22px; gap: 10px; }
  .nav-links a.btn-wa { border-bottom: 0; min-height: 50px; justify-content: center; font-size: 16px; padding: 12px 18px; opacity: 1; }
  .nav-links a.btn-call { width: auto; height: 50px; border-radius: 100px; padding: 0 18px; display: flex; gap: 10px; justify-content: center; background: #fff; color: var(--green); border: 1px solid var(--border); min-height: 50px; opacity: 1; }
  .nav-links .btn-call .call-label { display: inline; font-weight: 700; font-size: 15px; }
}
@media (max-width: 1100px) {
  .nav-cta .btn-call { display: none; }
  .nav-links { gap: 16px; }
  .logo img { height: 70px; }
}
@media (max-width: 900px) {
  .nav-cta .btn-call { display: flex; }
}
@media (max-width: 760px) {
  .btn-wa.lg { padding: 15px 24px; }
  .fab { right: 14px; width: 52px; height: 52px; }
  .fab-wa { bottom: 14px; }
  .fab-call { bottom: 78px; }
  .fab-up { bottom: 142px; right: 17px; width: 44px; height: 44px; }
  .contact-card { padding: 14px 16px; }
}

@media (max-width: 760px) {
  .gallery-item:nth-child(8) { grid-column: span 2; }
}

@media (max-width: 480px) {
  .hero .btn-call { display: none; }
  .logo img { height: 50px; max-width: 175px; }
}

/* long words (emails) must wrap instead of widening the page */
.footer-grid > div { min-width: 0; }
footer li, footer p, footer a { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- blog cards (used on the home page teaser and on the blog pages) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 8px 25px rgba(16, 37, 28, .05); display: flex; flex-direction: column; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.post-card.hidden { display: none; }
.post-card .pc-img { aspect-ratio: 16 / 10; overflow: hidden; background: #e5eee7; }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.post-card:hover .pc-img img { transform: scale(1.05); }
.post-card .pc-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 18px 20px; }
.pc-tag { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.pc-title { color: var(--green); font-family: "Playfair Display", serif; font-size: 22px; line-height: 1.15; }
.pc-title a:hover { color: var(--orange); }
.pc-excerpt { color: var(--muted); font-size: 14px; }
.pc-meta { color: var(--muted); font-size: 12px; margin-top: auto; padding-top: 6px; }
.pc-link-all { position: absolute; inset: 0; }
.post-card { position: relative; }
.blog-latest { background: #f1eadc; }
.blog-latest .bl-foot { margin-top: 28px; text-align: center; }
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
}
