/* =========================================================
   Ben's Guesthouse Kyoto — Modern & Chic
   Custom CSS, no framework
   ========================================================= */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --ink:        #1c1c1c;
  --ink-soft:   #3a3a3a;
  --mid:        #6b6b6b;
  --light:      #a0a0a0;
  --border:     #e2e2e2;
  --bg:         #fafafa;
  --bg-alt:     #f3f3f3;
  --bg-dark:    #1c1c1c;
  --white:      #ffffff;
  --accent:     #c8864a;    /* warm gold */
  --accent-hover: #b07238;
  --accent-soft: rgba(200,134,74,.08);

  --font-body:  'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-ja:    'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);

  --nav-h:      72px;
  --max-w:      1160px;

  --ease:       cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

img { display: block; max-width: 100%; }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

/* ── Layout helpers ──────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

.section { padding: 6rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--white); }

.section__header { text-align: center; margin-bottom: 3.5rem; }
.section__header h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); }
.section__header p { color: var(--mid); margin-top: .75rem; font-size: 1.1rem; }
.section--dark .section__header h2 { color: var(--white); }
.section--dark .section__header p { color: var(--light); }

/* Decorative rule — minimal line */
.kamon-rule {
  display: flex; align-items: center; gap: .75rem; margin: 1rem auto 0;
  max-width: 200px; color: var(--accent); font-size: .75rem;
}
.kamon-rule::before, .kamon-rule::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  display: flex; align-items: center;
  transition: all .3s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.95);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.nav__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav__logo {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  letter-spacing: -.01em;
  display: flex; flex-direction: column; line-height: 1.2;
}
.nav__logo span {
  font-size: .65rem; font-weight: 400; opacity: .5;
  letter-spacing: .15em; text-transform: uppercase;
  font-family: var(--font-ja);
}

.nav__links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav__links a {
  color: var(--mid); font-size: .88rem; font-weight: 500;
  letter-spacing: .01em; transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }

.nav__right { display: flex; align-items: center; gap: 1rem; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-switcher__btn {
  background: none; border: 1px solid var(--border);
  color: var(--mid); border-radius: 100px;
  padding: .4rem .85rem; cursor: pointer;
  font-size: .82rem; font-weight: 500; font-family: var(--font-body);
  display: flex; align-items: center; gap: .4rem;
  transition: all .2s var(--ease);
}
.lang-switcher__btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-switcher__dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; min-width: 170px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.lang-switcher__dropdown.open { display: block; }
.lang-switcher__dropdown a {
  display: block; padding: .6rem 1.1rem; color: var(--mid);
  font-size: .88rem; font-weight: 500;
  transition: all .15s var(--ease);
}
.lang-switcher__dropdown a:hover, .lang-switcher__dropdown a.active {
  background: var(--accent-soft); color: var(--accent);
}

/* Hamburger */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: .4rem;
}
.nav__hamburger span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,.98); z-index: 899;
  padding: 1rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.nav__mobile.open { display: block; }
.nav__mobile ul { list-style: none; }
.nav__mobile ul li { border-bottom: 1px solid var(--bg-alt); }
.nav__mobile ul a {
  display: block; padding: .9rem 0; color: var(--ink);
  font-size: 1rem; font-weight: 500;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: var(--bg-dark);
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('/static/img/hero.jpg') center/cover no-repeat;
  opacity: .4;
  transition: opacity 1s var(--ease);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,28,28,.5) 0%, rgba(28,28,28,.85) 100%);
}
.hero__content {
  position: relative; text-align: center; color: var(--white);
  padding: 2rem 2rem;
  max-width: 720px;
}
.hero__ja {
  font-family: var(--font-ja); font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: .2em; opacity: .5; margin-bottom: 1.5rem;
  font-weight: 300;
}
.hero__tagline {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05; margin-bottom: 1.5rem;
  letter-spacing: -.03em; font-weight: 600;
}
.hero__tagline em { color: var(--accent); font-style: normal; }
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem); opacity: .6;
  max-width: 480px; margin: 0 auto 3rem;
  font-weight: 400; line-height: 1.6;
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 100px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .2s var(--ease); border: 1.5px solid transparent;
  text-decoration: none; letter-spacing: .01em;
}
.btn--primary {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--outline {
  background: transparent; color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.3);
}
.btn--outline:hover { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--sm { padding: .55rem 1.25rem; font-size: .82rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── About ───────────────────────────────────────────────── */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__img-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about__img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about__text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.25rem; }
.about__text p { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.8; }
.about__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chip {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: .4rem 1rem;
  font-size: .8rem; font-weight: 500; color: var(--ink-soft);
  display: flex; align-items: center; gap: .4rem;
}
.chip svg { flex-shrink: 0; color: var(--accent); }

/* ── Book ────────────────────────────────────────────────── */
.book__widget {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); min-height: 350px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--border);
}
.book__note {
  text-align: center; margin-top: 1.25rem;
  font-size: .9rem; color: var(--mid);
}
.book__note strong { color: var(--accent); font-weight: 600; }

