/* Inter, self-hosted: keeps the strict CSP intact (no external font host) and
   avoids a third-party request on every page load. One variable file covers
   every weight. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1f2a1d;
  --ink-2: #2d3a2a;
  --btn-hover: #2a3827;
  --body-text: #4b5b47;
  --heading: #336443;
  /* The reference's #85AB8B measures only 2.33:1 against the hero scrim,
     failing even the 3:1 large-text threshold. This darker green keeps the
     two-tone heading effect while reaching 4.6:1 (WCAG AA for body text). */
  --accent: #4f7659;
  --cta: #3d5638;
  --cta-hover: #2d4228;
  --line: #dfe5dc;
  --bg: #f6f8f4;
  --danger: #a32218;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- Header / navigation ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1rem;
}

/* Inner pages keep the header in the flow, on a solid bar. */
body:not(.has-hero) .site-header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.25rem;
}

@media (min-width: 640px) { .site-header { padding: 1.5rem; } }
@media (min-width: 768px) { .site-header { padding: 1.5rem 2.5rem; } }

.brand {
  font-weight: 600;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  letter-spacing: -0.03em;
  color: var(--ink-2);
  text-decoration: none;
  /* Long property names would otherwise wrap to two lines in the header. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}

@media (min-width: 1024px) { .brand { max-width: none; } }

.brand sup { font-size: 0.6em; font-weight: 500; }

/* Desktop glass pill */
.nav-pill {
  display: none;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.25rem 0.25rem 0.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(31, 42, 29, 0.06);
}

@media (min-width: 1024px) { .nav-pill { display: flex; } }

.nav-pill a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body-text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: color 0.15s;
}

.nav-pill a:hover { color: var(--ink); }
.nav-pill a.current { font-weight: 600; color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-2);
}

@media (min-width: 640px) { .nav-actions { gap: 1.5rem; } }

.nav-link {
  display: none;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.15s;
}

.nav-link:hover { opacity: 0.8; }

@media (min-width: 640px) { .nav-link { display: inline-flex; align-items: center; gap: 0.4rem; } }

.nav-user { display: none; font-size: 0.875rem; color: var(--body-text); }
@media (min-width: 640px) { .nav-user { display: inline; } }

.nav-btn {
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.nav-btn:hover { background: var(--btn-hover); }

/* The primary action lives in the glass pill on wide screens, so the copy in
   the header actions is hidden there to avoid showing the same button twice. */
@media (min-width: 1024px) { .nav-btn.in-actions { display: none; } }

/* Mobile menu button */
.menu-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s;
  flex: 0 0 auto;
}

.menu-btn:hover { background: rgba(255, 255, 255, 0.9); }

@media (min-width: 1024px) { .menu-btn { display: none; } }

