/* ============================================================
   COMPONENTS — Shared components: search bar, booking panel,
                forms, dashboard, breadcrumbs, pagination etc.
   /assets/css/components.css
============================================================ */

/* ── Premium Search Bar ── */
.ggn-search-wrap { max-width: 980px; margin: 0 auto; padding: 0 1.5rem; }
.ggn-search-bar {
  display: flex; align-items: stretch; background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.28), 0 8px 24px rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.7); overflow: hidden;
  transition: box-shadow .22s;
}
.ggn-search-bar:focus-within { box-shadow: 0 36px 88px rgba(0,0,0,.32), 0 8px 24px rgba(0,0,0,.14), 0 0 0 3px rgba(10,79,110,.2); }
.ggn-search-field {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: .875rem 1.375rem; position: relative; cursor: pointer;
  transition: background .15s; min-width: 0;
}
.ggn-search-field:hover { background: rgba(10,79,110,.03); }
.ggn-search-field:focus-within { background: rgba(10,79,110,.05); }
.ggn-search-label {
  display: flex; align-items: center; gap: .3rem; font-family: var(--sans,'Montserrat',sans-serif);
  font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ocean,#0A4F6E); margin-bottom: .35rem; white-space: nowrap; user-select: none;
}
.ggn-search-input {
  border: none !important; outline: none !important; background: transparent !important;
  font-family: var(--sans,'Montserrat',sans-serif); font-size: .9rem; font-weight: 500;
  color: var(--ink,#111827); padding: 0 !important; width: 100%; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
select.ggn-search-input { padding-right: 1.25rem !important; }
.ggn-search-input::placeholder { color: var(--mist,#94A3B8); }
.ggn-search-input:focus { color: var(--ocean,#0A4F6E); }
.ggn-search-chevron { position: absolute; right: 1.375rem; bottom: 1.05rem; color: var(--mist,#94A3B8); pointer-events: none; transition: transform .2s, color .2s; }
.ggn-search-field:focus-within .ggn-search-chevron { transform: rotate(180deg); color: var(--ocean,#0A4F6E); }
input[type="date"].ggn-search-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 2; }
.ggn-search-date-hint { font-family: var(--sans,'Montserrat',sans-serif); font-size: .9rem; font-weight: 500; color: var(--mist,#94A3B8); pointer-events: none; transition: color .15s; position: relative; z-index: 1; }
#sf-date { position: relative; }
#sf-date .ggn-search-label { position: relative; z-index: 3; pointer-events: none; }
.ggn-search-divider { width: 1px; background: var(--border,#E2E8F0); margin: .875rem 0; flex-shrink: 0; }
.ggn-search-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem; padding: 0 1.75rem;
  background: linear-gradient(160deg, var(--ocean,#0A4F6E) 0%, var(--ocean-d,#063348) 100%);
  border: none; cursor: pointer; flex-shrink: 0; border-radius: 0 18px 18px 0; min-width: 108px;
  transition: background .22s; color: #fff;
}
.ggn-search-btn:hover { background: linear-gradient(160deg, var(--flame,#E8832A), var(--flame-d,#C4651A)); }
.ggn-search-btn-text { font-family: var(--sans,'Montserrat',sans-serif); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); text-align: center; line-height: 1.3; }
.ggn-pill { padding: .35rem 1rem; border-radius: 9999px; font-family: var(--sans,'Montserrat',sans-serif); font-size: .72rem; font-weight: 600; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.88); cursor: pointer; transition: all .15s; backdrop-filter: blur(8px); }
.ggn-pill:hover { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.65); color: #fff; transform: translateY(-1px); }
.ggn-search-pills { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 1.25rem; }

/* ── Booking Panel ── */
.booking-panel { background: #fff; border-radius: var(--r-xl,24px); overflow: hidden; border: 1px solid var(--border,#E2E8F0); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.booking-sidebar-sticky { position: sticky; top: calc(var(--header-h,112px) + 1.5rem); }
.booking-steps { display: flex; background: var(--surface,#F8FAFC); border-bottom: 1px solid var(--border,#E2E8F0); }
.booking-step { flex: 1; padding: .875rem .5rem; text-align: center; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mist,#94A3B8); border-bottom: 2px solid transparent; transition: all .15s; }
.booking-step.active    { color: var(--ocean,#0A4F6E); border-bottom-color: var(--ocean,#0A4F6E); background: #fff; }
.booking-step.completed { color: #059669; border-bottom-color: #059669; }
.booking-body { padding: 1.5rem; }

/* ── Tour Tabs ── */
.tour-tab-bar,.tab-nav-wrap { display: flex; border-bottom: 2px solid var(--border,#E2E8F0); overflow-x: auto; scrollbar-width: none; }
.tour-tab-bar::-webkit-scrollbar,.tab-nav-wrap::-webkit-scrollbar { display: none; }
.tour-tab,.tab-nav-item { padding: .9rem 1.375rem; font-size: .845rem; font-weight: 600; color: var(--steel,#475569); border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; transition: all .15s; background: none; border-top: none; border-left: none; border-right: none; font-family: var(--sans,'Montserrat',sans-serif); }
.tour-tab.active,.tab-nav-item.active { color: var(--ocean,#0A4F6E); border-bottom-color: var(--ocean,#0A4F6E); }
.tour-tab:hover:not(.active),.tab-nav-item:hover:not(.active) { color: var(--ink,#111827); }
.tab-panel,.tour-tab-pane { display: none; }
.tab-panel.active,.tour-tab-pane.active { display: block; }

/* ── FAQ ── */
.faq-item { border: 1.5px solid var(--border,#E2E8F0); border-radius: var(--r-lg,16px); margin-bottom: .625rem; overflow: hidden; }
.faq-item.open { border-color: var(--ocean,#0A4F6E); }
.faq-q,.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.375rem; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink,#111827); gap: 1rem; background: #fff; border: none; width: 100%; text-align: left; font-family: var(--sans,'Montserrat',sans-serif); transition: background .15s; }
.faq-q:hover,.faq-question:hover { background: var(--surface,#F8FAFC); }
.faq-item.open .faq-q,.faq-item.open .faq-question { color: var(--ocean,#0A4F6E); background: rgba(10,79,110,.03); }
.faq-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--surface,#F8FAFC); display: flex; align-items: center; justify-content: center; color: var(--steel,#475569); flex-shrink: 0; transition: all .2s; font-size: .9rem; }
.faq-item.open .faq-icon { background: var(--ocean,#0A4F6E); color: #fff; transform: rotate(45deg); }
.faq-a,.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 1.375rem 1.25rem; font-size: .875rem; color: var(--steel,#475569); line-height: 1.8; }

/* ── Pagination ── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pagination .page-number,.pagination a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-md,12px); font-size: .875rem; font-weight: 600; border: 1.5px solid var(--border,#E2E8F0); color: var(--steel,#475569); transition: all .15s; }
.pagination .current,.pagination a:hover { background: var(--ocean,#0A4F6E); border-color: var(--ocean,#0A4F6E); color: #fff; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: .8rem; color: rgba(255,255,255,.65); }
.breadcrumb a { color: rgba(255,255,255,.65); transition: color .15s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.35); }
.breadcrumb-current { color: rgba(255,255,255,.88); font-weight: 600; }

/* ── Page Hero ── */
.page-hero { padding: calc(var(--header-h,112px) + 2.5rem) 0 3rem; background: linear-gradient(135deg, var(--ocean,#0A4F6E), var(--ocean-d,#063348)); text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }

/* ── Notification / Alerts ── */
.notice { padding: .875rem 1.1rem; border-radius: var(--r-lg,16px); font-size: .875rem; display: flex; align-items: flex-start; gap: .5rem; margin-bottom: 1rem; }
.notice svg { flex-shrink: 0; margin-top: .1em; }
.notice-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.notice-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.notice-info    { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.toast { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-radius: var(--r-xl,24px); font-size: .875rem; font-weight: 500; max-width: 340px; box-shadow: 0 32px 64px rgba(0,0,0,.12); pointer-events: auto; background: #fff; animation: fadeUp .3s ease; }
.toast.hide { opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .3s; }
.toast-success { border-left: 4px solid #059669; color: #059669; }
.toast-error   { border-left: 4px solid #dc2626; color: #dc2626; }
.toast-info    { border-left: 4px solid var(--ocean,#0A4F6E); color: var(--ocean,#0A4F6E); }
.toast-close   { margin-left: auto; cursor: pointer; background: none; border: none; color: inherit; opacity: .5; padding: 0; font-size: 1rem; }
@keyframes fadeUp { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: none; } }

/* ── Responsive search ── */
@media (max-width: 768px) {
  .ggn-search-bar { flex-direction: column; border-radius: var(--r-xl,24px) !important; overflow: visible; }
  .ggn-search-field { border-right: none !important; border-bottom: 1px solid var(--border,#E2E8F0); padding: .875rem 1.125rem; }
  .ggn-search-field:last-of-type { border-bottom: none; }
  .ggn-search-divider { display: none; }
  input[type="date"].ggn-search-input { position: relative; opacity: 1; height: auto; }
  .ggn-search-date-hint { display: none; }
  .ggn-search-btn { border-radius: 0 0 var(--r-xl,24px) var(--r-xl,24px); flex-direction: row; padding: 1rem 1.5rem; gap: .5rem; width: 100%; min-width: auto; }
  .ggn-search-btn-text { font-size: .875rem; }
  .ggn-search-pills { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ggn-search-pills::-webkit-scrollbar { display: none; }
  .ggn-pill { flex-shrink: 0; }
}