/* ── Rooms ───────────────────────────────────────────────── */
.rooms__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.room-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .25s var(--ease);
  border: 1px solid var(--border);
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.room-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-alt); }
.room-card__img-placeholder {
  width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--bg-alt), var(--border));
  display: flex; align-items: center; justify-content: center; font-size: 2rem; opacity: .4;
}
.room-card__body { padding: 1.25rem; }
.room-card__body h3 { font-size: .95rem; margin-bottom: .35rem; }
.room-card__body p { font-size: .85rem; color: var(--mid); line-height: 1.5; }

.amenities { margin-top: 3.5rem; }
.amenities h3 { font-size: 1.2rem; margin-bottom: 1.5rem; }
.amenities__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.amenity {
  display: flex; align-items: center; gap: .75rem;
  font-size: .9rem; color: var(--ink-soft);
}
.amenity__icon { font-size: 1.2rem; flex-shrink: 0; }

/* ── Properties ──────────────────────────────────────────── */
.properties__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.prop-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); display: flex; flex-direction: column;
}
.prop-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-alt); }
.prop-card__img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.15); font-size: 3rem;
}
.prop-card__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.prop-card__body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.prop-card__body p { font-size: .95rem; color: var(--mid); flex: 1; line-height: 1.6; }
.prop-card__link { margin-top: 1.25rem; }
.prop-card__listings { display: flex; flex-direction: column; gap: .4rem; margin-top: 1.25rem; }
.prop-card__listings a {
  font-size: .88rem; color: var(--accent); font-weight: 500;
  transition: color .2s var(--ease);
}
.prop-card__listings a:hover { color: var(--accent-hover); }

/* ── Monthly Rentals ─────────────────────────────────────── */
.rentals__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.rental-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column;
  transition: border-color .2s var(--ease);
}
.rental-card:hover { border-color: rgba(255,255,255,.25); }
.rental-card__price {
  font-size: 1.6rem; color: var(--accent); margin: .5rem 0;
  font-weight: 700;
}
.rental-card h3 { font-size: 1.1rem; color: var(--white); font-weight: 600; }
.rental-card p { font-size: .9rem; color: rgba(255,255,255,.6); }
.rental-card__detail {
  font-size: .8rem; color: rgba(255,255,255,.4);
  margin: .5rem 0 1.5rem; font-weight: 500;
}
.rental-card .btn { margin-top: auto; }