.menu-btn span {
  position: absolute;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn span:nth-child(1) { transform: translateY(-4px); }
.menu-btn span:nth-child(3) { transform: translateY(4px); }

body.menu-open .menu-btn span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile drawer */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(31, 42, 29, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

body.menu-open .drawer-scrim { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  width: 85%;
  max-width: 22rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: -8px 0 32px rgba(31, 42, 29, 0.18);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 5.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

body.menu-open .drawer { transform: translateX(0); }

@media (min-width: 1024px) { .drawer, .drawer-scrim, .menu-btn { display: none; } }

.drawer a, .drawer button {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(31, 42, 29, 0.1);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transform: translateX(2rem);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

body.menu-open .drawer a, body.menu-open .drawer button { transform: translateX(0); opacity: 1; }

.drawer > .nav-btn {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border: none;
  text-align: center;
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(160deg, #dfe8dc, #c3d4c2); }

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  transform: scale(1.06);
  animation: heroDrift 24s ease-in-out infinite alternate;
}

.hero-bg img.active { opacity: 1; }

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}

/* A light wash keeps the dark-green type readable over any photograph,
   however bright or busy it happens to be. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(247, 250, 245, 0.8) 0%, rgba(236, 243, 234, 0.62) 45%, rgba(222, 233, 220, 0.84) 100%);
}

/* A bundled artwork gets a lighter touch: a soft wash over the top third,
   where the heading sits against pale sky, and a dark foot so the white
   standfirst stays legible over foliage. */
.hero.has-image .hero-scrim {
  background:
    linear-gradient(to bottom,
      rgba(250, 248, 240, 0.62) 0%,
      rgba(248, 246, 238, 0.34) 30%,
      rgba(240, 240, 230, 0.08) 52%,
      rgba(31, 42, 29, 0.34) 82%,
      rgba(24, 33, 22, 0.62) 100%);
}

.hero.has-image .hero-foot-mark,
.hero.has-image .hero-foot p,
.hero.has-image .hero-foot-actions .secondary { color: #fff; }

.hero.has-image .hero-foot p { color: rgba(255, 255, 255, 0.9); }

.hero.has-image .hero-foot-actions .primary { background: #fff; color: var(--ink); }
.hero.has-image .hero-foot-actions .primary:hover { background: rgba(255, 255, 255, 0.9); }

.hero.has-image .scroll-cue { color: rgba(255, 255, 255, 0.95); }
.hero.has-image .scroll-cue .dot { background: rgba(255, 255, 255, 0.22); }

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 7rem 1.25rem 2.5rem;
  flex: 1;
}

@media (min-width: 768px) { .hero-inner { padding-top: 9rem; } }

.hero h1 {
  margin: 0;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--heading);
  font-size: clamp(2.1rem, 6.2vw, 4.75rem);
  max-width: 58rem;
}

/* The tagline continues the heading in a lighter green, but at a smaller
   size — property taglines are arbitrary length and would otherwise run to
   four lines and swamp the hero. */
.hero h1 .accent {
  display: block;
  color: var(--accent);
  font-size: 0.42em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  margin: 1.5rem auto 0;
  color: var(--body-text);
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  max-width: 34rem;
}

.hero-place { margin: 0.75rem 0 0; color: var(--body-text); font-size: 0.9rem; font-weight: 500; }

/* Glass search panel, in the hero so booking is the first thing offered. */
.search {
  margin: 2.5rem auto 0;
  width: 100%;
  max-width: 52rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: 0 6px 24px rgba(31, 42, 29, 0.08);
  text-align: left;
}

.search-field { flex: 1 1 9rem; margin: 0; }
.search-field.narrow { flex: 0 1 7rem; }

.search-field span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--body-text);
  margin-bottom: 0.3rem;
}

.search input {
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(31, 42, 29, 0.12);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
}

.search button {
  flex: 1 1 auto;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.68rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s;
}

.search button:hover { background: var(--btn-hover); }

@media (min-width: 640px) { .search button { flex: 0 0 auto; } }

/* Bottom-left standfirst block */
.hero-foot {
  position: relative;
  z-index: 10;
  padding: 0 1.25rem 1.75rem;
  max-width: 26rem;
}

@media (min-width: 768px) { .hero-foot { padding: 0 2.5rem 2.5rem; } }

.hero-foot-mark {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cta);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.hero-foot p {
  margin: 0 0 1.25rem;
  color: rgba(61, 86, 56, 0.92);
  font-size: 0.8rem;
  font-weight: 500;
  max-width: 22rem;
}

.hero-foot-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero-foot-actions .primary {
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s;
}

.hero-foot-actions .primary:hover { background: var(--cta-hover); }

.hero-foot-actions .secondary {
  background: none;
  border: none;
  color: var(--cta);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: opacity 0.15s;
}

.hero-foot-actions .secondary:hover { opacity: 0.8; }

.scroll-cue {
  display: none;
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  z-index: 10;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--body-text);
  text-decoration: none;
}

@media (min-width: 640px) { .scroll-cue { display: flex; } }

.scroll-cue .dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(31, 42, 29, 0.1);
  font-size: 0.8rem;
}

/* Anyone who prefers less motion gets a still hero. */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

main.narrow { max-width: 26rem; padding-top: 3rem; }

h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; margin-bottom: 0.4rem; }

.section-head { margin: 0 0 0.35rem; font-size: 1.35rem; }
.section-head.spaced { margin-top: 1.75rem; }
.results-count { color: var(--body-text); font-size: 0.9rem; margin-bottom: 1.25rem; }
.empty { color: var(--body-text); }
.hint { color: var(--body-text); font-size: 0.87rem; }

#message {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fdecea;
  color: #8a1f11;
  border: 1px solid #f5c6c0;
  margin-bottom: 1.25rem;
}

#message.success { background: #e7f5ec; color: #14663a; border-color: #bfe3cd; }

.about-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

@media (min-width: 860px) { .about-columns { grid-template-columns: 1fr 20rem; } }

/* ---------- Cards and grids ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.grid .card {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}

.grid .card:hover { box-shadow: 0 10px 28px rgba(31, 42, 29, 0.1); transform: translateY(-3px); }

.card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #e8ede6;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-text);
  font-size: 0.85rem;
  background: repeating-linear-gradient(45deg, #e8ede6, #e8ede6 10px, #e0e7de 10px, #e0e7de 20px);
}

.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-title { margin: 0 0 0.2rem; font-size: 1.05rem; }
.card-location { margin: 0 0 0.6rem; color: var(--body-text); font-size: 0.9rem; }
.card-price { margin: 0; font-size: 0.95rem; }
.card-total { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--heading); font-weight: 600; }

/* ---------- Detail pages ---------- */

.detail-columns { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .detail-columns { grid-template-columns: 1fr 20rem; } }

.back-link { display: inline-block; margin-bottom: 1rem; font-size: 0.9rem; text-decoration: none; }
.detail h1 { margin: 0 0 0.2rem; }
.detail-location { margin: 0 0 1.25rem; color: var(--body-text); }
.detail-description { white-space: pre-wrap; }
.detail-price { margin: 0 0 1rem; font-size: 1.05rem; }

