/* ============================================
   PARTAS — PAGE-SPECIFIC STYLES (TOURISM)
   ============================================ */

/* ===== HOME PAGE ===== */
.hero-home {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #0d2818 0%, var(--forest) 35%, var(--forest-mid) 65%, #1a5c3a 100%);
}
.hero-home-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 70% 40%, rgba(244,162,39,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(14,165,233,0.08) 0%, transparent 50%);
}
/* Floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: white;
}
.hero-shape-1 { width: 500px; height: 500px; top: -150px; right: -100px; animation: float 8s ease-in-out infinite; }
.hero-shape-2 { width: 300px; height: 300px; bottom: 50px; left: -80px; animation: float 10s ease-in-out infinite reverse; }

.hero-home-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 28px 100px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 22px;
  font-weight: 800;
}
.hero-eyebrow .pill {
  background: rgba(244,162,39,0.2);
  border: 1px solid rgba(244,162,39,0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
}
.hero-home-content h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  color: white;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-home-content h1 .line-accent {
  display: block;
  font-style: italic;
  background: linear-gradient(135deg, var(--amber-light), var(--terra-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-home-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.trust-dots { display: flex; gap: 4px; }
.trust-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

/* Booking card — glass morphism */
.booking-card {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.booking-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.booking-card-header .icon-wrap {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.booking-card-header h3 { font-size: 18px; font-weight: 800; color: white; }
.booking-card-header p { font-size: 13px; color: rgba(255,255,255,0.65); }

/* Glass form controls inside booking card */
.booking-card .form-group label { color: rgba(255,255,255,0.75); }
.booking-card .form-control {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-weight: 600;
}
.booking-card .form-control::placeholder { color: rgba(255,255,255,0.45); }
.booking-card .form-control option { background: var(--forest); color: white; }
.booking-card .form-control:focus {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}
.booking-card .btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--terra-light));
  box-shadow: 0 4px 16px rgba(193,68,14,0.4);
}
.booking-card .btn-primary:hover {
  box-shadow: 0 8px 28px rgba(193,68,14,0.55);
}

/* Hero wave bottom */
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0; z-index: 3;
}
.hero-wave svg { display: block; width: 100%; }

/* STATS STRIP */
.stats-strip {
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item .num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .num sup { font-size: 18px; }
.stat-item .label { font-size: 13px; color: var(--text-light); font-weight: 600; }
.stat-item .icon { font-size: 20px; margin-bottom: 8px; }

/* DESTINATION CARDS (home) */
.dest-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dest-showcase-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.dest-showcase-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.dest-showcase-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.dest-showcase-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.dest-showcase-card:hover .dest-showcase-bg img {
  transform: scale(1.07);
}
.dest-showcase-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 80%);
}
.dest-showcase-info {
  position: relative;
  z-index: 2;
  padding: 24px;
}
.dest-showcase-info .region {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber-light);
  font-weight: 800;
  margin-bottom: 6px;
}
.dest-showcase-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.dest-showcase-info .route-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dest-showcase-info .time { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 600; }
.dest-showcase-info .price { font-size: 16px; font-weight: 800; color: var(--amber-light); }

/* FEATURED ROUTES */
.route-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.route-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--forest), var(--amber));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.route-card:hover { border-color: var(--forest-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.route-card:hover::before { transform: scaleX(1); }
.route-from-to { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.route-from-to span { font-size: 15px; font-weight: 800; color: var(--ink); }
.route-arrow { color: var(--forest-light); font-size: 14px; }
.route-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.route-price { font-size: 20px; font-weight: 800; color: var(--terra); }
.route-price span { font-size: 11px; font-weight: 600; color: var(--text-light); }
.route-time { font-size: 13px; color: var(--text-light); font-weight: 600; }
.route-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* WHY CHOOSE — icon feature cards */
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}
.feature-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-3px); }
.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.feature-card h4 { font-size: 17px; font-weight: 800; color: white; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ===== SCHEDULE PAGE ===== */
.tabs {
  display: inline-flex;
  gap: 6px;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.tab-btn {
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-mid);
  transition: var(--transition);
}
.tab-btn.active { background: var(--forest); color: white; box-shadow: 0 4px 12px rgba(27,67,50,0.25); }
.tab-btn:hover:not(.active) { color: var(--forest); background: rgba(27,67,50,0.06); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp 0.3s ease; }

.routes-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.routes-table thead tr { background: linear-gradient(135deg, var(--forest), var(--forest-mid)); }
.routes-table th { padding: 16px 20px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.85); text-align: left; }
.routes-table td { padding: 18px 20px; font-size: 14.5px; color: var(--text-dark); border-bottom: 1px solid var(--border); vertical-align: middle; font-weight: 500; }
.routes-table tr:last-child td { border-bottom: none; }
.routes-table tr:hover td { background: var(--bg-warm); }
.route-name { font-weight: 800; color: var(--forest); }
.overnight-note { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--amber); margin-top: 4px; font-weight: 700; }
.fare-bold { font-weight: 800; font-size: 16px; color: var(--terra); }

/* ===== FLEET PAGE ===== */
.fleet-grid { display: flex; flex-direction: column; gap: 48px; }
.fleet-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.fleet-card:hover { box-shadow: var(--shadow-lg); }
.fleet-card-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 320px; }
.fleet-card.reverse .fleet-card-inner { direction: rtl; }
.fleet-card.reverse .fleet-card-inner > * { direction: ltr; }
.fleet-img { position: relative; overflow: hidden; }
.fleet-img-placeholder {
  width: 100%; height: 100%; min-height: 280px;
  overflow: hidden;
  background: var(--bg-muted);
}
.fleet-info { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.fleet-info-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fleet-info h3 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink); }
.fleet-info .tagline { font-size: 14px; color: var(--terra); font-weight: 800; margin-bottom: 16px; letter-spacing: 0.3px; }
.fleet-info p { font-size: 15px; color: var(--text-mid); line-height: 1.75; margin-bottom: 28px; }
.amenities-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.amenity-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 13px; font-weight: 700;
  color: var(--text-mid);
  background: var(--bg-warm);
  transition: var(--transition);
}
.amenity-chip:hover { border-color: var(--forest); color: var(--forest); background: rgba(27,67,50,0.05); }
.amenity-icon { font-size: 15px; }

