/* Styles for native elements that replace the original React/Radix components. */

[hidden] { display: none !important; }

.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;
}

button { background: none; border: 0; padding: 0; color: inherit; }
.btn { border: 1px solid transparent; }

/* Selects */
:root {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2360716a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
select[data-slot=select-trigger] {
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  background-color: transparent;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 0 center;
  border: 1px solid #d8e0d8;
  border-radius: 6px;
  height: 36px;
  padding: 0 24px 0 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
select[data-slot=select-trigger]:focus-visible { outline: 3px solid #c66d43; outline-offset: 2px; }
.language-picker select[data-slot=select-trigger],
.currency select[data-slot=select-trigger] { padding-right: 20px; height: 36px; }
.finder-field select[data-slot=select-trigger] { padding-right: 22px !important; }
.booking-form select[data-slot=select-trigger],
.manager-form select[data-slot=select-trigger],
.admin-filters select[data-slot=select-trigger] {
  background-color: #fff;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding: 0 34px 0 12px;
  height: 44px;
  width: 100%;
}

/* Tabs */
.audience-tabs { display: inline-flex; align-items: center; gap: 2px; }
.audience-tabs [data-slot=tabs-trigger] { color: #173a33b3; font-weight: 500; white-space: nowrap; }
.audience-tabs [data-slot=tabs-trigger]:hover { color: #173a33; }

/* Dialogs */
dialog.modal {
  border: 0;
  border-radius: 16px;
  padding: 24px;
  width: calc(100% - 32px);
  max-width: 32rem;
  max-height: 90dvh;
  overflow: auto;
  color: var(--foreground);
  background: #fff;
  box-shadow: 0 25px 50px -12px #0000004d;
}
dialog.modal[open] { display: grid; gap: 16px; }
dialog.modal::backdrop { background: #0a1f1b99; }
.dialog-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: #173a33; background: #ffffffe6;
  box-shadow: 0 1px 4px #173a3326;
}
.dialog-close:hover { background: #f0f3eb; }
.booking-summary strong { font-weight: 700; }
[data-slot=dialog-header] { display: flex; flex-direction: column; gap: 8px; padding-right: 28px; }
[data-slot=dialog-title] { font-size: 18px; font-weight: 600; line-height: 1.2; }
[data-slot=dialog-description] { color: var(--muted-foreground); font-size: 14px; }
.privacy-dialog p { color: #536c5e; font-size: 15px; line-height: 1.7; }

/* Checkboxes */
.booking-form input[type=checkbox] {
  width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 2px 0 0;
  accent-color: #163f36; cursor: pointer;
}

/* Header & misc */
.brand > span { font-size: 24px; letter-spacing: .1em; white-space: nowrap; }
.header .brand > span { font-size: 24px; }
.footer .brand > span { font-size: 21px; }
@media (max-width: 1190px) { .header .brand > span { font-size: 20px; } }
@media (max-width: 640px) {
  .header .brand > span, .admin-top .brand > span { font-size: 15px; letter-spacing: .06em; }
}
.header-actions select { color: var(--foreground); }
.currency select[data-slot=select-trigger] { border: 0; font-weight: 700; }
.language-picker select[data-slot=select-trigger] { border: 0; }
.card-photo, .card-info h3 button, .card-bottom button, .destination-links button { cursor: pointer; }
.destination-links button { width: 100%; }
.footer-bottom button { font-size: inherit; color: inherit; }
.footer-bottom button:hover, .footer-bottom a:hover { color: #163f36; }

/* Credits page */
.credits-page h1 { font-family: Georgia, serif; font-size: 40px; font-weight: 400; margin: 30px 0; }
.credits-page ul { display: grid; gap: 22px; margin-top: 30px; padding-left: 20px; }
.credits-page a.u { text-decoration: underline; }
.credits-page .muted { color: #657867; margin-top: 35px; }

/* ===== Manager dashboard ===== */
.admin-top .admin-user { display: flex; align-items: center; gap: 18px; font-size: 14px; color: #60716a; }
.admin-top .admin-user form { display: inline; }
.link-button { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #163f36; text-decoration: underline; text-underline-offset: 3px; }
.btn-outline { color: #163f36; background: #fff; border: 1px solid #cedacc; }
.btn-outline:hover { background: #f0f3eb; }
.btn-danger { color: #fff; background: #a96450; }
.btn-danger:hover { background: #8f4f3d; }

.manager-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #dce4dc; border-radius: 7px; margin: 35px 0 25px; }
.manager-tabs a { padding: 8px 16px; border-radius: 4px; font-size: 13px; font-weight: 500; color: #173a33b3; }
.manager-tabs a[aria-current=page] { background: #163f36; color: #fff; }

.admin-filters { align-items: center; }
.admin-filters input[type=search] { flex: 1; min-width: 220px; max-width: 420px; height: 44px; }
.admin-filters select[data-slot=select-trigger] { width: auto; min-width: 190px; }
.admin-filters .btn { min-height: 44px; padding: 10px 18px; }

.requests-table table { width: 100%; border-collapse: collapse; }
.requests-table th { text-align: left; background: #eef2eb; padding: 16px; font-size: 13px; font-weight: 600; }
.requests-table td { vertical-align: top; padding: 18px 16px; font-size: 13px; border-top: 1px solid #e7ebe5; }
.requests-table tr:hover td { background: #fafbf8; }
.requests-table .empty { text-align: center; color: #748276; padding: 45px; }

.status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-new { background: #fde8dc; color: #9b4a24; }
.status-in_progress { background: #e6eef7; color: #2c4f75; }
.status-quoted { background: #f4efd9; color: #6d5a17; }
.status-confirmed { background: #e4efdd; color: #2f5b2a; }
.status-cancelled { background: #eeeeee; color: #6b6b6b; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 25px; font-size: 14px; }
.pagination a { text-decoration: underline; }

.admin-notice.error { background: #fbe4df; color: #8a2f20; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid #dce4dc; border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.panel h2 { font-family: Georgia, serif; font-weight: 400; font-size: 24px; }
.request-facts dt { color: #748276; font-size: 12px; }
.request-facts dd { margin: 3px 0 0; font-weight: 600; }
.request-facts div { min-width: 0; overflow-wrap: anywhere; }
.manager-form select[data-slot=select-trigger] { height: 50px; }
.manager-form .errorlist { color: #a33527; font-size: 13px; margin: 0; padding-left: 18px; }
.danger-zone { border-top: 1px solid #e7ebe5; padding-top: 18px; }

.admin-tour-grid .switch-label input { width: 18px; height: 18px; padding: 0; accent-color: #163f36; }
.admin-tour-grid .tour-meta { color: #748276; font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.admin-tour-grid .price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-tour-grid .inactive img { filter: grayscale(.8); opacity: .7; }

.login-card { max-width: 420px; margin: 80px auto; background: #fff; border: 1px solid #dce4dc; border-radius: 12px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.login-card h1 { font: 34px Georgia, serif; letter-spacing: -.02em; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.login-card input { border: 1px solid #d8e0d8; border-radius: 6px; padding: 12px; font-size: 16px; }
.login-card .form-error { margin: 0; }

@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-tour-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .admin-tour-grid { grid-template-columns: 1fr; }
  .admin-filters input[type=search], .admin-filters select[data-slot=select-trigger] { width: 100%; max-width: none; }
  .requests-table { overflow-x: auto; }
  .requests-table table { min-width: 820px; }
}
