/* ============================================================
   TOUR365 — pages.css
   Shared styles for public pages. Loaded by includes/head.php.
   Keeps individual PHP files free of <style> blocks.
   ============================================================ */

/* ── Flash messages ─────────────────────────────────────── */
.flash                { padding: 14px 20px; font-size: 14px; margin-bottom: 20px; }
.flash--ok            { background: #f0fff4; border: 1px solid #9de; color: #065; }
.flash--error         { background: #fff0f0; border: 1px solid #fcc; color: #c00; }

/* ── Dark page hero (tours, services, contact, etc.) ─────── */
.page-hero            { padding: 140px var(--pad) 80px; background: #06091a; }
.page-hero .sec-tag   { color: var(--yellow); }
.page-hero .sec-title { color: #fff; }
.page-hero .sec-title::after { background: var(--yellow); }

/* ── Auth pages (login, signup) ──────────────────────────── */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  padding: 80px var(--pad);
}
.auth-box {
  background: var(--white);
  border: 1px solid var(--border);
  max-width: 520px;
  width: 100%;
  padding: 48px;
}
.auth-logo      { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 28px; color: var(--ink); text-decoration: none; margin-bottom: 28px; letter-spacing: .04em; }
.auth-logo span { color: var(--blue); }
.auth-box h1    { font-size: clamp(36px, 5vw, 52px); margin-bottom: 36px; color: var(--ink); }
.auth-error     { background: #fff0f0; border: 1px solid #fcc; color: #c00; padding: 12px 16px; font-size: 13px; margin-bottom: 20px; }
.auth-success   { background: #f0fff4; border: 1px solid #9ef; color: #065; padding: 20px; font-size: 14px; line-height: 1.6; }
.auth-footer    { margin-top: 24px; font-size: 13px; color: var(--ink-mid); text-align: center; }
.auth-footer a  { color: var(--blue); text-decoration: none; font-weight: 600; }
.auth-tabs      { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 2px solid var(--border); }
.auth-tab       { flex: 1; background: none; border: none; padding: 12px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .12em; cursor: pointer; color: var(--ink-mid); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s; }
.auth-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ── Form layout helpers ──────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field    { margin-bottom: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ── Tour cards ───────────────────────────────────────────── */
.card__img-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.card__location {
  font-size: 12px;
  color: var(--blue);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card__guide {
  font-size: 12px;
  color: var(--ink-mid);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Service cards ────────────────────────────────────────── */
.svc__img { width: 100%; height: 160px; object-fit: cover; display: block; margin-bottom: 20px; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state         { text-align: center; padding: 80px 20px; color: var(--ink-mid); }
.empty-state h3      { font-size: 28px; margin-bottom: 12px; }
.empty-state__inline { color: var(--ink-mid); font-size: 15px; }

/* ── Location filter bar (tours page) ───────────────────────*/
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px var(--pad);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-mid);
  text-transform: uppercase;
}
.filter-bar select {
  border: 1.5px solid var(--border-strong);
  padding: 8px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.filter-bar .btn { padding: 8px 20px; font-size: 12px; }

/* ── Tour card — clickable ────────────────────────────────────*/
.card { cursor: pointer; }

/* ── Tour modal ───────────────────────────────────────────────*/
.tour-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 26, 0.78);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
  animation: modal-fade-in 0.18s ease;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.tour-modal {
  background: var(--white);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modal-slide-up 0.22s ease;
}
@keyframes modal-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.tour-modal__img {
  height: 260px;
  position: relative;
  overflow: hidden;
}
.tour-modal__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tour-modal__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 55%);
}
.tour-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  transition: background 0.15s;
}
.tour-modal__close:hover { background: rgba(0,0,0,0.85); }
.tour-modal__body { padding: 32px; }
.tour-modal__location {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.tour-modal__title {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 20px;
  line-height: 1;
}
.tour-modal__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.tour-modal__meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tour-modal__meta-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.tour-modal__meta-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--ink);
}
.tour-modal__meta-value--price { color: var(--blue); }
.tour-modal__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-bottom: 28px;
}
.tour-modal__guide {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tour-modal__guide span { color: var(--ink); }
.tour-modal__book {
  margin-top: 20px;
}
@media (max-width: 480px) {
  .tour-modal__body { padding: 20px; }
  .tour-modal__img  { height: 200px; }
}
