/**
 * SBC Archive Templates V5 — Full design system styles
 * Relies on Design System tokens: --sbc-ocean, --sbc-deep, --sbc-navy, --sbc-dark,
 * --sbc-cream, --sbc-gold, --sbc-muted, --sbc-line, --sbc-font-serif, --sbc-font-sans,
 * --sbc-r-sm/md/lg/pill, --sbc-shadow-md/lg
 */

/* ============ MAIN CONTAINER ============ */
.atv5-main { font-family: var(--sbc-font-sans, 'Inter', -apple-system, sans-serif); color: var(--sbc-dark, #0A1628); background: #fff; }

/* ============ HERO ============ */
.atv5-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 140px;
  color: #fff;
  overflow: hidden;
}
.atv5-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--atv5-hero-img, url('https://images.unsplash.com/photo-1519046904884-53103b34b206?auto=format&fit=crop&w=2400&q=90')) center/cover;
  opacity: 0.55;
  z-index: 0;
  animation: atv5-zoom 22s ease-in-out infinite alternate;
}
.atv5-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.35) 0%, rgba(2,62,138,0.55) 45%, rgba(10,22,40,0.95) 100%);
  z-index: 1;
}
@keyframes atv5-zoom { 0%{transform:scale(1)} 100%{transform:scale(1.06)} }