/* ── Local Guide ─────────────────────────────────────────── */
.guide__tabs {
  display: flex; gap: .5rem; margin-bottom: 2.5rem;
  flex-wrap: wrap; justify-content: center;
}
.guide__tab {
  padding: .55rem 1.4rem; border-radius: 100px;
  background: var(--white); border: 1px solid var(--border);
  font-family: var(--font-body); font-size: .88rem; font-weight: 500;
  cursor: pointer; color: var(--mid);
  transition: all .2s var(--ease);
}
.guide__tab.active, .guide__tab:hover {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.guide__panel { display: none; }
.guide__panel.active { display: block; }
.guide__entries { display: grid; gap: 1rem; }
.guide__entry {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.guide__entry:hover { box-shadow: var(--shadow-md); }
.guide__entry h4 { font-size: .95rem; margin-bottom: .4rem; }
.guide__entry p { font-size: .9rem; color: var(--ink-soft); white-space: pre-line; line-height: 1.7; }
.guide__empty { color: var(--mid); font-style: italic; padding: 2rem 0; text-align: center; }

/* ── Chat Widget ─────────────────────────────────────────── */
.chat-bubble {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-lg);
  transition: all .2s var(--ease);
  border: none;
}
.chat-bubble:hover { transform: scale(1.05); background: var(--accent); }
.chat-bubble svg { width: 24px; height: 24px; }

.chat-widget {
  position: fixed; bottom: 5.5rem; right: 2rem; z-index: 800;
  width: 380px; max-height: 540px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(.95); opacity: 0;
  pointer-events: none; transition: all .25s var(--ease);
}
.chat-widget.open {
  transform: translateY(0) scale(1); opacity: 1; pointer-events: all;
}
.chat-widget__header {
  background: var(--ink); color: var(--white);
  padding: 1.1rem 1.5rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-widget__header h3 { font-size: .95rem; font-weight: 600; }
.chat-widget__close {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 0;
  transition: color .2s var(--ease);
}
.chat-widget__close:hover { color: var(--white); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.msg {
  max-width: 82%; padding: .75rem 1rem; border-radius: var(--radius-lg);
  font-size: .88rem; line-height: 1.6;
}
.msg--bot {
  background: var(--bg-alt); color: var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
  align-self: flex-start;
}
.msg--user {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
  align-self: flex-end;
}
.msg--typing { opacity: .5; font-style: italic; }
.msg--bot table {
  width: 100%; border-collapse: collapse; margin: .5rem 0;
  font-size: .82rem;
}
.msg--bot th, .msg--bot td {
  padding: .3rem .5rem; border: 1px solid var(--border);
  text-align: left;
}
.msg--bot th { background: var(--bg); font-weight: 600; }
.msg--bot ul { margin: .25rem 0; padding-left: 1.2rem; }
.msg--bot li { margin-bottom: .15rem; }
.msg--bot strong { font-weight: 600; }
.chat-widget__input {
  padding: .85rem; border-top: 1px solid var(--border);
  display: flex; gap: .5rem;
}
.chat-widget__input input {
  flex: 1; border: 1px solid var(--border); border-radius: 100px;
  padding: .6rem 1rem; font-size: .88rem; font-family: var(--font-body);
  background: var(--bg); color: var(--ink);
  outline: none; transition: border-color .2s var(--ease);
}
.chat-widget__input input:focus { border-color: var(--accent); }
.chat-widget__input button {
  background: var(--ink); color: #fff;
  border: none; border-radius: 100px;
  padding: .6rem 1.1rem; cursor: pointer; font-size: .85rem; font-weight: 600;
  font-family: var(--font-body);
  transition: background .2s var(--ease);
}
.chat-widget__input button:hover { background: var(--accent); }

/* ── Contact ─────────────────────────────────────────────── */
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
.contact__info h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.contact__info p { font-size: .95rem; margin-bottom: .5rem; color: var(--ink-soft); }
.contact__social { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }
.contact__social a {
  display: flex; align-items: center; gap: .6rem;
  font-size: .9rem; color: var(--ink-soft); font-weight: 500;
  transition: color .2s var(--ease);
}
.contact__social a:hover { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__group { display: flex; flex-direction: column; gap: .4rem; }
.form__group label {
  font-size: .82rem; font-weight: 600;
  color: var(--ink-soft); letter-spacing: .02em;
}
.form__group input,
.form__group select,
.form__group textarea {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: .7rem .9rem; font-size: .92rem; font-family: var(--font-body);
  background: var(--white); color: var(--ink); outline: none;
  transition: border-color .2s var(--ease);
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form__group textarea { resize: vertical; min-height: 130px; }
.form__status { font-size: .9rem; padding: .5rem 0; }
.form__status--ok { color: #16a34a; }
.form__status--err { color: #dc2626; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark); color: rgba(255,255,255,.6);
  padding: 4rem 0 2.5rem;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer__brand h3 { color: var(--white); font-size: 1.15rem; margin-bottom: .75rem; }
.footer__brand p { font-size: .88rem; line-height: 1.7; }
.footer__col h4 { color: var(--white); font-size: .9rem; margin-bottom: .85rem; font-weight: 600; }
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: .45rem; }
.footer__col ul a { color: rgba(255,255,255,.5); font-size: .88rem; transition: color .2s var(--ease); }
.footer__col ul a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
  font-size: .8rem; opacity: .4; text-align: center;
}

/* ── Admin styles ─────────────────────────────────────────── */
.admin-nav {
  background: var(--bg-dark); color: var(--white);
  padding: 0 2rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-nav a { color: rgba(255,255,255,.6); font-size: .9rem; font-weight: 500; }
.admin-nav__links { display: flex; gap: 1.5rem; }
.admin-nav a:hover { color: var(--accent); }

.admin-body { background: var(--bg); min-height: 100vh; }
.admin-content { max-width: 1100px; margin: 0 auto; padding: 2rem 2rem; }
.admin-title { font-size: 1.5rem; margin-bottom: 1.5rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem; text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat-card__num { font-size: 2.2rem; color: var(--accent); font-weight: 700; }
.stat-card__label { font-size: .85rem; color: var(--mid); font-weight: 500; }

.admin-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.admin-table th {
  background: var(--bg-dark); color: var(--white);
  font-size: .82rem; padding: .8rem 1rem;
  text-align: left; font-weight: 600; letter-spacing: .02em;
}
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .88rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-alt); }

.badge {
  display: inline-block; padding: .2rem .7rem; border-radius: 100px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
}
.badge--green { background: #dcfce7; color: #166534; }
.badge--red { background: #fee2e2; color: #991b1b; }
.badge--blue { background: #dbeafe; color: #1e40af; }

.admin-form {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-sm); margin-bottom: 2rem; border: 1px solid var(--border);
}
.admin-form h3 { font-size: 1rem; margin-bottom: 1rem; }

.flash {
  padding: .85rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem;
  font-size: .9rem; font-weight: 500;
}
.flash--success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash--error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-dark);
}
.admin-login-box {
  background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  width: 100%; max-width: 380px; box-shadow: var(--shadow-lg);
}
.admin-login-box h1 { font-size: 1.4rem; margin-bottom: .25rem; }
.admin-login-box p { color: var(--mid); font-size: .9rem; margin-bottom: 2rem; }

/* ── Dashboard quick links ────────────────────────────────── */
.quicklinks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.quicklink-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; text-decoration: none; color: var(--ink);
  transition: all .2s var(--ease); box-shadow: var(--shadow-sm);
}
.quicklink-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); color: var(--ink); }
.quicklink-card__icon { font-size: 1.6rem; flex-shrink: 0; margin-top: .1rem; }
.quicklink-card__title { font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }
.quicklink-card__desc { font-size: .82rem; color: var(--mid); line-height: 1.5; }

/* ── Knowledge base editor ───────────────────────────────── */
.kb-section {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: .75rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.kb-section--inactive { opacity: .6; }
.kb-section__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; cursor: pointer; user-select: none;
  transition: background .15s var(--ease);
}
.kb-section__header:hover { background: var(--bg-alt); }
.kb-section__title { display: flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 600; }
.kb-section__arrow {
  font-size: .65rem; color: var(--mid); transition: transform .2s var(--ease);
  display: inline-block;
}
.kb-section--open .kb-section__arrow { transform: rotate(90deg); }
.kb-section__key { font-size: .75rem; color: var(--light); font-family: monospace; }
.kb-section__body {
  display: none; padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--border);
}
.kb-section--open .kb-section__body { display: block; padding-top: 1.25rem; }

/* ── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .properties__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form__row { grid-template-columns: 1fr; }

  .hero__tagline { font-size: 2.2rem; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .nav__inner { padding: 0 1.25rem; }

  .chat-widget { width: calc(100vw - 2rem); right: 1rem; }
  .chat-bubble { bottom: 1.5rem; right: 1.5rem; }

  .admin-form .form__row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .quicklinks { grid-template-columns: 1fr; }
}
