/* =============================================================================
   TGIT Travel Engine — Frontend CSS
   Compatible with both the TGIT WordPress theme (Tailwind) and third-party themes.
   Uses BEM-ish class naming under the `.tgit-` namespace.
   ============================================================================= */

:root {
  --tgit-gold:      #C8962A;
  --tgit-gold-lt:   #E5B643;
  --tgit-green:     #2C6E49;
  --tgit-dark:      #0A0A0A;
  --tgit-card-bg:   #FFFFFF;
  --tgit-text:      #1A1A1A;
  --tgit-text-muted:#6B7280;
  --tgit-border:    #E5E7EB;
  --tgit-radius:    12px;
  --tgit-shadow:    0 2px 16px rgba(0,0,0,0.08);
  --tgit-transition:0.2s ease;
}

.dark {
  --tgit-card-bg:  #1C1C1C;
  --tgit-text:     #FFFFFF;
  --tgit-text-muted:#9CA3AF;
  --tgit-border:   #2A2A2A;
  --tgit-shadow:   0 2px 16px rgba(0,0,0,0.4);
}

/* ── Search Form ──────────────────────────────────────────────────────────── */
.tgit-search-wrapper  { position: relative; }
.tgit-search-form     { background: var(--tgit-card-bg); border-radius: var(--tgit-radius); box-shadow: var(--tgit-shadow); border: 1px solid var(--tgit-border); overflow: hidden; }
.tgit-search-main     { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; }
.tgit-search-input-wrap { position: relative; flex: 1 1 280px; }
.tgit-search-input    { width: 100%; padding: 12px 12px 12px 44px; border: 1px solid var(--tgit-border); border-radius: 10px; font-size: 15px; color: var(--tgit-text); background: transparent; outline: none; transition: border-color var(--tgit-transition); }
.tgit-search-input:focus { border-color: var(--tgit-gold); box-shadow: 0 0 0 3px rgba(200,150,42,0.15); }
.tgit-search-icon     { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--tgit-text-muted); pointer-events: none; }
.tgit-search-quick-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.tgit-filter-chip select,
.tgit-filter-chip input { padding: 10px 14px; border: 1px solid var(--tgit-border); border-radius: 10px; font-size: 14px; background: var(--tgit-card-bg); color: var(--tgit-text); cursor: pointer; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.tgit-btn-primary,
.tgit-btn-search { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; background: #1A1A1A; color: #fff; border: none; cursor: pointer; transition: background var(--tgit-transition), transform var(--tgit-transition); }
.tgit-btn-primary:hover,
.tgit-btn-search:hover { background: #333; }
.dark .tgit-btn-primary,
.dark .tgit-btn-search { background: var(--tgit-gold); color: #000; }
.dark .tgit-btn-primary:hover,
.dark .tgit-btn-search:hover { background: var(--tgit-gold-lt); }
.tgit-btn-text { background: none; border: none; padding: 8px 12px; cursor: pointer; color: var(--tgit-text-muted); font-size: 14px; }
.tgit-btn-cancel { background: transparent !important; border: 1px solid #EF4444 !important; color: #EF4444 !important; }

/* ── Autocomplete ─────────────────────────────────────────────────────────── */
.tgit-autocomplete-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--tgit-card-bg); border: 1px solid var(--tgit-border); border-radius: 10px; box-shadow: var(--tgit-shadow); z-index: 1000; overflow: hidden; }
.tgit-ac-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: 14px; transition: background var(--tgit-transition); }
.tgit-ac-item:hover { background: rgba(200,150,42,0.08); }
.tgit-ac-label { flex: 1; color: var(--tgit-text); }
.tgit-ac-type  { font-size: 11px; color: var(--tgit-text-muted); text-transform: capitalize; }

/* ── Filter panel ─────────────────────────────────────────────────────────── */
.tgit-filter-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--tgit-border); }
.tgit-filter-toggle-btn { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-size: 14px; color: var(--tgit-text-muted); padding: 6px 0; }
.tgit-filter-panel { padding: 16px; border-top: 1px solid var(--tgit-border); background: rgba(0,0,0,0.02); }
.tgit-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 16px; }
.tgit-filter-group label { display: block; font-size: 13px; font-weight: 600; color: var(--tgit-text-muted); margin-bottom: 8px; }
.tgit-check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tgit-check-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.tgit-filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--tgit-border); }