.atv5-hero-in {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.atv5-breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 20px;
  border: 1px solid rgba(0,180,216,0.5);
  border-radius: 40px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--sbc-ocean, #00B4D8);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
  background: rgba(0,180,216,0.1);
  backdrop-filter: blur(8px);
}
.atv5-breadcrumb a { color: inherit; text-decoration: none; opacity: 0.85; transition: opacity 0.15s; }
.atv5-breadcrumb a:hover { opacity: 1; color: #fff; }
.atv5-breadcrumb span { opacity: 0.6; }
.atv5-breadcrumb .atv5-current { color: #fff; font-weight: 700; opacity: 1; }

.atv5-hero-title {
  font-family: var(--sbc-font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 300;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -1px;
}
.atv5-hero-title em {
  font-style: italic;
  color: var(--sbc-ocean, #00B4D8);
  font-weight: 400;
}

.atv5-hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: #fff;
  opacity: 0.92;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.atv5-hero-search {
  display: flex;
  gap: 0;
  max-width: 620px;
  margin: 0 auto;
  background: rgba(255,255,255,0.98);
  border-radius: 60px;
  padding: 6px;
  box-shadow: 0 20px 60px rgba(2,62,138,0.4);
  border: 1px solid rgba(255,255,255,0.3);
}
.atv5-hero-search input[type="text"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 24px;
  font-size: 15px;
  color: var(--sbc-dark, #0A1628);
  font-family: inherit;
}
.atv5-hero-search input::placeholder { color: #94a3b8; font-style: italic; }
.atv5-hero-search button {
  background: linear-gradient(135deg, var(--sbc-ocean, #00B4D8), var(--sbc-deep, #0077B6));
  color: #fff;
  border: none;
  padding: 0 28px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}
.atv5-hero-search button:hover { transform: scale(1.04); }

/* ============ WRAPPER ============ */
.atv5-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ============ CHIPS (popular destinations) ============ */
.atv5-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(0,180,216,0.04), rgba(248,245,238,0.6));
  border-radius: var(--sbc-r-md, 16px);
  border: 1px solid var(--sbc-line, #E5E7F2);
}
.atv5-chips-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--sbc-deep, #0077B6);
  text-transform: uppercase;
  font-weight: 700;
  margin-right: 4px;
}
.atv5-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid var(--sbc-line, #E5E7F2);
  border-radius: var(--sbc-r-pill, 60px);
  font-size: 13px;
  color: var(--sbc-navy, #023E8A);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
}
.atv5-chip:hover {
  background: var(--sbc-deep, #0077B6);
  color: #fff;
  border-color: var(--sbc-deep, #0077B6);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,119,182,0.25);
}
.atv5-chip-count {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(0,180,216,0.1);
  color: var(--sbc-ocean, #00B4D8);
  border-radius: 20px;
  font-weight: 700;
}
.atv5-chip:hover .atv5-chip-count { background: rgba(255,255,255,0.2); color: #fff; }

/* ============ TOOLBAR ============ */
.atv5-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--sbc-line, #E5E7F2);
  border-radius: var(--sbc-r-md, 16px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.atv5-toolbar-left { font-size: 14px; color: var(--sbc-muted, #64748B); }
.atv5-toolbar-left .atv5-count { color: var(--sbc-dark, #0A1628); font-weight: 700; font-size: 16px; margin-right: 6px; }
.atv5-toolbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.atv5-view-switcher {
  display: inline-flex;
  background: var(--sbc-cream, #F8F5EE);
  padding: 4px;
  border-radius: var(--sbc-r-pill, 60px);
  gap: 2px;
}
.atv5-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: none;
  background: transparent;
  border-radius: var(--sbc-r-pill, 60px);
  font-size: 12px;
  color: var(--sbc-muted, #64748B);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}
.atv5-view-btn:hover { color: var(--sbc-deep, #0077B6); }
.atv5-view-btn.is-active {
  background: #fff;
  color: var(--sbc-deep, #0077B6);
  box-shadow: 0 2px 6px rgba(0,119,182,0.15);
}
.atv5-view-ic { font-size: 14px; }

.atv5-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--sbc-cream, #F8F5EE);
  border-radius: var(--sbc-r-pill, 60px);
  font-size: 13px;
  cursor: pointer;
}
.atv5-sort select {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--sbc-dark, #0A1628);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

/* ============ LAYOUT (sidebar + content) ============ */
.atv5-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}
@media (max-width: 960px) {
  .atv5-layout { grid-template-columns: 1fr; }
  .atv5-sidebar { order: 2; }
}

/* ============ SIDEBAR ============ */
.atv5-sidebar {
  background: #fff;
  border: 1px solid var(--sbc-line, #E5E7F2);
  border-radius: var(--sbc-r-md, 16px);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.atv5-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--sbc-line, #E5E7F2);
}
.atv5-sidebar-head h3 {
  margin: 0;
  font-family: var(--sbc-font-sans);
  font-size: 14px;
  color: var(--sbc-dark, #0A1628);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}
.atv5-clear {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #dc2626;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
}
.atv5-clear:hover { text-decoration: underline; }

.atv5-filter-group { margin-bottom: 14px; }
.atv5-filter-group summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--sbc-deep, #0077B6);
  text-transform: uppercase;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.atv5-filter-group summary::-webkit-details-marker { display: none; }
.atv5-filter-group summary::after { content: '▾'; font-size: 10px; opacity: 0.5; transition: transform 0.2s; }
.atv5-filter-group[open] summary::after { transform: rotate(180deg); }

.atv5-filter-list { list-style: none; margin: 0; padding: 6px 0; }
.atv5-filter-list--scroll { max-height: 220px; overflow-y: auto; }
.atv5-filter-list li { margin: 2px 0; }
.atv5-filter-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 13px;
}
.atv5-filter-list label:hover { background: var(--sbc-cream, #F8F5EE); }
.atv5-filter-list input[type="radio"] { margin-top: 3px; accent-color: var(--sbc-ocean, #00B4D8); }
.atv5-filter-lbl { display: flex; flex-direction: column; gap: 2px; }
.atv5-filter-lbl strong { color: var(--sbc-dark, #0A1628); font-weight: 600; font-size: 13px; }
.atv5-filter-lbl small { color: var(--sbc-muted, #64748B); font-size: 11px; }

.atv5-apply {
  width: 100%;
  background: linear-gradient(135deg, var(--sbc-ocean, #00B4D8), var(--sbc-deep, #0077B6));
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--sbc-r-pill, 60px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 10px;
}
.atv5-apply:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,119,182,0.3); }

/* ============ NEWSLETTER GATE ============ */
.atv5-newsletter {
  margin-top: 24px;
  padding: 22px 20px;
  background: linear-gradient(135deg, var(--sbc-dark, #0A1628), var(--sbc-navy, #023E8A));
  border-radius: var(--sbc-r-md, 16px);
  color: #fff;
  text-align: center;
}
.atv5-newsletter-gift {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.4);
  border-radius: 30px;
  color: var(--sbc-gold, #FFD700);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.atv5-newsletter h4 {
  font-family: var(--sbc-font-serif, serif);
  font-size: 22px;
  font-weight: 300;
  margin: 0 0 6px;
  color: #fff;
}
.atv5-newsletter p { font-size: 12px; opacity: 0.85; margin: 0 0 14px; line-height: 1.5; }
.atv5-nl-form { display: flex; flex-direction: column; gap: 6px; }
.atv5-nl-form input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(0,180,216,0.3);
  outline: none;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  text-align: center;
  font-family: inherit;
}
.atv5-nl-form input::placeholder { color: rgba(255,255,255,0.5); }
.atv5-nl-form button {
  background: linear-gradient(135deg, var(--sbc-ocean, #00B4D8), var(--sbc-deep, #0077B6));
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

/* ============ CONTENT GRID ============ */
.atv5-content { min-width: 0; }
.atv5-grid { display: grid; gap: 20px; }
.atv5-grid--grid { grid-template-columns: repeat(3, 1fr); }
.atv5-grid--list  { grid-template-columns: 1fr; }
.atv5-grid--map   { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .atv5-grid--grid { grid-template-columns: repeat(2, 1fr); } .atv5-grid--map { grid-template-columns: 1fr; } }
@media (max-width: 600px)  { .atv5-grid--grid { grid-template-columns: 1fr; } }

/* ============ CARD ============ */
.atv5-card {
  display: block;
  background: #fff;
  border: 1px solid var(--sbc-line, #E5E7F2);
  border-radius: var(--sbc-r-md, 16px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  position: relative;
}
.atv5-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(2,62,138,0.15);
  border-color: var(--sbc-ocean, #00B4D8);
}
.atv5-card.is-featured { border-color: var(--sbc-gold, #FFD700); box-shadow: 0 0 0 1px rgba(255,215,0,0.3); }

.atv5-card-imgwrap {
  position: relative;
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
  background-color: var(--sbc-cream, #F8F5EE);
}
.atv5-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, var(--sbc-gold, #FFD700), #DAA520);
  color: var(--sbc-dark, #0A1628);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--sbc-r-pill, 60px);
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255,215,0,0.4);
}
.atv5-card-price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10,22,40,0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.atv5-card-body { padding: 18px 20px 20px; }
.atv5-card-cat {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--sbc-ocean, #00B4D8);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.atv5-card-title {
  font-family: var(--sbc-font-serif, serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--sbc-dark, #0A1628);
  margin: 0 0 6px;
  line-height: 1.2;
}
.atv5-card-loc {
  font-size: 12.5px;
  color: var(--sbc-muted, #64748B);
  margin-bottom: 14px;
}
.atv5-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--sbc-line, #E5E7F2);
  font-size: 12px;
}
.atv5-card-status { color: #059669; font-weight: 700; }
.atv5-card-link { color: var(--sbc-deep, #0077B6); font-weight: 700; letter-spacing: 0.5px; }

/* List view specific */
.atv5-card--list {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
}
.atv5-card--list .atv5-card-imgwrap { aspect-ratio: auto; height: 100%; min-height: 200px; }
.atv5-card--list .atv5-card-title { font-size: 26px; margin-bottom: 8px; }
.atv5-card--list .atv5-card-body { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 640px) {
  .atv5-card--list { grid-template-columns: 1fr; }
  .atv5-card--list .atv5-card-imgwrap { aspect-ratio: 16 / 11; }
}

/* ============ MAP PLACEHOLDER ============ */
.atv5-map-placeholder {
  background: linear-gradient(135deg, var(--sbc-cream, #F8F5EE), rgba(0,180,216,0.08));
  border: 2px dashed rgba(0,180,216,0.3);
  border-radius: var(--sbc-r-md, 16px);
  padding: 60px 30px;
  text-align: center;
  margin-top: 20px;
  grid-column: 1 / -1;
}
.atv5-map-msg strong {
  display: block;
  font-size: 18px;
  color: var(--sbc-deep, #0077B6);
  font-family: var(--sbc-font-serif, serif);
}

/* ============ PAGINATION ============ */
.atv5-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.atv5-pagination ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.atv5-pagination li { margin: 0; }
.atv5-pagination a,
.atv5-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--sbc-r-pill, 60px);
  background: #fff;
  border: 1px solid var(--sbc-line, #E5E7F2);
  color: var(--sbc-dark, #0A1628);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}
.atv5-pagination a:hover {
  background: var(--sbc-deep, #0077B6);
  border-color: var(--sbc-deep, #0077B6);
  color: #fff;
}
.atv5-pagination .current {
  background: var(--sbc-deep, #0077B6);
  border-color: var(--sbc-deep, #0077B6);
  color: #fff;
}

/* ============ EMPTY STATE ============ */
.atv5-empty {
  text-align: center;
  padding: 80px 30px;
  background: var(--sbc-cream, #F8F5EE);
  border-radius: var(--sbc-r-md, 16px);
  border: 1px solid var(--sbc-line, #E5E7F2);
}
.atv5-empty-ic { font-size: 56px; margin-bottom: 14px; }
.atv5-empty h3 {
  font-family: var(--sbc-font-serif, serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--sbc-dark, #0A1628);
  margin: 0 0 10px;
}
.atv5-empty p { color: var(--sbc-muted, #64748B); font-size: 14px; margin: 0 0 20px; }
.atv5-empty-cta {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--sbc-ocean, #00B4D8), var(--sbc-deep, #0077B6));
  color: #fff;
  border-radius: var(--sbc-r-pill, 60px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s;
}
.atv5-empty-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,119,182,0.3); }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .atv5-hero { min-height: 380px; padding: 80px 16px 100px; }
  .atv5-hero-search { flex-direction: column; border-radius: 16px; gap: 6px; }
  .atv5-hero-search input[type="text"] { padding: 14px 20px; text-align: center; }
  .atv5-hero-search button { padding: 14px; justify-content: center; }
  .atv5-wrap { padding: 24px 16px 60px; }
  .atv5-toolbar { flex-direction: column; align-items: stretch; }
  .atv5-toolbar-right { justify-content: space-between; }
  .atv5-sidebar { position: static; }
}
