.grid {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.grid.tour-section {
  margin: 6px auto;
  padding: 0 20px 12px;
}

.grid.single {
  grid-template-columns: 1fr;
}

#favorites-empty[hidden] {
  display: none;
}

.guide-tours-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
  justify-content: start;
}

@media (max-width: 640px) {
  .guide-tours-grid {
    grid-template-columns: 1fr;
  }
}

.tour-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.destination-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

.destination-hero {
  width: 100%;
  max-width: 1200px;
  padding: 44px 20px 46px;
}

.destination-hero__card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(28px, 3.2vw, 52px);
}

.destination-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.destination-lead,
.destination-section__lead {
  max-width: 1040px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.destination-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.destination-summary span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.destination-section {
  margin-top: 44px;
}

.destination-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.destination-section p,
.destination-section li {
  line-height: 1.7;
}

.destination-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

.destination-checklist,
.destination-route-grid article,
.destination-faq details {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: var(--card);
}

.destination-checklist h3,
.destination-route-grid h3 {
  margin-top: 0;
}

.destination-checklist ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.destination-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.destination-tour-grid {
  max-width: none;
  margin: 22px 0 0;
  padding: 0;
}

.destination-all-tours {
  margin-top: 24px;
  text-align: center;
}

.destination-faq {
  display: grid;
  gap: 12px;
}

.destination-faq summary {
  cursor: pointer;
  font-weight: 800;
}

.destination-faq p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Hub hero with a photo: text | image on desktop, stacked on mobile. */
.destination-hero__card--media {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
}

.destination-hero__media {
  margin: 0;
}

.destination-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
}

.destination-hero__media figcaption,
.destination-route__media figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.destination-route__media {
  margin: 0 0 14px;
}

/* The whole destinations-index card is one click target: the title link is
   stretched over the card, so every pixel navigates to the hub. */
.destination-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.destination-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.destination-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.destination-card__cta {
  margin-top: auto;
  margin-bottom: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.destination-card:hover .destination-card__cta span {
  margin-left: 4px;
}

.destination-card__cta span {
  transition: margin-left 0.15s ease;
}

/* Inline icons in hero chips and the checklist. */
.destination-icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent);
}

.destination-summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.destination-checklist__list {
  list-style: none;
  padding-left: 0;
}

.destination-checklist__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
}

.destination-checklist__list .destination-icon {
  margin-top: 3px;
}

/* FAQ rows get an explicit open/close affordance. */
.destination-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.destination-faq summary::-webkit-details-marker {
  display: none;
}

.destination-faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.destination-faq details[open] summary::after {
  transform: rotate(45deg);
}

.destination-route__media img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  /* Bird heads live in the upper third of most photos; keep them in frame. */
  object-position: 50% 30%;
  border-radius: 12px;
}

@media (max-width: 760px) {
  .destination-hero__card--media {
    grid-template-columns: minmax(0, 1fr);
  }

  .destination-hero__media img {
    min-height: 200px;
    max-height: 260px;
  }
}

body[data-theme='light'] .destination-summary span,
body[data-theme='light'] .destination-checklist,
body[data-theme='light'] .destination-route-grid article,
body[data-theme='light'] .destination-faq details {
  border-color: rgba(15, 27, 45, 0.1);
}

@media (max-width: 760px) {
  .destination-page,
  .destination-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .destination-intro,
  .destination-route-grid {
    grid-template-columns: 1fr;
  }
}


.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

body[data-theme='light'] .card {
  border-color: rgba(15, 27, 45, 0.08);
  box-shadow: 0 16px 32px rgba(15, 27, 45, 0.08);
}

body[data-theme='light'] .tour-card__body {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: rgba(15, 27, 45, 0.08);
}

body[data-theme='light'] .tour-card__cta {
  border-top-color: rgba(15, 27, 45, 0.08);
}

body[data-theme='light'] .tour-card__button {
  box-shadow: 0 10px 20px rgba(15, 27, 45, 0.12);
}

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

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.tour-card {
  height: 100%;
  position: relative;
}

