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

body {
  font-family: 'Inter', sans-serif;
  background: #F5F0E8;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ─── HEADER ─── */
.header {
  background: #1E2D3D;
  padding: 20px 24px;
}

.header-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.header-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.header-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

/* ─── TAB BAR ─── */
.tabbar {
  background: #ffffff;
  border-bottom: 2px solid #e5ddd0;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 99;
}

.tabbar::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  padding: 14px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  background: #ffffff;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab:hover { color: #C4673A; }

.tab.active {
  color: #C4673A;
  border-bottom-color: #C4673A;
  font-weight: 600;
}

/* ─── PANELS ─── */
.panel { display: none; }
.panel.active { display: block; }

/* ─── CONTENT WRAPPER ─── */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

/* ─── SECTION HEADER ─── */
.sec-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C4673A;
  margin-bottom: 6px;
}

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: #1E2D3D;
  margin-bottom: 20px;
  line-height: 1.2;
}

.sec-title em {
  font-style: italic;
  color: #C4673A;
}

/* ─── ALERT ─── */
.alert {
  background: #FEF3CD;
  border: 1px solid #e8c97a;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #7a5a1a;
  margin-bottom: 24px;
  line-height: 1.5;
  display: flex;
  gap: 10px;
}

/* ─── DIVIDER ─── */
.divider {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aaa;
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd5c8;
}

/* ─── PLACE CARDS GRID ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.card-top {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 48px;
}

.bg1 { background: linear-gradient(135deg, #e8eef5, #c8d8e8); }
.bg2 { background: linear-gradient(135deg, #f5e8e0, #e8c4a8); }
.bg3 { background: linear-gradient(135deg, #f5f0e0, #e8d898); }
.bg4 { background: linear-gradient(135deg, #e4eee5, #b8d0bc); }
.bg5 { background: linear-gradient(135deg, #f0e8f0, #d8b8d8); }

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
}

.b-red   { background: #C4673A; color: #fff; }
.b-green { background: #5a8f62; color: #fff; }
.b-navy  { background: #1E2D3D; color: #fff; }
.b-gold  { background: #C9A84C; color: #1E2D3D; }
.b-warn  { background: #D4870C; color: #fff; }

.card-body { padding: 14px 16px; }

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: #1E2D3D;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
}

.card-note {
  margin-top: 8px;
  font-size: 12px;
  color: #999;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: #e8eef5;
  color: #1E2D3D;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-map:hover {
  background: #1E2D3D;
  color: #fff;
}

.btn-tickets {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: #f5e8e0;
  color: #C4673A;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-tickets:hover {
  background: #C4673A;
  color: #fff;
}

/* ─── EXPERIENCE CARDS ─── */
.exp-list { display: flex; flex-direction: column; gap: 12px; }

.exp-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.exp-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.11);
}

.exp-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.ic1 { background: #f5e8e0; }
.ic2 { background: #e8eef5; }
.ic3 { background: #e4eee5; }
.ic4 { background: #f5f0e0; }

.exp-body { flex: 1; min-width: 0; }

.exp-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: #1E2D3D;
  margin-bottom: 5px;
}

.exp-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
}

.exp-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}

.t-red  { background: #f5e8e0; color: #C4673A; }
.t-navy { background: #e8eef5; color: #1E2D3D; }
.t-gold { background: #f5f0e0; color: #7a5a1a; }

/* ─── FOOD ─── */
.food-section { margin-bottom: 28px; }

.food-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5ddd0;
  margin-bottom: 14px;
}

.food-header-icon { font-size: 22px; }

.food-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: #1E2D3D;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.food-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.food-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.food-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: #1E2D3D;
  margin-bottom: 5px;
}

.food-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.food-must {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #C4673A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.food-must::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #C4673A;
  flex-shrink: 0;
}

.food-porto {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #534AB7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.food-porto::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #534AB7;
  flex-shrink: 0;
}

/* ─── FOOD IMAGE ─── */
.food-img {
  width: calc(100% + 28px);
  margin: -14px -14px 12px -14px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}

/* ─── FOOTER ─── */
.footer {
  background: #1E2D3D;
  padding: 20px 24px;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}

.footer strong { color: #E8956D; font-weight: 500; }

/* ─── MOBILE ─── */
@media (max-width: 600px) {
  .header-title { font-size: 20px; }
  .sec-title { font-size: 24px; }
  .grid { grid-template-columns: 1fr; }
  .food-grid { grid-template-columns: 1fr 1fr; }
  .tab { padding: 12px 14px; font-size: 13px; }
  .content { padding: 20px 14px 50px; }
}

@media (max-width: 400px) {
  .food-grid { grid-template-columns: 1fr; }
}

/* ─── CITY SUBTABS ─── */
.city-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.city-tab {
  padding: 8px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid #ddd5c8;
  background: #ffffff;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.city-tab:hover { border-color: #C4673A; color: #C4673A; }

.city-tab.active {
  background: #1E2D3D;
  border-color: #1E2D3D;
  color: #ffffff;
}

.city-panel { display: none; }
.city-panel.active { display: block; }

/* ─── CITY HEADER BANNER ─── */
.city-banner {
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.city-banner.lisbon { background: linear-gradient(135deg, #1E2D3D, #2E4259); }
.city-banner.porto  { background: linear-gradient(135deg, #4a1a6b, #6b2d9a); }
.city-banner.sintra { background: linear-gradient(135deg, #1a4a2e, #2d7a4a); }

.city-banner-emoji { font-size: 36px; }

.city-banner-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.city-banner-text p {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

/* ─── TRANSPORT ─── */
.transport-section { margin-bottom: 36px; }

.transport-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1E2D3D;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.transport-header-icon { font-size: 28px; flex-shrink: 0; }

.transport-header-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.transport-header-text p {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.transport-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-left: 4px solid #C4673A;
  transition: transform 0.2s, box-shadow 0.2s;
}

.transport-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.11);
}

.transport-card.navy  { border-left-color: #1E2D3D; }
.transport-card.gold  { border-left-color: #C9A84C; }
.transport-card.green { border-left-color: #5a8f62; }
.transport-card.purple{ border-left-color: #7B5EA7; }

.tc-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: #1E2D3D;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-desc {
  font-size: 12.5px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 10px;
}

.tc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tc-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #F5F0E8;
  color: #1E2D3D;
}

.tc-pill.price { background: #e8f5ec; color: #2d7a3a; }
.tc-pill.time  { background: #e8eef5; color: #1E2D3D; }
.tc-pill.tip   { background: #fef3cd; color: #7a5a1a; }

.route-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.route-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.11);
}

.route-from-to {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: #1E2D3D;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-arrow { color: #C4673A; font-style: normal; }

.route-desc {
  font-size: 12.5px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}

.route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.route-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}

.stat-box {
  background: #F5F0E8;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  min-width: 70px;
}

.stat-val {
  font-size: 14px;
  font-weight: 700;
  color: #1E2D3D;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 10px;
  color: #888;
  letter-spacing: 0.04em;
}

@media (max-width: 500px) {
  .route-card { grid-template-columns: 1fr; }
  .route-stats { flex-direction: row; align-items: flex-start; }
  .transport-grid { grid-template-columns: 1fr; }
}
