:root {
  --bg: #f6f1f4;
  --bg-soft: #fbf8fa;
  --panel: #ffffff;
  --ink: #2a1f28;
  --muted: #6f5a69;
  --brand: #a84a6d;
  --brand-dark: #8f3f5d;
  --brand-soft: #f3e2ea;
  --line: #e5d6de;
  --good: #2d7f5f;
  --bad: #a0344d;
  --shadow: 0 14px 40px rgba(68, 35, 52, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: Manrope, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% -5%, #f1d9e4 0%, transparent 38%),
    radial-gradient(circle at 95% 0%, #e7ced9 0%, transparent 34%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  padding-bottom: 2.6rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-logo {
  width: 182px;
  height: 58px;
  border-radius: 12px;
  object-fit: contain;
  background: transparent;
}

.nav-links {
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a {
  border-radius: 14px;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  line-height: 1.1;
}

.nav-links a:hover {
  background: #f0e0e8;
  color: var(--brand-dark);
  border-color: #ddc2d0;
}

.nav-links a[aria-current='page'] {
  color: var(--brand-dark);
  background: #edd8e2;
  border-color: #d8b7c7;
}

.hero-content {
  padding: 3.1rem 0 1.1rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.12;
}

h1 {
  margin: 0.45rem 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 13ch;
}

.hero-line {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.hero-line + .hero-line {
  margin-top: 0.2rem;
}

.hero-copy {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.hero-copy p {
  margin: 0.15rem 0 0;
}

main {
  display: grid;
  gap: 1.1rem;
  padding-bottom: 2.8rem;
}

.directions-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
  padding-top: 0.2rem;
}

.directions-copy,
.map-frame {
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.directions-copy {
  background: linear-gradient(180deg, #fff8fb 0%, #fff 100%);
  padding: 1.55rem;
}

.directions-copy h2 {
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  max-width: 12ch;
}

.directions-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 56ch;
}

.directions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.map-frame {
  overflow: hidden;
  min-height: 320px;
  background: #f5ebf0;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.section-head p {
  margin-top: -0.2rem;
  color: var(--muted);
}

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

.card,
.list-item,
.mini-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body,
.item-body,
.mini-card-body {
  padding: 0.85rem;
}

.card-body h3 {
  margin: 0.45rem 0 0;
}

.bunny-inline-meta {
  font-family: Manrope, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.bunny-details {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.bunny-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.bunny-description {
  margin-top: 0.1rem;
  color: var(--ink);
  font-size: 0.96rem;
}

.bunny-price {
  margin: 0.4rem 0 0;
  color: var(--brand);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}

.meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill {
  display: inline-block;
  font-weight: 800;
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 0.28rem 0.64rem;
}

.pill.available {
  color: var(--good);
  background: #ddf3e8;
}

.pill.reserved {
  color: #8a6812;
  background: #fef0c9;
}

.pill.adopted {
  color: #5f6670;
  background: #e8edf3;
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  box-shadow: 0 8px 20px rgba(168, 74, 109, 0.24);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(168, 74, 109, 0.26);
}

.button.secondary {
  background: #f4e7ee;
  color: #563145;
  box-shadow: none;
}

.button.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.form {
  display: grid;
  gap: 0.72rem;
}

.form.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form.compact label:last-of-type,
.form.compact .row,
.form.compact textarea,
.form.compact h2,
.editor-toolbar,
.rich-editor {
  grid-column: 1 / -1;
}

.form.compact h2 {
  margin: 0 0 0.15rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: #513a49;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.66rem;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus,
.rich-editor:focus {
  outline: 2px solid #dd9cb6;
  outline-offset: 1px;
  border-color: #d28aa7;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status {
  min-height: 1.2em;
  margin: 0.3rem 0;
  color: var(--muted);
}

.item-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.actions,
.icon-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.36rem;
}

.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #4d2f3e;
  border-radius: 9px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.empty {
  color: var(--muted);
}

.footer {
  padding: 0.85rem 0 2.3rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.contact-intro {
  margin-top: 0;
  font-size: 1.02rem;
}

.hidden,
.trap {
  display: none !important;
}

.admin-shell {
  padding: 1.2rem 0 2.8rem;
  display: grid;
  gap: 1rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.admin-header h1 {
  font-size: clamp(1.9rem, 5.8vw, 3rem);
  margin: 0.2rem 0 0;
  max-width: 12ch;
}

.auth-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.auth-row .status {
  width: 100%;
  text-align: right;
  margin: 0 0 0.2rem;
}

.auth-row a.button {
  display: inline-flex;
  align-items: center;
}

.tabs-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.tabs-row .button {
  box-shadow: none;
  white-space: nowrap;
  min-height: 44px;
}

.top-actions {
  margin-bottom: 0.45rem;
}

.admin-form {
  margin-bottom: 1rem;
}

.admin-bunny-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.mini-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f4ece1;
}

.mini-card-body h3 {
  margin: 0 0 0.25rem;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 0.62rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  background: #faf4f7;
  color: #553747;
}

.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.editor-toolbar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.editor-field {
  grid-column: 1 / -1;
}

.editor-field .editor-toolbar {
  margin-top: 0.22rem;
  margin-bottom: 0.18rem;
}

.editor-btn {
  min-width: 2.5rem;
  padding: 0.45rem 0.7rem;
}

.rich-editor {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.66rem;
  background: #fff;
  line-height: 1.45;
}

.rich-editor-short {
  min-height: 72px;
}

.news-headline {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.2;
}

.news-body {
  margin-top: 0.5rem;
}

.news-body p:first-child,
.news-headline p:first-child {
  margin-top: 0;
}

.news-image-grid {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.news-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(33, 18, 26, 0.84);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox.hidden {
  display: none;
}

.lightbox-image {
  max-width: min(100%, 980px);
  max-height: 88vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  color: #222;
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
  }

  .brand-logo {
    width: 145px;
    height: 46px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .nav-links a {
    min-height: 44px;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 0.96rem;
    padding: 0.45rem 0.35rem;
  }

  .hero-content {
    padding-top: 1.4rem;
  }

  .directions-section {
    grid-template-columns: 1fr;
  }

  .form.compact {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header h1 {
    font-size: clamp(1.7rem, 8.5vw, 2.2rem);
  }

  .admin-brand .brand-logo {
    width: 132px;
    height: 42px;
  }

  .auth-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .auth-row .status {
    grid-column: 1 / -1;
    text-align: left;
  }

  .auth-row .button {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-width: 0;
  }

  .tabs-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  #tab-users {
    grid-column: 1 / -1;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}