.tour-card .card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.tour-card__media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.tour-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.favorite-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15, 27, 45, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: #1a2b3c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 120ms ease, box-shadow 120ms ease, color 150ms ease, border-color 150ms ease;
}

.favorite-toggle svg {
  width: 18px;
  height: 18px;
  fill: transparent;
}

.favorite-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
}

.favorite-toggle:focus-visible {
  outline: 2px solid rgba(74, 176, 255, 0.7);
  outline-offset: 2px;
}

.favorite-toggle.is-active {
  color: #e2574c;
  border-color: rgba(226, 87, 76, 0.5);
  box-shadow: 0 12px 24px rgba(226, 87, 76, 0.25);
}

.favorite-toggle.is-active svg {
  fill: currentColor;
}

body[data-theme='light'] .favorite-toggle {
  border-color: rgba(15, 27, 45, 0.15);
  box-shadow: 0 10px 18px rgba(15, 27, 45, 0.15);
}

body[data-theme='light'] .favorite-toggle.is-active {
  box-shadow: 0 12px 22px rgba(226, 87, 76, 0.2);
}

.tour-card__body {
  padding: 18px;
  gap: 10px;
  background: rgba(5, 11, 19, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tour-card__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.tour-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.tour-card__meta {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tour-card__meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}

.tour-card__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex: 0 0 auto;
}

.tour-card__icon svg {
  width: 18px;
  height: 18px;
}

.tour-card__price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.tour-card__price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.tour-card__price-value {
    color: #247a35;
  font-weight: 800;
  font-size: 1.05rem;
}

.tour-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tour-card__cta--end {
  justify-content: flex-end;
}

.tour-card__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(120deg, #f3b64b, #e99a2d);
  color: #1a1200;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.tour-card__button::after {
  content: ">";
  font-weight: 900;
}

@media (max-width: 640px) {
  .tour-card__media {
    height: 200px;
  }

  .tour-card__title {
    font-size: 1.2rem;
  }

  .favorite-toggle {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .favorite-toggle svg {
    width: 16px;
    height: 16px;
  }
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin-top: auto;
}

.pill {
  display: inline-flex;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-pill.active {
  background: rgba(139, 229, 100, 0.12);
  border-color: rgba(139, 229, 100, 0.45);
  color: #c9f7b4;
}

.status-pill.inactive {
  background: rgba(255, 123, 123, 0.12);
  border-color: rgba(255, 123, 123, 0.45);
  color: #ffb6b6;
}

/* Tour publish toggle */
.tour-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  cursor: pointer;
}

.tour-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tour-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 123, 123, 0.35);
  border-radius: 22px;
  transition: background 200ms ease;
}

.tour-toggle__slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 200ms ease;
}

.tour-toggle input:checked + .tour-toggle__slider {
  background: rgba(139, 229, 100, 0.55);
}

.tour-toggle input:checked + .tour-toggle__slider::before {
  transform: translateX(18px);
}

.tour-toggle input:disabled + .tour-toggle__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Featured toggle — amber colour to distinguish from publish toggle */
.tour-toggle__slider--featured {
  background: rgba(200, 140, 40, 0.3);
}

.tour-toggle input:checked + .tour-toggle__slider--featured {
  background: rgba(245, 180, 0, 0.7);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 30px;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-link:hover {
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.page-link.is-active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #031522;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.page-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ellipsis {
  opacity: 0.6;
  padding: 0 4px;
}

.photo-credit {
  font-size: 0.4rem;
  color: rgba(244, 247, 251, 0.68);
  opacity: 0.85;
  line-height: 1.25;
}


.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-link:hover,
.card-link:focus {
  color: inherit;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35), 0 0 18px rgba(71, 176, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.14);
}

body[data-theme='light'] .card:hover {
  box-shadow: 0 22px 42px rgba(15, 27, 45, 0.12), 0 0 16px rgba(46, 125, 220, 0.12);
  border-color: rgba(15, 27, 45, 0.16);
}

.card.no-hover:hover {
  transform: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.08);
}

.card.no-shadow {
  box-shadow: none;
}

.card.no-shadow:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.08);
}

.tour-detail .card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.08);
}

.tour-detail .card {
  box-shadow: none;
}

