/*
Theme Name: Casa Duna
Theme URI: https://casaduna.ae
Author: Casa Duna
Author URI: https://casaduna.ae
Description: Custom block theme for Casa Duna — Yas Island holiday homes.
Version: 1.0.8
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casa-duna
Tags: full-site-editing, block-templates, hospitality
*/

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1f2a27;
  line-height: 1.6;
  margin: 0;
  background: #fdfcfa;
}

/* ---------- Top announcement bar ---------- */
.cd-topbar {
  background: #1a1f24;
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  font-weight: 600;
}
.cd-topbar .star { color: #f4c430; margin-right: 6px; }

/* ---------- Header ---------- */
.cd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: #fff;
  position: relative;
  z-index: 100;
}
.cd-header__logo img { height: 110px; width: auto; display: block; }
.cd-nav { display: flex; gap: 28px; }
.cd-nav a {
  color: #1f2a27;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.cd-nav a:hover, .cd-nav a.is-active { border-bottom-color: #0f7c6e; }

@media (max-width: 800px) {
  .cd-header { flex-direction: column; padding: 16px; gap: 12px; }
  .cd-header__logo img { height: 80px; }
  .cd-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ---------- Hero ---------- */
.cd-hero {
  text-align: center;
  padding: 80px 24px 60px;
}
.cd-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
  margin: 0 0 24px;
  color: #1f2a27;
  font-weight: 700;
}
.cd-hero__rating {
  font-size: 15px;
  color: #4a5650;
  letter-spacing: 0.02em;
}
.cd-hero__rating .stars { color: #f4c430; margin-right: 6px; }

/* ---------- Property cards ---------- */
.cd-properties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}
.cd-property {
  background: #f1f4f3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.cd-property__img {
  width: 100%;
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
}
.cd-property__body { padding: 24px 24px 32px; text-align: center; }
.cd-property__title { font-size: 18px; margin: 0 0 8px; color: #1f2a27; }
.cd-property__sub { font-weight: 600; font-size: 14px; color: #2c3a36; margin: 0 0 6px; }
.cd-property__meta { font-size: 14px; color: #5b6b66; margin: 0 0 18px; }

.cd-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cd-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.cd-btn--primary { background: #0f7c6e; color: #fff; }
.cd-btn--secondary { background: #1a1f24; color: #fff; }

/* ---------- Map / location ---------- */
.cd-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
  align-items: center;
}
.cd-location__map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #e6ece9;
}
.cd-location__map iframe { width: 100%; height: 100%; border: 0; }
.cd-location h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px;
}
.cd-location__lead { font-size: 17px; color: #4a5650; margin: 0 0 32px; }
.cd-location__row { margin-bottom: 18px; }
.cd-location__row strong { display: block; font-size: 14px; color: #1f2a27; margin-bottom: 4px; }
.cd-location__row span { color: #4a5650; }

@media (max-width: 800px) {
  .cd-location { grid-template-columns: 1fr; gap: 24px; margin: 48px auto; }
}

/* ---------- Meet hosts ---------- */
.cd-hosts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
  align-items: center;
}
.cd-hosts__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  background: #e6ece9 center/cover no-repeat;
}
.cd-hosts h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 24px;
}
.cd-hosts p { font-size: 16px; color: #3b4a45; line-height: 1.7; }
@media (max-width: 800px) { .cd-hosts { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.cd-faq {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.cd-faq h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  position: sticky;
  top: 24px;
  align-self: start;
}
.cd-faq__item { border-bottom: 1px solid #e6ece9; padding: 20px 0; }
.cd-faq__q {
  font-weight: 600;
  font-size: 17px;
  color: #1f2a27;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cd-faq__q::after { content: '+'; font-size: 24px; color: #0f7c6e; }
.cd-faq__item[open] .cd-faq__q::after { content: '−'; }
.cd-faq__a { padding-top: 12px; color: #4a5650; font-size: 15px; line-height: 1.7; }
@media (max-width: 800px) { .cd-faq { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Reviews ---------- */
.cd-reviews {
  background: #e6ece9;
  padding: 64px 24px;
  text-align: center;
}
.cd-reviews h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 40px;
}
.cd-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.cd-review {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cd-review__stars { color: #ff5a5f; margin-bottom: 12px; font-size: 14px; }
.cd-review__text { font-size: 14px; color: #2c3a36; margin: 0 0 18px; line-height: 1.6; }
.cd-review__more { color: #0f7c6e; font-size: 13px; text-decoration: none; }
.cd-review__author {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 16px;
}
.cd-review__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: #1a1f24 center/cover; margin-bottom: 4px;
}
.cd-review__name { font-weight: 600; font-size: 14px; }
.cd-review__date { font-size: 12px; color: #6b7872; }

/* ---------- Footer ---------- */
.cd-footer {
  background: #1a1f24;
  color: #d6dcd9;
  padding: 64px 24px 32px;
}
.cd-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.cd-footer h4 { color: #fff; font-size: 18px; margin: 0 0 16px; }
.cd-footer__contact a { color: #d6dcd9; text-decoration: underline; line-height: 1.7; }
.cd-footer__label { font-size: 12px; color: #8c9893; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.cd-footer__value { color: #fff; font-size: 15px; margin-bottom: 18px; }
.cd-footer__newsletter input {
  width: 100%; padding: 14px 16px; border-radius: 8px; border: 0; font-size: 15px;
  background: #fff; color: #1f2a27; margin-bottom: 12px;
}
.cd-footer__newsletter button {
  background: #1f5e54; color: #fff; border: 0; padding: 14px 28px;
  border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 15px;
}
.cd-footer__copy {
  text-align: left; max-width: 1200px; margin: 32px auto 0;
  padding-top: 24px; border-top: 1px solid #2d3338; font-size: 13px; color: #8c9893;
}
@media (max-width: 800px) {
  .cd-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Floating chat widget styles loaded from JS file ---------- */
