/* Kasbah.com — stylesheet */

:root {
  --sand: #faf6ef;
  --sand-deep: #f1e9db;
  --ink: #2b2118;
  --ink-soft: #6b5d4f;
  --terracotta: #c1502e;
  --terracotta-dark: #9c3f22;
  --majorelle: #4c5fd5;
  --teal: #16656b;
  --gold: #c9962e;
  --card-radius: 14px;
  --max-width: 1120px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--terracotta); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--sand);
  border-bottom: 1px solid var(--sand-deep);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }

.logo .dot { color: var(--terracotta); }

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 28px;
}

.site-nav a:hover { color: var(--terracotta); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(193, 80, 46, 0.14), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(22, 101, 107, 0.12), transparent 60%),
    var(--sand);
  padding: 88px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  max-width: 18ch;
  margin: 0 auto 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero p {
  max-width: 58ch;
  margin: 0 auto 32px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.hero .cta {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.hero .cta:hover { background: var(--terracotta-dark); }

.hero-motif {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--gold);
}

/* ---------- region filter ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 40px 0 8px;
}

.filters button {
  font: inherit;
  font-size: 0.92rem;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #d9cdb9;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filters button:hover { border-color: var(--terracotta); color: var(--terracotta); }

.filters button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sand);
}

/* ---------- property grid ---------- */

.grid-section { padding: 24px 0 72px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 24px;
}

.card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid rgba(43, 33, 24, 0.07);
  box-shadow: 0 1px 3px rgba(43, 33, 24, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(43, 33, 24, 0.11);
}

.card-media { position: relative; height: 168px; overflow: hidden; }

.card-art { display: block; width: 100%; height: 168px; object-fit: cover; }

.photo-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.66rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(43, 33, 24, 0.55);
  padding: 4px 8px;
  border-radius: 999px;
  text-decoration: none;
}

.photo-credit:hover { background: rgba(43, 33, 24, 0.8); }

.photo-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 72ch;
  margin: 18px auto 0;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.card-meta .tier { color: var(--gold); letter-spacing: 0.15em; }

.card h3 { font-size: 1.22rem; margin-bottom: 6px; }

.card .blurb {
  font-size: 0.93rem;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 16px;
}

.card .check {
  display: inline-block;
  align-self: flex-start;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  border-radius: 999px;
  padding: 8px 20px;
  transition: all 0.15s ease;
}

.card .check:hover { background: var(--terracotta); color: #fff; }

/* ---------- guides teaser ---------- */

.guides {
  background: var(--ink);
  color: var(--sand);
  padding: 64px 0;
}

.guides h2 { font-size: 2rem; margin-bottom: 8px; }

.guides .sub { color: #b9aa97; margin-bottom: 32px; }

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.guide-card {
  display: block;
  background: rgba(250, 246, 239, 0.06);
  border: 1px solid rgba(250, 246, 239, 0.14);
  border-radius: var(--card-radius);
  padding: 26px 26px 22px;
  color: var(--sand);
  text-decoration: none;
  transition: background 0.15s ease;
}

.guide-card:hover { background: rgba(250, 246, 239, 0.11); }

.guide-card h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--sand); }

.guide-card p { color: #b9aa97; font-size: 0.95rem; margin-bottom: 14px; }

.guide-card .more { color: var(--gold); font-weight: 600; font-size: 0.92rem; }

/* ---------- article pages ---------- */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.article .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 12px;
}

.article h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 18px; }

.article .lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 32px; }

.article h2 { font-size: 1.5rem; margin: 40px 0 12px; }

.article p { margin-bottom: 16px; }

.article ul { margin: 0 0 16px 22px; }

.article li { margin-bottom: 8px; }

.article .back {
  display: inline-block;
  margin-top: 32px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- stay pages ---------- */

.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--terracotta); }
.card-media > a { display: block; }

.stay { padding: 40px 0 72px; }
.stay .wrap { max-width: 820px; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); }

.stay-hero {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.stay-hero img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-caption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 8px 2px 28px;
}

.stay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.stay-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 6px;
}

.stay-meta { color: var(--ink-soft); font-size: 0.95rem; }

.stay-meta .tier { color: var(--gold); letter-spacing: 0.15em; }

.stay .cta,
.cta-panel .cta {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.stay .cta:hover, .cta-panel .cta:hover { background: var(--terracotta-dark); }

.stay .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.stay p { margin-bottom: 16px; max-width: 68ch; }

.stay h2 { font-size: 1.4rem; margin: 32px 0 12px; }

.highlights { margin: 0 0 8px 22px; }

.highlights li { margin-bottom: 8px; }

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid rgba(43, 33, 24, 0.09);
  border-radius: var(--card-radius);
  padding: 24px 28px;
  margin: 36px 0;
}

.cta-panel p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.more-stays a {
  display: inline-block;
  margin: 0 14px 10px 0;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--sand-deep);
  padding: 40px 0 48px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer .disclosure { max-width: 78ch; }

@media (max-width: 640px) {
  .hero { padding: 60px 0 48px; }

  .site-header .wrap {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .logo { font-size: 1.35rem; }
  .logo-mark { width: 26px; height: 26px; }

  .site-nav {
    display: flex;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar { display: none; }

  .site-nav a {
    margin-left: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 4px 0;
  }
}
