/* assets/css/main.css — Gaviya Trips */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-primary:   #1a6b4a;
  --c-primary-d: #145539;
  --c-primary-l: #e8f5ee;
  --c-text:      #1a1a1a;
  --c-muted:     #6b6966;
  --c-hint:      #a8a5a0;
  --c-border:    #e0ded8;
  --c-bg:        #f7f6f3;
  --c-card:      #ffffff;
  --c-danger:    #c0392b;
  --c-warning:   #b7770d;
  --c-warning-bg:#fdf3dc;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
  --shadow-md:   0 2px 12px rgba(0,0,0,.10);
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; color: var(--c-text); background: var(--c-bg); line-height: 1.6; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 48px 0; }
.section-sm { padding: 28px 0; }

/* ── Header ── */
.site-header { background: var(--c-card); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 100; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1100px; margin: 0 auto; }
.logo { font-size: 20px; font-weight: 600; color: var(--c-primary); }
.logo span { color: var(--c-text); }
.header-nav a { margin-left: 20px; font-size: 14px; color: var(--c-muted); }
.header-nav a:hover { color: var(--c-primary); text-decoration: none; }

/* ── Cards ── */
.card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 20px 24px; }
.card-sm { padding: 14px 16px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; border: 1.5px solid transparent; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-primary:hover { background: var(--c-primary-d); text-decoration: none; }
.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary-l); text-decoration: none; }
.btn-ghost  { background: transparent; color: var(--c-muted); border-color: var(--c-border); }
.btn-ghost:hover { background: var(--c-bg); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ── Chips / tags ── */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border: 1.5px solid var(--c-border); border-radius: 24px; font-size: 13px; cursor: pointer; transition: all .15s; background: var(--c-card); color: var(--c-text); }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Badges ── */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.badge-green  { background: #e6f4ec; color: #1a6b4a; }
.badge-blue   { background: #e6f0fb; color: #1a5fa8; }
.badge-amber  { background: #fdf3dc; color: #7a5200; }
.badge-red    { background: #fce8e8; color: #9b2020; }
.badge-gray   { background: #f0ede8; color: #5f5e5a; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--c-muted); margin-bottom: 5px; }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: var(--c-card); color: var(--c-text); transition: border-color .15s; }
.form-control:focus { outline: none; border-color: var(--c-primary); }
.form-control::placeholder { color: var(--c-hint); }

/* ── Stepper / wizard ── */
.wizard-wrap { max-width: 680px; margin: 0 auto; padding: 20px; }
.progress-bar { height: 3px; background: var(--c-border); border-radius: 2px; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--c-primary); border-radius: 2px; transition: width .4s; }
.step-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 24px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-border); transition: all .2s; cursor: pointer; }
.step-dot.done { background: var(--c-primary); opacity: .5; }
.step-dot.active { background: var(--c-primary); transform: scale(1.4); }
.step-label { font-size: 11px; color: var(--c-hint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.step-title { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.step-sub   { font-size: 14px; color: var(--c-muted); margin-bottom: 20px; }

/* ── Package cards ── */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pkg-card { border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--c-card); cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.pkg-card:hover { box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.pkg-img { height: 140px; background: var(--c-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pkg-img img { width: 100%; height: 100%; object-fit: cover; }
.pkg-img-placeholder { font-size: 40px; opacity: .4; }
.pkg-body { padding: 14px; }
.pkg-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.pkg-sub  { font-size: 12px; color: var(--c-muted); margin-bottom: 10px; }
.pkg-price { font-size: 15px; font-weight: 600; color: var(--c-primary); }
.pkg-price-sub { font-size: 11px; color: var(--c-hint); }

/* ── Place cards ── */
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 10px; }
.place-card { border: 1.5px solid var(--c-border); border-radius: var(--radius-md); padding: 14px; cursor: pointer; transition: all .15s; background: var(--c-card); }
.place-card:hover { border-color: var(--c-primary); }
.place-card.selected { border-color: var(--c-primary); background: var(--c-primary-l); }
.place-card .place-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.place-card .place-info { font-size: 12px; color: var(--c-muted); }
.place-card .place-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--c-border); display: flex; align-items: center; justify-content: center; float: right; font-size: 12px; color: transparent; margin-top: -2px; }
.place-card.selected .place-check { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ── Attraction rows ── */
.attr-list { display: flex; flex-direction: column; }
.attr-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.attr-row:last-child { border-bottom: none; }
.attr-check { width: 20px; height: 20px; min-width: 20px; border: 1.5px solid var(--c-border); border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; color: transparent; margin-top: 2px; }
.attr-check.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.attr-info { flex: 1; }
.attr-name { font-size: 14px; font-weight: 500; }
.attr-sub  { font-size: 12px; color: var(--c-muted); margin-top: 2px; }

/* ── Vehicle rows ── */
.vehicle-list { display: flex; flex-direction: column; gap: 10px; }
.vehicle-row { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--c-border); border-radius: var(--radius-md); cursor: pointer; transition: all .15s; background: var(--c-card); }
.vehicle-row:hover { border-color: var(--c-primary); }
.vehicle-row.selected { border-color: var(--c-primary); background: var(--c-primary-l); }
.vehicle-icon { font-size: 28px; min-width: 36px; text-align: center; opacity: .7; }
.vehicle-info { flex: 1; }
.vehicle-name { font-weight: 600; font-size: 14px; }
.vehicle-sub  { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.vehicle-price { text-align: right; }
.vehicle-rate  { font-weight: 600; font-size: 15px; }
.vehicle-extra { font-size: 11px; color: var(--c-hint); margin-top: 2px; }

/* ── Hotel cards ── */
.hotel-list { display: flex; flex-direction: column; gap: 12px; }
.hotel-card { border: 1.5px solid var(--c-border); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: all .15s; background: var(--c-card); }
.hotel-card:hover { border-color: var(--c-primary); }
.hotel-card.selected { border-color: var(--c-primary); border-width: 2px; }
.hotel-card-inner { display: flex; gap: 0; }
.hotel-thumb { width: 100px; min-width: 100px; height: 90px; object-fit: cover; background: var(--c-bg); }
.hotel-body  { padding: 10px 14px; flex: 1; }
.hotel-name  { font-weight: 600; font-size: 14px; }
.hotel-stars { font-size: 12px; color: #c89500; margin: 2px 0; }
.hotel-sub   { font-size: 12px; color: var(--c-muted); }
.hotel-price { text-align: right; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
.hotel-rate  { font-weight: 600; font-size: 15px; white-space: nowrap; }
.hotel-per   { font-size: 11px; color: var(--c-hint); }
.hotel-change-link { font-size: 12px; color: var(--c-primary); cursor: pointer; }

/* ── Itinerary ── */
.itin-day { margin-bottom: 20px; }
.itin-day-header { font-size: 13px; font-weight: 600; color: var(--c-muted); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--c-border); }
.itin-timeline { border-left: 2px solid var(--c-border); padding-left: 16px; }
.itin-item { position: relative; padding: 4px 0; font-size: 13px; display: flex; align-items: flex-start; gap: 8px; }
.itin-item::before { content: ''; position: absolute; left: -21px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-border); }
.itin-item.drive::before { background: var(--c-primary); }
.itin-item.attraction::before { background: #c89500; }
.itin-item.hotel::before { background: #1a5fa8; }
.itin-label  { font-weight: 500; }
.itin-detail { font-size: 12px; color: var(--c-muted); }

/* ── Price summary ── */
.price-table { width: 100%; font-size: 14px; }
.price-table tr td { padding: 5px 0; }
.price-table tr td:last-child { text-align: right; font-weight: 500; }
.price-total td { font-size: 16px; font-weight: 700; border-top: 1px solid var(--c-border); padding-top: 10px; }
.price-advance { color: var(--c-primary); font-weight: 600; }

/* ── Number stepper ── */
.num-stepper { display: flex; align-items: center; gap: 12px; }
.num-btn { width: 34px; height: 34px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-card); font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.num-btn:hover { background: var(--c-bg); }
.num-val { font-size: 22px; font-weight: 600; min-width: 32px; text-align: center; }

/* ── Alert ── */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 16px; }
.alert-warning { background: var(--c-warning-bg); color: var(--c-warning); border: 1px solid #e8c86e; }
.alert-info    { background: #e6f0fb; color: #1a5fa8; border: 1px solid #9fc3f0; }

/* ── Stars filter ── */
.star-filter { display: flex; gap: 8px; }
.star-btn { padding: 8px 16px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); font-size: 13px; background: var(--c-card); transition: all .15s; }
.star-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ── Nav ── */
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.step-counter { font-size: 13px; color: var(--c-muted); }

/* ── Modal / drawer ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: none; align-items: flex-end; }
.modal-overlay.open { display: flex; }
.modal-sheet { background: var(--c-card); border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; max-height: 85vh; overflow-y: auto; padding: 20px; }
.modal-handle { width: 40px; height: 4px; background: var(--c-border); border-radius: 2px; margin: 0 auto 16px; }
.modal-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.modal-sub   { font-size: 13px; color: var(--c-muted); margin-bottom: 16px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .pkg-grid   { grid-template-columns: 1fr 1fr; }
  .place-grid { grid-template-columns: 1fr 1fr; }
  .step-title { font-size: 19px; }
  .hotel-card-inner { flex-direction: column; }
  .hotel-thumb { width: 100%; height: 120px; }
  .hotel-price { align-items: flex-start; padding-top: 0; padding-left: 14px; }
}
@media (max-width: 400px) {
  .pkg-grid   { grid-template-columns: 1fr; }
  .place-grid { grid-template-columns: 1fr; }
}