.gallery { margin-bottom: 2rem; }

.gallery-main {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e8ede6;
  display: block;
}

.thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; overflow-x: auto; padding-bottom: 0.25rem; }

.thumb {
  width: 92px;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  flex: 0 0 auto;
  border: 2px solid transparent;
}

.thumb:hover { border-color: var(--heading); }

.rooms, .booked { list-style: none; padding: 0; margin: 0; }
.rooms li, .booked li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.rooms li:last-child, .booked li:last-child { border-bottom: none; }
.rooms li .link-btn { margin-left: 0.6rem; font-size: 0.87rem; }

.booking-card .total { font-weight: 600; margin: 0.25rem 0 0.85rem; }
.contact-card p { margin: 0.25rem 0; }

/* ---------- Forms ---------- */

label { display: block; margin-bottom: 0.9rem; font-size: 0.85rem; font-weight: 500; color: var(--body-text); }

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #cbd6c8;
  border-radius: 10px;
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus, select:focus, textarea:focus { outline: 2px solid var(--heading); outline-offset: -1px; }

button[type="submit"], #new-room-btn, .inline-form button {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  font-size: 0.93rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s;
}

button[type="submit"]:hover, #new-room-btn:hover, .inline-form button:hover { background: var(--btn-hover); }
button[type="submit"]:disabled { background: #9caf98; cursor: not-allowed; }

.link-btn {
  background: none;
  border: none;
  color: var(--heading);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.link-btn.danger, .danger { color: var(--danger); }

.danger-btn {
  background: #fff;
  color: var(--danger);
  border: 1px solid #edc7c3;
  border-radius: 10px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
}

.danger-btn:hover { background: #fdf3f2; }

.switch { font-size: 0.9rem; margin: 0.85rem 0 0; }

.portal-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--heading);
  background: #e7f2ea;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin: 0 0 0.6rem;
}

.portal-tag.owner { color: #7a4a06; background: #fdf1de; }

.grid-form { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 620px) { .grid-form { grid-template-columns: 1fr 1fr; } }
.grid-form .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 1rem; align-items: center; margin-top: 0.25rem; }

.inline-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: flex-start; }
.inline-form input { flex: 1 1 10rem; margin-top: 0; }

/* ---------- Owner dashboard ---------- */

.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; flex-wrap: wrap; }

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--body-text);
  cursor: pointer;
}

.tab:hover { color: var(--ink); }
.tab.active { color: var(--heading); border-bottom-color: var(--heading); font-weight: 600; }
.tab .badge { margin-left: 0.35rem; background: var(--danger); color: #fff; }

.panel h1 { margin-top: 0; }

.owner-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.owner-property-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
}

.owner-property-head h2 { margin: 0 0 0.2rem; }
.owner-actions { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }

.badge {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #eaeee8;
  color: var(--body-text);
  white-space: nowrap;
}

.badge.live, .badge.status-approved { background: #e7f5ec; color: #14663a; }
.badge.status-pending { background: #fdf1de; color: #7a4a06; }
.badge.status-declined, .badge.status-cancelled { background: #fdecea; color: #8a1f11; }

.sub { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 0.6rem; }

.photo-strip { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.photo { position: relative; }
.photo img { width: 116px; height: 84px; object-fit: cover; border-radius: 10px; display: block; }

.photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(31, 42, 29, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.photo-delete:hover { background: var(--danger); }

.booking-request .request-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.booking-request h3 { margin: 0 0 0.4rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.booking-request p { margin: 0.2rem 0; font-size: 0.94rem; }

.request-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.9rem; }
.request-actions input { flex: 1 1 14rem; margin-top: 0; }

.approve-btn {
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.48rem 1.15rem;
  cursor: pointer;
  font-size: 0.92rem;
  font-family: inherit;
  transition: background-color 0.15s;
}

.approve-btn:hover { background: var(--cta-hover); }

.session-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.session-row:last-child { border-bottom: none; }

.secret {
  display: inline-block;
  background: #eaeee8;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  word-break: break-all;
}

.recovery-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #f0d9a8;
  background: #fffaf0;
  border-radius: 10px;
}

.recovery-box ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.4rem;
}

.recovery-box code {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  display: block;
  text-align: center;
  letter-spacing: 0.04em;
}

#twofa-setup { margin-top: 1rem; }

/* ---------- Guest trips ---------- */

.trip { display: flex; gap: 1.35rem; align-items: flex-start; flex-wrap: wrap; }
.trip-image { width: 180px; height: 130px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.trip-body { flex: 1 1 16rem; }
.trip-body h2 { margin: 0 0 0.2rem; font-size: 1.05rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.trip-body h2 a { text-decoration: none; }
.trip-body p { margin: 0.2rem 0; font-size: 0.93rem; }
.trip-body .danger-btn { margin-top: 0.7rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1.5rem;
  text-align: center;
  color: var(--body-text);
  font-size: 0.9rem;
}
