/* =========================================================
   THEME
========================================================= */

:root {
  --bg: #f4f7f9;
  --card: #ffffff;
  --text: #222;
  --primary: #0f3d2e;
  --accent: #d9a441;

  --radius: 12px;
  --radius-lg: 16px;

  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
}

/* =========================================================
   BASE
========================================================= */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3, h4 {
  margin-top: 0;
  color: var(--primary);
}

/* Main app containers */
#flysub-app,
#flysub-detail,
#view-destination {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* =========================================================
   LAYOUT
========================================================= */

.flysub-grid,
.flysub-gallery,
.flysub-grid-2 {
  display: grid;
  gap: 20px;
}

.flysub-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.flysub-gallery {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-bottom: 40px;
}

.flysub-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* =========================================================
   CARDS
========================================================= */

.flysub-card,
.flysub-section,
.flysub-view,
.flysub-accordion,
.flysub-login-box {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.flysub-card {
  overflow: hidden;
  cursor: pointer;
  transition: .2s;
  margin-bottom: 12px;
}

.flysub-card:hover {
  transform: translateY(-4px);
}

/* Card content */
.flysub-card h3,
.flysub-card p {
  padding: 0 16px;
}

.flysub-card p {
  padding-bottom: 16px;
}

/* =========================================================
   IMAGES
========================================================= */

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

.flysub-card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
}

/* =========================================================
   CONTENT
========================================================= */

.flysub-home,
.flysub-404 {
  text-align: center;
  padding: 100px 20px;
}

.flysub-description {
  line-height: 1.7;
  margin-bottom: 30px;
}

.flysub-intro {
  max-width: 700px;
  margin: 20px auto;
  font-size: 18px;
  line-height: 1.7;
}

/* =========================================================
   FORMS
========================================================= */

input,
textarea,
select,
button {
  font: inherit;
  box-sizing: border-box;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,164,65,.15);
}

/* =========================================================
   BUTTONS (FIXED - NO GLOBAL BREAKAGE)
========================================================= */

button {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  transition: .2s;
  border: none;
}

/* Primary action button */
button.primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 22px;
}

button.primary:hover {
  opacity: .9;
}

/* Secondary button */
button.secondary {
  background: #ddd;
  color: #333;
  padding: 14px 22px;
}

/* =========================================================
   FILTER SYSTEM (NEW UI)
========================================================= */

.filter-bar {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.filter-toggle {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d0d0d0;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Dropdown panel */
.filter-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-lg);
}

.hidden {
  display: none;
}

.panel-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-option {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  background: #fff;
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
}

.panel-option:hover {
  background: var(--primary);
  color: #fff;
}

/* =========================================================
   CHIPS
========================================================= */

.active-filters {
  margin: 10px 0;
}

.chip {
  display: inline-block;
  padding: 6px 10px;
  margin: 4px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
}

/* =========================================================
   FILTER CHIPS ROW
========================================================= */

.chip-row {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #ddd;
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(15,61,46,0.25);
}

/* =========================================================
   CARD UI DETAILS
========================================================= */

.card-body {
  padding: 12px;
}

.meta-line {
  display: flex;
  gap: 8px;
  font-size: 12px;
  opacity: 0.7;
  flex-wrap: wrap;
}

.card-tags span {
  display: inline-block;
  font-size: 12px;
  margin-right: 6px;
  opacity: 0.8;
}

/* =========================================================
   INFO CARDS
========================================================= */

.info-card {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

/* =========================================================
   LAYOUT HELPERS
========================================================= */

.flysub-topbar,
.flysub-filters,
.flysub-actions,
.flysub-admin-header {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

/* =========================================================
   ACCORDION
========================================================= */

.flysub-accordion-header {
  padding: 18px 20px;
  background: #eef3f5;
  cursor: pointer;
  font-weight: bold;
}

.flysub-accordion-content {
  display: none;
  padding: 20px;
}

/* =========================================================
   ADMIN (UNCHANGED - SAFE ZONE)
========================================================= */

#flysub-admin {
  min-height: 100vh;
  padding: 20px;
}

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

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

.flysub-checkbox input {
  width: auto;
}

/* =========================================================
   DROPZONE
========================================================= */

.flysub-dropzone,
.admin-dropzone,
#admin-images {
  padding: 20px;
  text-align: center;
  border: 2px dashed #bbb;
  border-radius: var(--radius);
  background: #fafafa;
  cursor: pointer;
}

.flysub-dropzone:hover,
.admin-dropzone:hover,
#admin-images:hover {
  background: #f0f0f0;
}

/* =========================================================
   LOGIN MODAL
========================================================= */

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

.flysub-login-box {
  width: 100%;
  max-width: 380px;
  padding: 30px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  #flysub-app,
  #flysub-detail,
  #flysub-admin {
    padding: 16px;
  }

  .flysub-grid,
  .flysub-gallery,
  .flysub-grid-2 {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}


/* =========================
   CAROUSEL
========================= */

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.carousel-img {
    width: 100%;
    border-radius: 14px;
    height: 220px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

/* =========================
   CHIP GRID (NO SCROLL)
========================= */

.chip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.chip {
    background: #0f3d2e;
    color: #fff;
    padding: 8px;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
}

/* =========================
   EXPERIENCE SCALE
========================= */

.scale {
    margin-bottom: 10px;
}

.scale-label {
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.scale-bar {
    display: flex;
    gap: 2px;
}

.block {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 2px;
}

.block.active {
    background: linear-gradient(90deg, #d9534f, #f0ad4e, #5cb85c);
}

/* =========================
   ALERT ACCESS CARD
========================= */

.info-card.alert {
    border-left: 5px solid #d9534f;
}

/* =========================
   HERO NUMBER
========================= */

.big-number {
    font-size: 36px;
    font-weight: bold;
    color: #0f3d2e;
}