/* ==========================================================
   TravelMate theme – loaded AFTER css/style.css in app.blade.php
   Every view that extends 'app' inherits this automatically.
   Also provides Bootstrap 3/4 compatibility (jumbotron, panel…)
   because the site loads Bootstrap 5.
   ========================================================== */
:root {
  --tm-primary: #0f3d5e;
  --tm-primary-dark: #0a2a42;
  --tm-accent: #f59e0b;
  --tm-accent-dark: #d97706;
  --tm-bg: #f4f7fb;
  --tm-text: #1f2937;
  --tm-muted: #6b7280;
  --tm-border: #e5eaf1;
  --tm-radius: 16px;
  --tm-shadow: 0 10px 30px rgba(15, 61, 94, .08);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--tm-bg);
  color: var(--tm-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#main { flex: 1; padding-top: 104px; padding-bottom: 48px; }
body.page-home main#main { padding-top: 72px; padding-bottom: 0; }

a { color: var(--tm-primary); }
a:hover { color: var(--tm-accent-dark); }

/* ---------- Header ---------- */
#header {
  background: linear-gradient(90deg, var(--tm-primary-dark), var(--tm-primary));
  height: 72px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}
#header .logo h1 { font-size: 1.5rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .6rem; }
#header .logo h1 a { color: #fff; text-decoration: none; }
#header .logo h1 a span { color: #fff; }
#header .logo img { height: 40px; width: 40px; object-fit: cover; border: 2px solid var(--tm-accent); }
.mobile-nav-toggle { color: #fff !important; }

@media (min-width: 992px) {
  .navbar a, .navbar a:focus { color: rgba(255, 255, 255, .88); font-weight: 500; }
  .navbar a:hover, .navbar .active, .navbar li:hover > a { color: var(--tm-accent); }
  .navbar .dropdown ul {
    background: #fff; border-radius: 12px; box-shadow: var(--tm-shadow);
    border: 1px solid var(--tm-border); padding: 8px 0;
  }
  .navbar .dropdown ul a { color: var(--tm-text); font-weight: 500; }
  .navbar .dropdown ul a:hover, .navbar .dropdown ul li:hover > a { color: var(--tm-accent-dark); background: #fff8eb; }
}
.navbar .getstarted, .navbar .getstarted:focus {
  background: var(--tm-accent); color: #fff !important; border-radius: 50px; padding: 8px 26px;
  font-weight: 600; transition: .2s;
}
.navbar .getstarted:hover { background: var(--tm-accent-dark); }

/* ---------- Page heading ---------- */
.page-head { text-align: center; margin-bottom: 28px; }
.page-head h1, .page-head h2 { font-weight: 800; color: var(--tm-primary); margin-bottom: .35rem; }
.page-head h1 { font-size: 1.9rem; }
.page-head h2 { font-size: 1.8rem; }
.page-head p { color: var(--tm-muted); margin: 0; font-size: 1.05rem; }
.page-head::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px;
  background: var(--tm-accent); margin: 14px auto 0;
}
.page-head small { display: block; color: var(--tm-muted); margin-top: .5rem; }

/* ---------- Cards (also replaces BS3/4 jumbotron + panel) ---------- */
.tm-card, .jumbotron, .panel {
  background: #fff; border: 1px solid var(--tm-border); border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow); padding: 28px; margin-bottom: 24px;
}
.jumbotron.alert-success, .jumbotron.alert { color: var(--tm-text); }
.panel-heading { font-weight: 700; font-size: 1.2rem; color: var(--tm-primary); margin-bottom: 1rem; }
.tm-card-narrow { max-width: 480px; margin: 0 auto; }
.tm-section-label {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--tm-accent-dark); margin: 6px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #fdf0d5;
}