/* ===== CARGO PAGE ===== */
.track-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-xl);
  max-width: 640px;
  margin: 0 auto;
  border: 2px solid var(--border-warm);
}
.track-icon-wrap {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.track-card h3 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.track-card p { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }
.track-input-row { display: flex; gap: 10px; }
.track-input-row .form-control { flex: 1; }
.track-hint { font-size: 12.5px; color: var(--text-light); margin-top: 10px; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.step-card:hover { border-color: var(--forest); box-shadow: var(--shadow); transform: translateY(-3px); }
.step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(27,67,50,0.3);
}
.step-card h4 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.step-card p { font-size: 13.5px; color: var(--text-mid); line-height: 1.65; }

.cargo-rates { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cargo-rates table { width: 100%; border-collapse: collapse; }
.cargo-rates thead th { background: linear-gradient(135deg, var(--forest), var(--forest-mid)); color: white; padding: 16px 20px; font-size: 13px; font-weight: 800; text-align: left; }
.cargo-rates td { padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: 14.5px; font-weight: 500; }
.cargo-rates tr:last-child td { border-bottom: none; }
.cargo-rates tr:hover td { background: var(--bg-warm); }

/* ===== TERMINALS PAGE ===== */
.terminal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.terminal-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.terminal-card:hover { border-color: var(--forest); box-shadow: var(--shadow); transform: translateY(-3px); }
.terminal-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.terminal-card h3 { font-size: 18px; font-weight: 800; color: var(--ink); }
.terminal-info-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--text-mid); font-weight: 500; }
.terminal-info-row .icon { font-size: 15px; margin-top: 1px; flex-shrink: 0; }

.provincial-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prov-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
}
.prov-card:hover { border-color: var(--forest); box-shadow: var(--shadow); }
.prov-card h4 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.prov-card .info-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 13.5px; color: var(--text-mid); font-weight: 500; }

/* ===== TRAVEL GUIDE PAGE ===== */
.dest-cards { display: flex; flex-direction: column; gap: 32px; }
.dest-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.dest-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.dest-card-inner { display: grid; grid-template-columns: 420px 1fr; min-height: 260px; }
.dest-img-wrap { overflow: hidden; position: relative; }
.dest-img-placeholder {
  width: 100%; height: 100%; min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
  position: relative;
}
.dest-info { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.dest-info h3 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink); margin: 10px 0 12px; }
.dest-info p { font-size: 15px; color: var(--text-mid); line-height: 1.75; margin-bottom: 20px; }
.dest-travel-time { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--forest); margin-bottom: 22px; background: rgba(27,67,50,0.08); padding: 6px 14px; border-radius: 20px; width: fit-content; }

.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tip-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.tip-card:hover { border-color: var(--forest); box-shadow: var(--shadow); transform: translateY(-2px); }
.tip-icon { font-size: 32px; margin-bottom: 14px; }
.tip-card h4 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.tip-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 52px; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.contact-info > p { font-size: 15px; color: var(--text-mid); margin-bottom: 30px; line-height: 1.7; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-of-type { border-bottom: none; }
.contact-icon-wrap { width: 44px; height: 44px; background: linear-gradient(135deg, var(--forest), var(--forest-mid)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-item-text h4 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.contact-item-text p { font-size: 14px; color: var(--text-mid); line-height: 1.65; font-weight: 500; }
.contact-form-card { background: white; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.contact-form-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.contact-form-card > p { font-size: 14px; color: var(--text-light); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group textarea.form-control { resize: vertical; min-height: 130px; }
.terminals-phone { background: white; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border); box-shadow: var(--shadow-sm); }
.terminals-phone table { width: 100%; border-collapse: collapse; }
.terminals-phone th { background: linear-gradient(135deg, var(--forest), var(--forest-mid)); color: white; padding: 15px 20px; font-size: 13px; text-align: left; font-weight: 800; }
.terminals-phone td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.terminals-phone tr:last-child td { border-bottom: none; }
.terminals-phone tr:hover td { background: var(--bg-warm); }

/* DESTINATION GRADIENT BACKGROUNDS */
.dest-vigan    { background: linear-gradient(135deg, #c8a96e, #8b6914); }
.dest-pagudpud { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.dest-laoag    { background: linear-gradient(135deg, #d97706, #92400e); }
.dest-baguio   { background: linear-gradient(135deg, #16a34a, #14532d); }
.dest-bangued  { background: linear-gradient(135deg, #7c3aed, #4c1d95); }

/* SCROLL ANIMATION */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media(max-width:1100px) {
  .hero-home-inner { grid-template-columns: 1fr; gap: 40px; }
  .dest-showcase { grid-template-columns: 1fr 1fr; }
  .fleet-card-inner { grid-template-columns: 1fr; }
  .dest-card-inner { grid-template-columns: 1fr; }
  .terminal-cards { grid-template-columns: 1fr 1fr; }
  .provincial-cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .route-cards { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .terminal-cards { grid-template-columns: 1fr; }
  .provincial-cards { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dest-showcase { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
}
@media(max-width:480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .provincial-cards { grid-template-columns: 1fr; }
  .track-input-row { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .tabs { flex-direction: column; width: 100%; }
}