/* ── Package Card ─────────────────────────────────────────────────────────── */
.tgit-package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tgit-cols-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.tgit-cols-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.tgit-package-card { background: var(--tgit-card-bg); border-radius: var(--tgit-radius); border: 1px solid var(--tgit-border); overflow: hidden; transition: box-shadow var(--tgit-transition), transform var(--tgit-transition); display: flex; flex-direction: column; }
.tgit-package-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-2px); }

.tgit-card-image-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f0f0f0; }
.tgit-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tgit-package-card:hover .tgit-card-image { transform: scale(1.05); }
.tgit-card-image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.tgit-difficulty-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.tgit-difficulty--easy      { background: #D1FAE5; color: #065F46; }
.tgit-difficulty--moderate  { background: #FEF3C7; color: #92400E; }
.tgit-difficulty--difficult { background: #FEE2E2; color: #991B1B; }
.tgit-difficulty--extreme   { background: #EDE9FE; color: #5B21B6; }

.tgit-wishlist-btn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.92); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--tgit-transition), color var(--tgit-transition); color: #9CA3AF; }
.tgit-wishlist-btn:hover,
.tgit-wishlist-btn[data-wishlisted="true"] { color: #EF4444; background: #fff; }
.tgit-wishlist-btn svg { width: 18px; height: 18px; }

.tgit-card-content { padding: 14px 16px 10px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tgit-card-location { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--tgit-text-muted); }
.tgit-icon-sm { width: 14px; height: 14px; flex-shrink: 0; }
.tgit-card-title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.tgit-card-title a { color: var(--tgit-text); text-decoration: none; }
.tgit-card-title a:hover { color: var(--tgit-gold); }

.tgit-card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tgit-meta-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: rgba(0,0,0,0.04); border-radius: 20px; font-size: 12px; color: var(--tgit-text-muted); }
.dark .tgit-meta-chip { background: rgba(255,255,255,0.06); }
.tgit-meta-chip--departure { color: var(--tgit-gold); }
.tgit-seats-left { color: #059669; font-weight: 600; }
.tgit-seats-critical { color: #DC2626; }
.tgit-meta-chip--rating { color: #F59E0B; }

.tgit-card-inclusions { display: flex; gap: 6px; }
.tgit-inclusion-chip { font-size: 14px; cursor: default; }

.tgit-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 14px; border-top: 1px solid var(--tgit-border); margin-top: auto; }
.tgit-card-price { display: flex; align-items: baseline; gap: 4px; }
.tgit-price-from { font-size: 11px; color: var(--tgit-text-muted); }
.tgit-price-value { font-size: 18px; font-weight: 800; color: var(--tgit-text); }
.tgit-price-per { font-size: 11px; color: var(--tgit-text-muted); }
.tgit-btn-card-cta { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; background: #1A1A1A; color: #fff; text-decoration: none; transition: background var(--tgit-transition); }
.tgit-btn-card-cta:hover { background: #333; }
.dark .tgit-btn-card-cta { background: var(--tgit-gold); color: #000; }

/* ── Booking Steps ────────────────────────────────────────────────────────── */
.tgit-booking-steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; background: var(--tgit-card-bg); border: 1px solid var(--tgit-border); border-radius: var(--tgit-radius); padding: 20px; overflow-x: auto; }
.tgit-step { display: flex; align-items: center; gap: 8px; padding: 0 16px 0 0; white-space: nowrap; }
.tgit-step:not(:last-child)::after { content: '›'; color: var(--tgit-text-muted); margin-right: 16px; }
.tgit-step__num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--tgit-border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--tgit-text-muted); }
.tgit-step.active .tgit-step__num { border-color: var(--tgit-gold); background: var(--tgit-gold); color: #fff; }
.tgit-step.completed .tgit-step__num { border-color: #059669; background: #059669; color: #fff; }
.tgit-step__label { font-size: 13px; font-weight: 500; color: var(--tgit-text-muted); }
.tgit-step.active .tgit-step__label { color: var(--tgit-text); }
.tgit-progress-fill { height: 4px; background: var(--tgit-gold); border-radius: 4px; transition: width 0.4s ease; }

/* Departure picker */
.tgit-departures-list { display: flex; flex-direction: column; gap: 10px; }
.tgit-dep-option { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border: 2px solid var(--tgit-border); border-radius: 10px; cursor: pointer; transition: border-color var(--tgit-transition), background var(--tgit-transition); }
.tgit-dep-option:has(input:checked) { border-color: var(--tgit-gold); background: rgba(200,150,42,0.05); }
.tgit-dep-dates { font-weight: 600; font-size: 15px; color: var(--tgit-text); }
.tgit-dep-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; color: var(--tgit-text-muted); }
.tgit-dep-status--available { color: #059669; }
.tgit-dep-status--limited { color: #D97706; }
.tgit-dep-status--sold_out { color: #DC2626; }
.tgit-seats--low { color: #DC2626; font-weight: 700; }

/* Passenger form */
.tgit-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tgit-form-grid input, .tgit-form-grid select { padding: 10px 12px; border: 1px solid var(--tgit-border); border-radius: 8px; font-size: 14px; background: var(--tgit-card-bg); color: var(--tgit-text); width: 100%; }
.tgit-field-error { border-color: #EF4444 !important; box-shadow: 0 0 0 2px rgba(239,68,68,0.15); }
.tgit-passenger-row { background: rgba(0,0,0,0.02); border: 1px solid var(--tgit-border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.dark .tgit-passenger-row { background: rgba(255,255,255,0.03); }

/* Add-ons */
.tgit-addons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tgit-addon-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--tgit-border); border-radius: 10px; background: var(--tgit-card-bg); }
.tgit-addon-toggle.tgit-addon-added { background: #D1FAE5; color: #065F46; border-color: #059669; }
.tgit-addon-price { font-size: 13px; font-weight: 700; color: var(--tgit-gold); margin-top: 4px; display: block; }

/* ── AI Chat Widget ───────────────────────────────────────────────────────── */
#tgit-ai-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }

.tgit-chat-bubble { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: #1A1A1A; color: #fff; border: none; border-radius: 32px; cursor: pointer; font-size: 14px; font-weight: 600; box-shadow: 0 4px 24px rgba(0,0,0,0.25); transition: transform var(--tgit-transition), box-shadow var(--tgit-transition); }
.tgit-chat-bubble:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.35); }
.tgit-chat-icon { width: 20px; height: 20px; }
.dark .tgit-chat-bubble { background: var(--tgit-gold); color: #000; }
.tgit-chat-badge { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: #EF4444; color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.tgit-chat-panel { display: flex; flex-direction: column; position: absolute; bottom: calc(100% + 12px); right: 0; width: 360px; max-height: 550px; background: var(--tgit-card-bg); border: 1px solid var(--tgit-border); border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.2); overflow: hidden; }
@media (max-width: 400px) { .tgit-chat-panel { width: calc(100vw - 32px); right: -8px; } }

.tgit-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #1A1A1A; color: #fff; }
.dark .tgit-chat-header { background: var(--tgit-gold); color: #000; }
.tgit-chat-agent { display: flex; align-items: center; gap: 10px; }
.tgit-agent-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.tgit-agent-name { font-weight: 700; font-size: 14px; }
.tgit-agent-status { display: flex; align-items: center; gap: 4px; font-size: 11px; opacity: 0.8; }
.tgit-status-dot { width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.tgit-chat-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 16px; opacity: 0.7; padding: 4px; }
.tgit-chat-close:hover { opacity: 1; }

.tgit-chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.tgit-msg { display: flex; flex-direction: column; max-width: 82%; }
.tgit-msg--user { align-self: flex-end; align-items: flex-end; }
.tgit-msg--assistant { align-self: flex-start; align-items: flex-start; }
.tgit-msg__bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.tgit-msg--user .tgit-msg__bubble { background: #1A1A1A; color: #fff; border-bottom-right-radius: 4px; }
.dark .tgit-msg--user .tgit-msg__bubble { background: var(--tgit-gold); color: #000; }
.tgit-msg--assistant .tgit-msg__bubble { background: rgba(0,0,0,0.05); color: var(--tgit-text); border-bottom-left-radius: 4px; }
.dark .tgit-msg--assistant .tgit-msg__bubble { background: rgba(255,255,255,0.07); }
.tgit-msg__time { font-size: 10px; color: var(--tgit-text-muted); margin-top: 3px; }

/* Typing indicator */
.tgit-msg--typing .tgit-msg__bubble { display: flex; gap: 4px; padding: 12px 16px; }
.tgit-msg--typing span { width: 8px; height: 8px; background: var(--tgit-text-muted); border-radius: 50%; animation: typingBounce 1.2s infinite; }
.tgit-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.tgit-msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-8px); } }

/* Chat suggestions */
.tgit-chat-suggestions { padding: 8px 14px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--tgit-border); }
.tgit-suggestion-chip { padding: 5px 12px; border-radius: 20px; border: 1px solid var(--tgit-border); background: none; font-size: 12px; cursor: pointer; color: var(--tgit-text); transition: all var(--tgit-transition); }
.tgit-suggestion-chip:hover { border-color: var(--tgit-gold); color: var(--tgit-gold); background: rgba(200,150,42,0.05); }

/* Chat input */
.tgit-chat-input-row { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--tgit-border); }
.tgit-chat-input { flex: 1; resize: none; border: 1px solid var(--tgit-border); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--tgit-text); background: var(--tgit-card-bg); outline: none; max-height: 120px; overflow-y: auto; }
.tgit-chat-input:focus { border-color: var(--tgit-gold); }
.tgit-chat-send { width: 38px; height: 38px; border-radius: 10px; background: #1A1A1A; color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--tgit-transition); flex-shrink: 0; }
.tgit-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.tgit-chat-send:not(:disabled):hover { background: #333; }
.dark .tgit-chat-send { background: var(--tgit-gold); color: #000; }
.tgit-chat-send svg { width: 18px; height: 18px; }
.tgit-chat-footer { font-size: 11px; text-align: center; color: var(--tgit-text-muted); padding: 4px 12px 10px; margin: 0; }
.tgit-chat-footer a { color: inherit; }

/* Recommendation cards inside chat */
.tgit-chat-recommendations { padding: 8px 14px; }
.tgit-recs-label { font-size: 12px; font-weight: 700; color: var(--tgit-text-muted); margin-bottom: 8px; }
.tgit-chat-pkg-card { display: flex; gap: 10px; text-decoration: none; padding: 8px; border: 1px solid var(--tgit-border); border-radius: 8px; margin-bottom: 8px; transition: border-color var(--tgit-transition); }
.tgit-chat-pkg-card:hover { border-color: var(--tgit-gold); }
.tgit-chat-pkg-card img { width: 60px; height: 50px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.tgit-chat-pkg-info { display: flex; flex-direction: column; gap: 2px; }
.tgit-chat-pkg-info strong { font-size: 13px; color: var(--tgit-text); }
.tgit-chat-pkg-info span { font-size: 11px; color: var(--tgit-text-muted); }
.tgit-chat-pkg-price { color: var(--tgit-gold) !important; font-weight: 700 !important; }

/* ── User Dashboard ───────────────────────────────────────────────────────── */
.tgit-bookings-list { display: flex; flex-direction: column; gap: 16px; }
.tgit-booking-card { background: var(--tgit-card-bg); border: 1px solid var(--tgit-border); border-radius: var(--tgit-radius); overflow: hidden; display: grid; grid-template-columns: 180px 1fr; }
@media (max-width: 600px) { .tgit-booking-card { grid-template-columns: 1fr; } }
.tgit-booking-card-image img { width: 100%; height: 100%; object-fit: cover; }
.tgit-booking-card-body { padding: 16px; }
.tgit-booking-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tgit-booking-title { margin: 0; font-size: 16px; font-weight: 700; }
.tgit-booking-title a { color: var(--tgit-text); text-decoration: none; }
.tgit-booking-title a:hover { color: var(--tgit-gold); }
.tgit-booking-status { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tgit-status--inquiry_received { background: #FEF3C7; color: #92400E; }
.tgit-status--confirmed { background: #D1FAE5; color: #065F46; }
.tgit-status--ticket_issued { background: #DBEAFE; color: #1E40AF; }
.tgit-status--tour_completed { background: #EDE9FE; color: #5B21B6; }
.tgit-status--cancelled { background: #FEE2E2; color: #991B1B; }
.tgit-booking-meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-bottom: 14px; }
.tgit-booking-meta-item { display: flex; flex-direction: column; gap: 2px; }
.tgit-meta-label { font-size: 11px; color: var(--tgit-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.tgit-meta-value { font-size: 14px; color: var(--tgit-text); }
.tgit-booking-timeline { display: flex; align-items: center; gap: 0; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
.tgit-timeline-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 70px; }
.tgit-timeline-step:not(:last-child) { position: relative; }
.tgit-timeline-step:not(:last-child)::after { content: ''; position: absolute; top: 12px; left: calc(50% + 12px); right: calc(-50% + 12px); height: 2px; background: var(--tgit-border); }
.tgit-timeline-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--tgit-border); background: var(--tgit-card-bg); z-index: 1; }
.tgit-timeline-step.done .tgit-timeline-dot { background: #059669; border-color: #059669; }
.tgit-timeline-step.active .tgit-timeline-dot { background: var(--tgit-gold); border-color: var(--tgit-gold); box-shadow: 0 0 0 4px rgba(200,150,42,0.2); }
.tgit-timeline-label { font-size: 11px; color: var(--tgit-text-muted); text-align: center; }
.tgit-booking-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Inquiry Form ─────────────────────────────────────────────────────────── */
.tgit-inquiry-form { background: var(--tgit-card-bg); border: 1px solid var(--tgit-border); border-radius: var(--tgit-radius); padding: 24px; }
.tgit-form-row { margin-bottom: 12px; }
.tgit-form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tgit-form-row input,
.tgit-form-row select,
.tgit-form-row textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--tgit-border); border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--tgit-text); background: var(--tgit-card-bg); }
.tgit-form-row textarea { resize: vertical; min-height: 100px; }
.tgit-form-message { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-top: 12px; }
.tgit-form-message.success { background: #D1FAE5; color: #065F46; }
.tgit-form-message.error   { background: #FEE2E2; color: #991B1B; }

/* ── Loading states ───────────────────────────────────────────────────────── */
.tgit-loading { position: relative; pointer-events: none; }
.tgit-loading::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.7); border-radius: inherit; backdrop-filter: blur(2px); }
.dark .tgit-loading::after { background: rgba(0,0,0,0.5); }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.tgit-empty-state { text-align: center; padding: 48px 24px; }
.tgit-empty-icon { font-size: 48px; display: block; margin-bottom: 16px; }

/* ── No results ───────────────────────────────────────────────────────────── */
.tgit-no-results { text-align: center; padding: 48px 24px; color: var(--tgit-text-muted); font-size: 16px; }

/* ── Destinations grid ────────────────────────────────────────────────────── */
.tgit-destinations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tgit-dest-card { display: block; text-decoration: none; background: var(--tgit-card-bg); border: 1px solid var(--tgit-border); border-radius: var(--tgit-radius); padding: 20px; transition: all var(--tgit-transition); }
.tgit-dest-card:hover { border-color: var(--tgit-gold); transform: translateY(-2px); }
.tgit-dest-name { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--tgit-text); }
.tgit-dest-meta { font-size: 13px; color: var(--tgit-text-muted); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tgit-search-main { flex-direction: column; }
  .tgit-search-quick-filters { width: 100%; flex-direction: column; }
  .tgit-filter-chip { width: 100%; }
  .tgit-filter-chip select, .tgit-filter-chip input { width: 100%; }
  .tgit-btn-search { width: 100%; justify-content: center; }
  .tgit-form-row-half { grid-template-columns: 1fr; }
  .tgit-package-grid { grid-template-columns: 1fr; }
}

/* ── Accessibility ────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
:focus-visible { outline: 2px solid var(--tgit-gold); outline-offset: 2px; }

/* ── Print ────────────────────────────────────────────────────────────────── */
@media print {
  #tgit-ai-widget, .tgit-booking-steps { display: none !important; }
}