.card-body button,
.card-body .button,
.card-body .ghost {
  align-self: flex-start;
  width: auto;
}

.map-open-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(139, 229, 100, 0.18), rgba(71, 176, 255, 0.22));
  color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.meta-row.align-right {
  justify-content: flex-end;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.site-footer {
  padding: 40px 20px 24px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(5, 11, 19, 0.98), rgba(5, 11, 19, 0.9));
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer-brand__title {
  font-weight: 800;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  transition: transform 120ms ease, border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--accent-2);
  border-color: rgba(74, 176, 255, 0.5);
  background: linear-gradient(135deg, rgba(139, 229, 100, 0.12), rgba(74, 176, 255, 0.14));
  text-decoration: none;
  transform: translateY(-1px);
}

.social-links--contact {
  margin: 8px 0 22px;
}

.contact-social-section {
  margin-top: -18px;
}

.footer-col h2 {
  margin: 0 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent-2);
}

.footer-contact {
  margin-top: 10px;
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom__links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom__links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom__links a:hover {
  color: var(--text);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 720px) {
  .footer-bottom {
    align-items: flex-start;
  }
}

.form-row {
  display: grid;
  gap: 10px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  align-items: center;
  margin: 6px 0;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
}

.admin-list-row {
  display: grid;
  grid-template-columns: var(--columns, minmax(0, 1fr) minmax(0, 1fr) auto);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
}

.admin-list-row .row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  row-gap: 6px;
}

.locations-stack {
  grid-template-columns: 1fr;
}

.rich-text {
  display: grid;
  gap: 16px;
  line-height: 1.65;
}

.rich-text p {
  margin: 0;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 6px 0 2px;
}

.rich-text ul,
.rich-text ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.rich-text li {
  margin: 0;
}

.rich-text img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.rich-text figure {
  margin: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.rich-text figure img {
  width: 100%;
}

.rich-text figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card);
}

.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.thumb-row .gallery-item {
  flex: 0 0 auto;
  width: 120px;
  margin: 0;
}

.thumb-row .gallery-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.2s;
}

.thumb-row .gallery-item img:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.lightbox .nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-thumbs {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  overflow-x: auto;
  max-width: 90vw;
}

.lightbox-thumbs img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0.7;
  transition: opacity 120ms ease, transform 120ms ease, border-color 120ms ease;
}

.lightbox-thumbs img.active,
.lightbox-thumbs img:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: var(--accent-2);
}

.bird-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.bird-grid--collapsible .is-hidden {
  display: none;
}

.bird-grid-toggle {
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-2);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.bird-grid-toggle:hover {
  text-decoration: underline;
}

.bird-grid-toggle:focus-visible {
  outline: 2px solid rgba(74, 176, 255, 0.7);
  outline-offset: 2px;
}

.day-birds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 10px;
  margin-top: 6px;
  justify-content: start;
}

.bird-tile.small {
  padding: 8px;
  grid-template-columns: 72px 1fr;
}

.bird-tile.small img {
  width: 72px;
  height: 72px;
}

.bird-tile {
  display: grid;
  gap: 6px;
  align-items: center;
  grid-template-columns: 60px 1fr;
  min-height: 86px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: box-shadow 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.bird-tile:hover {
  text-decoration: none;
  border-color: rgba(74, 176, 255, 0.35);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), 0 0 18px rgba(74, 176, 255, 0.18);
  transform: translateY(-1px);
}

.bird-tile img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-spot-list {
  display: grid;
  gap: 12px;
}

.tour-spot {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.tour-spot:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28), 0 0 18px rgba(71, 176, 255, 0.18);
  text-decoration: none;
}

.tour-spot:focus {
  text-decoration: none;
}

.tour-spot img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tour-spot-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.tour-spot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
}