/* ---------- Forms ---------- */
main label, .form-label { font-weight: 600; font-size: .88rem; color: var(--tm-primary); margin-bottom: .35rem; }
.form-control, .form-select {
  border-radius: 10px; border: 1.5px solid var(--tm-border); padding: .6rem .85rem; background-color: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--tm-accent); box-shadow: 0 0 0 .2rem rgba(245, 158, 11, .2);
}
.form-control:disabled, .form-control[disabled], .form-select:disabled { background: #f1f5f9; color: var(--tm-muted); }
input[type=file].form-control { padding: .45rem .75rem; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tm-muted); }
.input-icon .form-control { padding-left: 2.5rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: .55rem 1.2rem; transition: .15s; }
.btn-sm { padding: .3rem .8rem; border-radius: 8px; }
.btn-brand { background: var(--tm-accent); border: 0; color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--tm-accent-dark); color: #fff; }
.btn-primary { background: var(--tm-primary); border-color: var(--tm-primary); }
.btn-primary:hover { background: var(--tm-primary-dark); border-color: var(--tm-primary-dark); }
.btn-success { background: #16a34a; border-color: #16a34a; }
.btn-warning { color: #fff; background: var(--tm-accent); border-color: var(--tm-accent); }
.btn-warning:hover { color: #fff; background: var(--tm-accent-dark); border-color: var(--tm-accent-dark); }
.btn-default { background: #fff; border: 1.5px solid var(--tm-border); color: var(--tm-primary); }
.btn-link { color: var(--tm-primary); text-decoration: none; }
.btn-link:hover { color: var(--tm-accent-dark); text-decoration: underline; }

/* ---------- Tables ---------- */
.tm-table { margin: 0; }
.tm-table thead th, .table thead th {
  background: #eef3f9; color: var(--tm-primary); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700; border-bottom: 0; white-space: nowrap; padding: .85rem .9rem;
}
.tm-table thead th:first-child { border-radius: 10px 0 0 10px; }
.tm-table thead th:last-child { border-radius: 0 10px 10px 0; }
.tm-table td { padding: .85rem .9rem; vertical-align: middle; border-color: var(--tm-border); }
.tm-table tbody tr:hover { background: #fafcff; }
.table-responsive { border-radius: 12px; }
.tm-empty { text-align: center; color: var(--tm-muted); padding: 30px 0; }
.tm-empty i { font-size: 2.2rem; display: block; color: #cbd5e1; }

/* ---------- Status badges ---------- */
.status-badge {
  display: inline-block; padding: .25rem .7rem; border-radius: 50px; font-size: .78rem;
  font-weight: 700; text-transform: capitalize; background: #e5e7eb; color: #374151;
}
.status-badge.new, .status-badge.available { background: #dbeafe; color: #1d4ed8; }
.status-badge.processing, .status-badge.no { background: #fef3c7; color: #b45309; }
.status-badge.approved, .status-badge.yes, .status-badge.active { background: #dcfce7; color: #15803d; }
.status-badge.cancelled, .status-badge.unavailable, .status-badge.blocked { background: #fee2e2; color: #b91c1c; }

/* ---------- Profile ---------- */
.profile-pic {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 6px 20px rgba(15, 61, 94, .2);
}
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.profile-head h1 { font-size: 1.6rem; font-weight: 800; color: var(--tm-primary); margin: 0; }
.profile-head p { margin: 0; color: var(--tm-muted); }

/* ---------- Alerts ---------- */
.alert { border-radius: 12px; border: 0; }
.alert-danger { background: #fef2f2; color: #991b1b; border-left: 5px solid #ef4444; }
.alert-success { background: #f0fdf4; border-left: 5px solid #22c55e; }
.alert-info { background: #eff6ff; color: #1e40af; border-left: 5px solid #3b82f6; }

/* ---------- Pagination ---------- */
.pagination { justify-content: center; flex-wrap: wrap; }
.page-link { color: var(--tm-primary); border-radius: 8px !important; margin: 0 2px; border: 1px solid var(--tm-border); }
.page-item.active .page-link { background: var(--tm-primary); border-color: var(--tm-primary); }

/* ---------- Result / confirmation ---------- */
.result-box { text-align: center; max-width: 560px; margin: 20px auto; padding: 44px 30px; }
.result-box .result-icon { font-size: 4rem; color: #22c55e; line-height: 1; }
.result-box h2 { font-weight: 800; color: var(--tm-primary); margin: 14px 0 8px; }
.result-box p { color: var(--tm-muted); font-size: 1.05rem; }

/* ---------- Home page ---------- */
.hero { background: linear-gradient(135deg, #fff7e0 0%, #fdeccd 100%); padding: 40px 0 60px; }
.hero h3.hero-title { color: var(--tm-primary); font-weight: 800; font-size: 2.1rem; }
.hero h3.hero-title span { color: var(--tm-accent-dark); }
.hero p { color: #4b5563; font-size: 1.02rem; line-height: 1.7; }
.hero img { border-radius: 20px; box-shadow: var(--tm-shadow); }
.home-section { padding: 64px 0; }
.home-section.alt { background: #fff; }
.feature-card {
  background: #fff; border: 1px solid var(--tm-border); border-radius: var(--tm-radius); padding: 28px 22px;
  text-align: center; height: 100%; transition: .25s; box-shadow: 0 2px 10px rgba(15, 61, 94, .04);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--tm-shadow); border-color: var(--tm-accent); }
.feature-card .icon {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center;
  justify-content: center; font-size: 1.9rem; color: var(--tm-accent-dark); background: #fff4dc;
}
.feature-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--tm-primary); }
.feature-card p { color: var(--tm-muted); font-size: .92rem; margin: 0; }
.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li { padding: 4px 0; }
.value-list li::before { content: "\2713"; color: var(--tm-accent-dark); font-weight: 700; margin-right: 10px; }
.team-card { background: #fff; border-radius: var(--tm-radius); overflow: hidden; box-shadow: var(--tm-shadow); text-align: center; height: 100%; }
.team-card img { width: 100%; height: 260px; object-fit: cover; }
.team-card .info { padding: 18px 12px 22px; }
.team-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--tm-primary); margin: 0; }
.team-card span { color: var(--tm-muted); font-size: .9rem; }
.team-card .social a { color: var(--tm-primary); margin: 0 6px; font-size: 1.05rem; }
.team-card .social a:hover { color: var(--tm-accent-dark); }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 22px; }
.contact-info .item { background: #fff; border-radius: var(--tm-radius); padding: 22px; box-shadow: var(--tm-shadow); text-align: center; }
.contact-info .item i { font-size: 1.8rem; color: var(--tm-accent-dark); }
.contact-info .item h4 { font-size: 1rem; font-weight: 700; margin: 8px 0 4px; color: var(--tm-primary); }
.contact-info .item p { margin: 0; color: var(--tm-muted); }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); }

/* ---------- Footer ---------- */
#footer { background: var(--tm-primary-dark); color: rgba(255, 255, 255, .75); font-size: .93rem; margin-top: auto; }
#footer .footer-top { background: transparent !important; border-radius: 0 !important; margin: 0 !important; padding: 48px 0 24px !important; }
#footer h3, #footer h4 { color: #fff; font-weight: 700; }
#footer h3 { font-size: 1.3rem; }
#footer h4 { font-size: 1rem; margin-bottom: 14px; position: relative; padding-bottom: 10px; }
#footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--tm-accent); border-radius: 3px; }
#footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
#footer a:hover { color: var(--tm-accent); }
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer ul li { padding: 5px 0; }
#footer ul li i { color: var(--tm-accent); }
#footer .social-links a {
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .1); margin-right: 8px; transition: .2s;
}
#footer .social-links a:hover { background: var(--tm-accent); color: #fff; }
#footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; text-align: center; font-size: .85rem; }

.back-to-top { background: var(--tm-accent) !important; border-radius: 50% !important; }
.back-to-top:hover { background: var(--tm-accent-dark) !important; }

@media (max-width: 767px) {
  main#main { padding-top: 92px; }
  .tm-card, .jumbotron { padding: 20px 16px; }
  .hero h3.hero-title { font-size: 1.6rem; }
}

/* ---------- Concept-brief pages (home routes, explore, about, enquire) ---------- */
.route-card {
  display: block; height: 100%; background: #fff; border: 1px solid var(--tm-border); border-radius: var(--tm-radius);
  padding: 32px 28px; box-shadow: var(--tm-shadow); text-decoration: none; color: var(--tm-text); transition: .25s;
  border-top: 5px solid var(--tm-accent);
}
.route-card.alt { border-top-color: var(--tm-primary); }
.route-card:hover { transform: translateY(-5px); color: var(--tm-text); }
.route-card .icon { font-size: 2rem; color: var(--tm-accent-dark); }
.route-card.alt .icon { color: var(--tm-primary); }
.route-card h3 { font-weight: 800; color: var(--tm-primary); font-size: 1.35rem; margin: 10px 0 8px; }
.route-card p { color: var(--tm-muted); margin-bottom: 14px; }
.route-card .go { font-weight: 700; color: var(--tm-accent-dark); }
.route-card.alt .go { color: var(--tm-primary); }

.step { text-align: center; padding: 10px 14px; }
.step .num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--tm-primary); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.2rem;
}
.step h5 { font-weight: 700; color: var(--tm-primary); }
.step p { color: var(--tm-muted); font-size: .92rem; margin: 0; }

.chip { display: inline-block; padding: .22rem .7rem; border-radius: 50px; font-size: .76rem; font-weight: 700; background: #e5e7eb; color: #374151; }
.chip.pilot { background: #dcfce7; color: #15803d; }
.chip.confirm { background: #fef3c7; color: #b45309; }
.chip.future { background: #e0e7ff; color: #3730a3; }

.block-card { background: #fff; border: 1px solid var(--tm-border); border-radius: var(--tm-radius); padding: 22px; height: 100%; }
.block-card h5 { font-weight: 700; color: var(--tm-primary); margin-bottom: 4px; }
.block-card p { color: var(--tm-muted); font-size: .92rem; margin: 8px 0 12px; }

.product-card { background: #fff; border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); padding: 26px; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--tm-border); }
.product-card h4 { font-weight: 800; color: var(--tm-primary); font-size: 1.15rem; margin: 10px 0 6px; }
.product-card p { color: var(--tm-muted); flex: 1; }

.notice { background: #fffbeb; border-left: 5px solid var(--tm-accent); border-radius: 12px; padding: 16px 20px; color: #78350f; }
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { padding: 8px 0 8px 30px; position: relative; }
.fact-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--tm-accent-dark); }
.type-toggle .btn { flex: 1; }
.type-toggle .btn-check:checked + .btn { background: var(--tm-primary); color: #fff; border-color: var(--tm-primary); }

/* ---------- Destinations, packages, filters (website structure v2) ---------- */
.dest-card { background: #fff; border-radius: var(--tm-radius); overflow: hidden; border: 1px solid var(--tm-border); box-shadow: var(--tm-shadow); height: 100%; display: flex; flex-direction: column; transition: .25s; }
.dest-card:hover { transform: translateY(-5px); }
.dest-img { height: 190px; background-size: cover; background-position: center; background-color: #dbe7f3; position: relative; }
.dest-img.placeholder { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-size: 3rem; background: linear-gradient(135deg, var(--tm-primary), #1d6a96); }
.dest-img.placeholder.nature { background: linear-gradient(135deg, #14532d, #4d9a5f); }
.dest-img.placeholder.heritage { background: linear-gradient(135deg, #7c2d12, #d97706); }
.dest-img.placeholder.culture { background: linear-gradient(135deg, #581c87, #c2410c); }
.dest-img.placeholder.food { background: linear-gradient(135deg, #9a3412, #f59e0b); }
.dest-img .chip { position: absolute; top: 12px; left: 12px; }
.dest-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.dest-body h4 { font-size: 1.08rem; font-weight: 800; color: var(--tm-primary); margin: 4px 0 6px; }
.dest-body p { color: var(--tm-muted); font-size: .93rem; flex: 1; }
.dest-meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tm-accent-dark); font-weight: 700; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.filter-pill { padding: .35rem .95rem; border-radius: 50px; border: 1.5px solid var(--tm-border); background: #fff; color: var(--tm-primary); font-weight: 600; font-size: .88rem; text-decoration: none; }
.filter-pill:hover { border-color: var(--tm-accent); color: var(--tm-accent-dark); }
.filter-pill.active { background: var(--tm-primary); border-color: var(--tm-primary); color: #fff; }
.block-heading { font-weight: 800; color: var(--tm-primary); margin: 40px 0 16px; display: flex; align-items: center; gap: 12px; }
.block-heading::after { content: ""; flex: 1; height: 2px; background: #fdf0d5; }

.package-card { background: #fff; border-radius: var(--tm-radius); border: 1px solid var(--tm-border); box-shadow: var(--tm-shadow); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.package-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.package-card h3 { font-weight: 800; color: var(--tm-primary); font-size: 1.3rem; margin: 6px 0; }
.package-card .descriptor { font-weight: 600; color: var(--tm-text); font-size: .95rem; margin: 6px 0 12px; }
.package-card .price { margin-top: 14px; font-weight: 700; color: var(--tm-accent-dark); }
.incl-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .88rem; }
.incl-list .yes { color: #15803d; } .incl-list .no { color: var(--tm-muted); }
.duration-badge { display: inline-block; background: #fff4dc; color: var(--tm-accent-dark); font-weight: 800; border-radius: 10px; padding: .2rem .7rem; font-size: .85rem; }

.pathway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.pathway-grid .route-card { padding: 26px 22px; }
.pathway-grid .route-card h3 { font-size: 1.12rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-hint { font-size: .8rem; color: var(--tm-muted); margin-top: 4px; }
.contact-side .item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.contact-side .item i { font-size: 1.4rem; color: var(--tm-accent-dark); }
.contact-side .item h5 { font-size: .95rem; font-weight: 700; margin: 0; color: var(--tm-primary); }
.contact-side .item p { margin: 0; color: var(--tm-muted); }
.filter-label { text-align: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tm-muted); font-weight: 700; margin: 10px 0 8px; }
