﻿:root {
  --primary-color: #157c62;
  --secondary-color: #339a80;
  --text-color: #33443f;
  --body-muted: #55635f;
  --muted-text: #67766f;
  --light-bg: #e4e7ec;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(26, 37, 46, 0.12);
  --transition: all 0.28s ease;
}

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

body {
  font-family: "Cabin", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(180deg, #f7fbf9 0%, var(--light-bg) 55%, #edf2f0 100%);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-page {
  width: min(1240px, calc(100% - 40px));
  margin: 26px auto 48px;
}

.panel,
.attraction-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 16px;
}

.admin-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.admin-header h1 {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.15;
}

.admin-intro {
  color: var(--muted-text);
}

.admin-note {
  margin-top: 0.3rem;
  color: var(--primary-color);
  font-size: 0.94rem;
  font-weight: 700;
}

.toolbar-stack {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 10px;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(51, 154, 128, 0.08);
  border: 1px solid rgba(51, 154, 128, 0.22);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.admin-link:hover,
.admin-link:focus-visible {
  transform: translateY(-2px);
}

.admin-link--ghost {
  background: var(--white);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.toolbar-label {
  color: var(--muted-text);
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: 0.15rem;
}

.filter-btn,
.neutral-btn,
.danger-btn {
  border: 1px solid rgba(21, 124, 98, 0.18);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-color);
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.is-active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.neutral-btn {
  background: rgba(51, 154, 128, 0.08);
}

.danger-btn {
  border-color: rgba(190, 58, 45, 0.24);
  color: #9c2f23;
  background: rgba(190, 58, 45, 0.08);
}

.filter-btn:hover,
.neutral-btn:hover,
.danger-btn:hover,
.filter-btn:focus-visible,
.neutral-btn:focus-visible,
.danger-btn:focus-visible {
  transform: translateY(-2px);
}

.status-text {
  margin-bottom: 14px;
  color: var(--muted-text);
  font-size: 0.95rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.attraction-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

.attraction-card:hover {
  transform: translateY(-6px);
}

.attraction-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.attraction-card:hover img {
  transform: scale(1.04);
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-badge--pending {
  background: rgba(201, 100, 43, 0.12);
  border-color: rgba(201, 100, 43, 0.24);
  color: #b25523;
}

.status-badge--approved {
  background: rgba(21, 124, 98, 0.12);
  border-color: rgba(21, 124, 98, 0.24);
  color: var(--primary-color);
}

.status-badge--rejected {
  background: rgba(190, 58, 45, 0.12);
  border-color: rgba(190, 58, 45, 0.24);
  color: #9c2f23;
}

.card-date {
  color: var(--muted-text);
  font-size: 0.82rem;
}

.card-content h3 {
  margin: 0 0 0.35rem;
  color: var(--primary-color);
  font-size: 1.18rem;
  line-height: 1.18;
}

.card-content p {
  color: var(--body-muted);
}

.card-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.card-meta span {
  display: block;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

.card-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.card-link,
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--transition);
  cursor: pointer;
}

.card-link {
  background: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
}

.card-link--instagram {
  background: rgba(201, 100, 43, 0.08);
  color: #b25523;
  border: 1px solid rgba(201, 100, 43, 0.22);
}

.card-link--whatsapp {
  background: rgba(18, 140, 77, 0.08);
  color: #128c4d;
  border: 1px solid rgba(18, 140, 77, 0.22);
}

.card-link--email {
  background: rgba(52, 88, 164, 0.08);
  color: #3458a4;
  border: 1px solid rgba(52, 88, 164, 0.22);
}

.card-link--phone {
  background: rgba(120, 97, 198, 0.08);
  color: #6e56cf;
  border: 1px solid rgba(120, 97, 198, 0.22);
}

.card-button {
  background: rgba(51, 154, 128, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(51, 154, 128, 0.22);
  width: 100%;
}

.card-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.card-actions-inline .card-link {
  flex: 1 1 0;
  min-width: 0;
}

.card-actions-inline .card-link--icon {
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.card-link__icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.card-link:hover,
.card-button:hover,
.card-link:focus-visible,
.card-button:focus-visible {
  transform: translateY(-2px);
}

.card-review-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.review-btn {
  border: 1px solid rgba(21, 124, 98, 0.18);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-color);
  padding: 9px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.review-btn--edit {
  background: rgba(52, 88, 164, 0.08);
  border-color: rgba(52, 88, 164, 0.22);
  color: #3458a4;
}

.review-btn--approve {
  background: rgba(21, 124, 98, 0.08);
  border-color: rgba(21, 124, 98, 0.22);
  color: var(--primary-color);
}

.review-btn--reject {
  background: rgba(190, 58, 45, 0.08);
  border-color: rgba(190, 58, 45, 0.22);
  color: #9c2f23;
}

.review-btn:hover,
.review-btn:focus-visible {
  transform: translateY(-2px);
}

.review-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.empty-state {
  margin-top: 0.8rem;
  border: 1px dashed rgba(21, 124, 98, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--body-muted);
  text-align: center;
  padding: 22px;
}

.empty-state[hidden] {
  display: none;
}

.edit-dialog {
  width: min(760px, calc(100% - 24px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 28px 60px rgba(26, 37, 46, 0.24);
}

.edit-dialog::backdrop {
  background: rgba(25, 34, 42, 0.46);
  backdrop-filter: blur(4px);
}

.edit-form {
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
}

.edit-form__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.edit-form__header h2 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.edit-hint {
  color: var(--muted-text);
  font-size: 0.94rem;
}

.dialog-close {
  border: 1px solid rgba(21, 124, 98, 0.18);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-color);
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.38rem;
}

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

.field label {
  color: var(--text-color);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(21, 124, 98, 0.18);
  border-radius: 14px;
  background: #fbfcfb;
  color: var(--text-color);
  font: inherit;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(51, 154, 128, 0.18);
  border-color: rgba(51, 154, 128, 0.42);
}

.edit-form__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-page {
    width: min(1240px, calc(100% - 24px));
  }

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

  .admin-header__actions {
    width: 100%;
  }

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

  .filter-btn,
  .neutral-btn,
  .danger-btn,
  .admin-link,
  .card-link,
  .card-button,
  .review-btn {
    width: 100%;
  }

  .toolbar-label {
    width: 100%;
    margin-bottom: -0.1rem;
  }

  .card-review-actions,
  .edit-grid,
  .edit-form__footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .edit-dialog {
    width: min(760px, calc(100% - 16px));
  }

  .edit-form__header {
    flex-direction: column;
  }

  .card-actions-inline .card-link--icon {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
  }
}