.tour-spot-desc {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.tour-spot-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 640px) {
  .tour-spot {
    grid-template-columns: 1fr;
  }

  .tour-spot img {
    width: 100%;
    height: 160px;
  }
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.checkbox-tile {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.organizer {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.organizer img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.admin-table th {
  color: var(--muted);
}

.avatar-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.avatar-thumb.placeholder {
  background: rgba(255, 255, 255, 0.08);
}

.admin-table .actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-links.mobile {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  position: absolute;
  right: 20px;
  top: 60px;
  background: rgba(5, 11, 19, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  z-index: 30;
}

.nav-links.mobile a {
  display: block;
  width: 100%;
}

.nav-links.mobile a:not(.button) {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-links.mobile a:not(.button):hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.social-links--mobile {
  align-self: stretch;
  justify-content: center;
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links.mobile .social-link {
  width: 36px;
  display: inline-flex;
}

.nav-links.open {
  display: flex;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 19, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.auth-modal-overlay.open {
  display: flex;
}

.auth-modal {
  width: 420px;
  max-width: 100%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px 22px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.auth-modal__header h2 {
  margin: 0 0 6px;
  text-align: center;
}

.auth-modal__header p {
  margin: 0 0 10px;
  text-align: center;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin: 8px 0 2px;
}

.oauth-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff;
  color: #1f1f1f;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  justify-content: center;
}

.oauth-btn.google-btn {
  background: #ffffff;
  border-color: #dadce0;
  color: #202124;
}

.oauth-btn.google-btn:hover {
  background: #f7f8f8;
}

.oauth-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  margin: 12px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.section-divider {
  max-width: 1200px;
  margin: 12px auto 18px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
}

.modal-form {
  display: grid;
  gap: 10px;
}

.input-label {
  font-size: 0.95rem;
  color: var(--muted);
}

.primary.block,
.oauth-btn.block {
  width: 100%;
  text-align: center;
}

.auth-footnote {
  text-align: center;
  color: var(--muted);
  margin: 10px 0 0;
}

.form-errors {
  background: rgba(255, 124, 124, 0.08);
  border: 1px solid rgba(255, 124, 124, 0.3);
  color: #ffb6b6;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  display: grid;
  gap: 6px;
}

.alert-success {
  background: rgba(139, 229, 100, 0.1);
  border: 1px solid rgba(139, 229, 100, 0.4);
  color: #c9f7b4;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}

body.modal-open {
  overflow: hidden;
}

.form-wizard {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  gap: 14px;
}

.has-sticky-save {
  padding-bottom: 110px;
}

.sticky-save-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 32px));
  z-index: 60;
  pointer-events: none;
}

.sticky-save-inner {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(5, 11, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.form-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}

.form-section>summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.target-bird-field {
  display: block;
}

.target-bird-combo {
  position: relative;
}

.target-bird-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(5, 11, 19, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.target-bird-dropdown[hidden] {
  display: none;
}

.target-bird-option {
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.target-bird-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.target-bird-empty {
  color: var(--muted);
  padding: 6px 8px;
}

.inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.repeatable-list {
  display: grid;
  gap: 10px;
}

.repeatable-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ghost {
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.repeater-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.repeater-actions>* {
  min-width: 0;
}

.repeater-actions .primary,
.repeater-actions .ghost {
  padding: 8px 14px;
  width: auto;
}

.repeater-actions [data-clear] {
  margin-left: auto;
}

.remove-row {
  padding: 4px 10px;
  font-size: 0.9rem;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.panel .remove-row {
  justify-self: end;
}

.ghost.danger {
  border-color: #ff7b7b;
  color: #ffb6b6;
}

.button.ghost {
  box-shadow: none;
  border-style: solid;
}

.action-bar {
  max-width: 1200px;
  margin: 10px auto 60px;
  padding: 0 20px;
  text-align: right;
}

.favorites-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 28, 0.95);
  color: var(--text);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.favorites-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.favorites-toast__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e2574c;
}

.favorites-toast__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.favorites-toast__text {
  font-weight: 700;
}

body[data-theme='light'] .favorites-toast {
  border-color: rgba(15, 27, 45, 0.1);
  background: rgba(255, 255, 255, 0.96);
  color: #1a2b3c;
  box-shadow: 0 20px 40px rgba(15, 27, 45, 0.15);
}

body[data-theme='light'] .favorites-toast__icon {
  background: rgba(15, 27, 45, 0.06);
}
