/* Invictus Travel — Premium Navy & Champagne Gold UI
   Lightweight overrides only: no new JS dependency and no changes to form names/actions. */
:root {
  --ivt-navy: #07111f;
  --ivt-navy-2: #0c1b2d;
  --ivt-navy-3: #12253a;
  --ivt-gold: #c9ad87;
  --ivt-gold-light: #ead7b4;
  --ivt-paper: #f7f5f0;
  --ivt-ink: #182334;
  --ivt-muted: #64748b;
  --ivt-line: rgba(15, 35, 57, .12);
  --ivt-shadow: 0 14px 38px rgba(7, 17, 31, .09);
}

/* General public pages built with Bootstrap */
body:not([data-theme]) .navbar,
body:not([data-theme]) nav.navbar {
  border-bottom: 1px solid rgba(201,173,135,.28) !important;
}
body:not([data-theme]) .navbar-brand,
body:not([data-theme]) .navbar .nav-link.active { color: var(--ivt-gold) !important; }
body:not([data-theme]) .btn-primary,
body:not([data-theme]) .btn.btn-primary {
  color: #101a27 !important;
  background: linear-gradient(135deg, var(--ivt-gold-light), var(--ivt-gold)) !important;
  border-color: var(--ivt-gold) !important;
  font-weight: 700;
  box-shadow: 0 5px 16px rgba(201,173,135,.18);
}
body:not([data-theme]) .btn-primary:hover,
body:not([data-theme]) .btn.btn-primary:hover { filter: brightness(1.04); transform: translateY(-1px); }
body:not([data-theme]) .btn-outline-primary { color: var(--ivt-gold) !important; border-color: var(--ivt-gold) !important; }
body:not([data-theme]) .btn-outline-primary:hover { color: #101a27 !important; background: var(--ivt-gold) !important; }
body:not([data-theme]) .card,
body:not([data-theme]) .modal-content,
body:not([data-theme]) .dropdown-menu {
  border-color: var(--ivt-line);
  border-radius: 16px;
  box-shadow: var(--ivt-shadow);
}
body:not([data-theme]) .card { overflow: hidden; }
body:not([data-theme]) .form-control,
body:not([data-theme]) .form-select {
  min-height: 44px;
  border-radius: 10px;
  border-color: #d8dee7;
  box-shadow: none;
}
body:not([data-theme]) .form-control:focus,
body:not([data-theme]) .form-select:focus {
  border-color: var(--ivt-gold);
  box-shadow: 0 0 0 .22rem rgba(201,173,135,.18);
}
body:not([data-theme]) .table thead th { background: var(--ivt-navy-2); color: #f7f5f0; border-color: rgba(201,173,135,.2); }
body:not([data-theme]) .alert { border-radius: 12px; }
body:not([data-theme]) a:not(.btn):focus-visible,
body:not([data-theme]) button:focus-visible,
body:not([data-theme]) input:focus-visible,
body:not([data-theme]) select:focus-visible,
body:not([data-theme]) textarea:focus-visible { outline: 2px solid var(--ivt-gold); outline-offset: 2px; }

/* Admin dashboards: standardize the accent across Tailwind/custom admin screens. */
html[data-theme="dark"], body[data-theme="dark"], body.admin-body {
  --accent: #c9ad87 !important;
  --accent-soft: rgba(201,173,135,.15) !important;
  --accent-glow: rgba(201,173,135,.28) !important;
  --gold: #c9ad87;
  --gold-light: #ead7b4;
  --bg: #07111f;
  --surface: #0c1b2d;
  --surface-elevated: #12253a;
}
body.admin-body { background: #07111f !important; color: #edf1f5 !important; }
.admin-body .admin-sidebar,
.admin-sidebar { background: linear-gradient(180deg, #0b1929, #07111f) !important; border-right: 1px solid rgba(201,173,135,.18) !important; }
.admin-body .admin-sidebar a:hover,
.admin-body .admin-sidebar a.active,
.admin-sidebar a:hover,
.admin-sidebar a.active { background: rgba(201,173,135,.12) !important; color: #ead7b4 !important; border-color: rgba(201,173,135,.35) !important; }
.admin-body .admin-sidebar-brand span,
.admin-body .admin-topbar h5,
.admin-body .admin-card-header { color: #ead7b4 !important; }
.admin-body .admin-topbar,
.admin-body .admin-card,
.admin-body .admin-table-wrap,
.admin-body .stat-card,
.admin-body .panel,
body[data-theme="dark"] .card,
body[data-theme="dark"] .rounded-xl,
body[data-theme="dark"] .rounded-2xl {
  border-color: rgba(201,173,135,.16) !important;
}
.admin-body .admin-card,
body[data-theme="dark"] .bg-slate-800,
body[data-theme="dark"] .bg-slate-900,
body[data-theme="dark"] .bg-gray-800,
body[data-theme="dark"] .bg-gray-900 { background-color: #0c1b2d !important; }
body[data-theme="dark"] .text-blue-300,
body[data-theme="dark"] .text-blue-400,
body[data-theme="dark"] .text-blue-500,
body[data-theme="dark"] .text-indigo-300,
body[data-theme="dark"] .text-indigo-400,
body[data-theme="dark"] .text-indigo-500 { color: #dfc59e !important; }
body[data-theme="dark"] .bg-blue-500,
body[data-theme="dark"] .bg-blue-600,
body[data-theme="dark"] .bg-indigo-600,
body[data-theme="dark"] [class*="bg-blue-"],
body[data-theme="dark"] [class*="bg-indigo-"] { background-color: #c9ad87 !important; color: #101a27 !important; }
body[data-theme="dark"] [class*="border-blue-"],
body[data-theme="dark"] [class*="border-indigo-"] { border-color: rgba(201,173,135,.5) !important; }
body[data-theme="dark"] .focus\:ring-blue-500:focus,
body[data-theme="dark"] .focus\:border-blue-500:focus { --tw-ring-color: rgba(201,173,135,.4) !important; border-color: #c9ad87 !important; }
.admin-body .form-control:focus,
.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus { border-color: #c9ad87 !important; box-shadow: 0 0 0 3px rgba(201,173,135,.13) !important; outline: none; }
.admin-body .btn-primary,
.admin-body .btn-gold,
body[data-theme="dark"] .premium-primary {
  background: linear-gradient(135deg, #ead7b4, #c9ad87) !important;
  color: #101a27 !important; border-color: #c9ad87 !important; font-weight: 700;
}
.admin-body table thead th,
body[data-theme="dark"] table thead th { color: #ead7b4; border-bottom-color: rgba(201,173,135,.28) !important; }
.admin-body .admin-content { min-width: 0; }
@media (max-width: 768px) {
  .admin-body .admin-main { margin-left: 0 !important; width: 100%; }
  .admin-body .admin-sidebar { width: min(84vw, 280px); }
  .admin-body .admin-content { padding: 16px !important; }
  .admin-body .admin-topbar { gap: 10px; flex-wrap: wrap; }
  body[data-theme="dark"] main, body[data-theme="dark"] .main-content { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body:not([data-theme]) *, body[data-theme="dark"] *, body.admin-body * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Premium checkout refinements — preserve existing payment provider and form behavior. */
.pay-wrap .product-card,
.pay-wrap .price-card,
.pay-wrap .dp-card,
.pay-wrap .form-card {
  border-color: rgba(201,173,135,.18);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.pay-wrap .method-card { -webkit-tap-highlight-color: transparent; }
.pay-wrap .method-card:focus-within { outline: 2px solid rgba(201,173,135,.7); outline-offset: 3px; }
.pay-wrap .method-card .method-name { letter-spacing: .01em; }
.pay-wrap button, .pay-wrap [role="button"] { touch-action: manipulation; }
@media (max-width: 640px) {
  .pay-wrap { padding-left: max(16px, var(--sal)); padding-right: max(16px, var(--sar)); }
  .pay-wrap .method-card { padding: 16px !important; }
  .pay-wrap .method-inner { gap: 12px; }
}

/* ==========================================================
   Invictus Mobile App Experience — app-like responsive layer
   No JS/framework added; preserves existing routes and forms.
   ========================================================== */
:root { --ivt-mobile-nav-h: 68px; --ivt-safe-bottom: env(safe-area-inset-bottom, 0px); }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
button, a, input, select, textarea { touch-action: manipulation; }
@media (max-width: 900px) {
  body { overscroll-behavior-y: contain; }
  .bot-nav, .bottom-nav {
    height: calc(var(--ivt-mobile-nav-h) + var(--ivt-safe-bottom)) !important;
    padding: 7px 8px calc(7px + var(--ivt-safe-bottom)) !important;
    background: rgba(7,17,31,.96) !important;
    border-top: 1px solid rgba(201,173,135,.24) !important;
    box-shadow: 0 -10px 30px rgba(0,0,0,.16);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    z-index: 1035 !important;
  }
  .bn-item, .bottom-nav-item {
    min-height: 50px; gap: 5px !important; font-size: 10px !important;
    letter-spacing: .1px !important; font-weight: 600 !important;
    border-radius: 14px; justify-content: center;
  }
  .bn-item svg, .bottom-nav-item svg { width: 22px !important; height: 22px !important; }
  .bn-item.active, .bottom-nav-item.active { color: #ead7b4 !important; }
  body:has(.bot-nav), body:has(.bottom-nav) { padding-bottom: calc(var(--ivt-mobile-nav-h) + var(--ivt-safe-bottom) + 12px) !important; }
  .nav, #mainNav, .navbar { position: sticky !important; top: 0; z-index: 1025 !important; }
  .nav { background: rgba(7,17,31,.94) !important; backdrop-filter: blur(18px); }
  .nav-inner { min-height: 62px !important; }
  .wordmark { font-size: 21px !important; }
  .wordmark-sub { font-size: 9px !important; }
  .mob-nav-links { border-radius: 0 0 20px 20px; }
  .hero { border-radius: 0 0 26px 26px; }
  .hero h1, .hero-title { line-height: 1.12 !important; letter-spacing: -.035em; }
  .container, .container-fluid { --bs-gutter-x: 1.1rem; }
  .card, .tour-card, .product-card, .form-card, .price-card, .dp-card { border-radius: 20px !important; }
  .card-img, .card-img-top, .tour-card img { object-fit: cover; }
  .form-control, .form-select, input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
    min-height: 48px; font-size: 16px !important; border-radius: 13px !important;
  }
  textarea { min-height: 104px; }
  .btn, button.btn, .btn-solid, .btn-gold-full, .btn-primary { min-height: 46px; border-radius: 14px; font-weight: 700; }
  .modal-dialog { margin: 12px !important; }
  .modal-content { border-radius: 24px !important; }
  .table-responsive { border-radius: 14px; -webkit-overflow-scrolling: touch; }
  table { font-size: 13px; }
  .alert { padding: 13px 15px; }
  .footer, footer, .foot-grid { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .container, .container-fluid { --bs-gutter-x: 1rem; }
  .section, section.section { padding-top: 34px !important; padding-bottom: 34px !important; }
  .section-title, .section-heading, h2.section-title { font-size: clamp(23px, 6vw, 30px) !important; line-height: 1.16 !important; }
  .cards-grid { grid-template-columns: minmax(0,1fr) !important; gap: 16px !important; }
  .grid.grid-4, .grid.grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
  .card-img-wrap, .card-img { max-height: 245px; }
  .card-body { padding: 16px !important; }
  .card-title { font-size: 16px !important; line-height: 1.35; }
  .card-price { font-size: 18px !important; }
  .hero { padding-top: 42px !important; padding-bottom: 34px !important; }
  .hero p { font-size: 14px !important; line-height: 1.65; }
  .hero .btn, .cta-actions .btn { width: 100%; }
  .pay-wrap { padding-top: 16px !important; }
  .pay-wrap .method-card { border-radius: 16px !important; }
  .booking-summary, .price-card, .form-card { padding: 16px !important; }
  .footer-grid, .foot-grid { grid-template-columns: 1fr !important; }
  .admin-body .admin-content { padding: 12px !important; }
  .admin-body .admin-topbar { padding: 14px !important; border-radius: 16px; }
  .admin-body .stat-card, .admin-body .admin-card { border-radius: 18px !important; }
  .admin-body .table-responsive { margin-inline: -2px; }
}
@media (max-width: 380px) {
  .grid.grid-4, .grid.grid-3 { grid-template-columns: 1fr !important; }
  .bn-item, .bottom-nav-item { font-size: 9px !important; }
  .wordmark { font-size: 19px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Admin behaves like a compact native app on phones. */
.ivt-admin-mobile-nav, .ivt-admin-scrim, .ivt-admin-menu-toggle { display: none; }
@media (max-width: 768px) {
  body:has(.ivt-admin-mobile-nav) { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important; background: #07111f !important; }
  body:has(.ivt-admin-mobile-nav) .sidebar {
    display: flex !important; position: fixed !important; z-index: 1200 !important;
    inset: 0 auto 0 0 !important; width: min(84vw, 310px) !important; min-height: 100dvh !important;
    overflow-y: auto; transform: translateX(-105%); transition: transform .24s ease;
    box-shadow: 18px 0 48px rgba(0,0,0,.3); background: #091727 !important;
  }
  body.ivt-admin-menu-open .sidebar { transform: translateX(0); }
  body:has(.ivt-admin-mobile-nav) .main-content { margin-left: 0 !important; width: 100% !important; padding: 12px !important; }
  body:has(.ivt-admin-mobile-nav) .topbar { margin: -12px -12px 16px !important; padding: 13px 14px !important; min-height: 62px; background: #0c1b2d !important; color: #f7f5f0; border-bottom: 1px solid rgba(201,173,135,.2); box-shadow: none !important; }
  body:has(.ivt-admin-mobile-nav) .topbar h5 { font-size: 16px; color: #ead7b4 !important; }
  body:has(.ivt-admin-mobile-nav) .topbar .text-muted { color: #aeb8c6 !important; }
  .ivt-admin-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 13px; border: 1px solid rgba(201,173,135,.25); color: #ead7b4; background: #12253a; }
  .ivt-admin-scrim { display: block; position: fixed; inset: 0; z-index: 1190; background: rgba(2,8,16,.62); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.ivt-admin-menu-open .ivt-admin-scrim { opacity: 1; pointer-events: auto; }
  .ivt-admin-mobile-nav { display: flex; position: fixed; inset: auto 0 0; z-index: 1180; min-height: calc(66px + env(safe-area-inset-bottom, 0px)); padding: 6px 7px calc(6px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; align-items: center; gap: 4px; background: rgba(7,17,31,.97); border-top: 1px solid rgba(201,173,135,.22); box-shadow: 0 -10px 28px rgba(0,0,0,.2); backdrop-filter: blur(20px); }
  .ivt-admin-mobile-nav a, .ivt-admin-mobile-nav button { flex: 1; min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 13px; background: transparent; color: #8492a5; text-decoration: none; font: inherit; font-size: 10px; font-weight: 600; }
  .ivt-admin-mobile-nav i { font-size: 18px; }
  .ivt-admin-mobile-nav .active { color: #ead7b4; background: rgba(201,173,135,.1); }
  .ivt-admin-mobile-nav button:active, .ivt-admin-mobile-nav a:active { transform: scale(.96); }
}

/* Mobile interaction refinements — release 1.1 */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { min-height: 100vh; min-height: 100dvh; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a.btn, .bn-item, .bottom-nav-item { touch-action: manipulation; }
img { max-width: 100%; }
.ivt-motion .btn, .ivt-motion .bn-item, .ivt-motion .bottom-nav-item {
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (max-width: 768px) {
  input, textarea, select { scroll-margin-top: 90px; scroll-margin-bottom: 100px; }
  .modal-dialog { max-height: calc(var(--ivt-visible-height, 100dvh) - 24px); }
  .modal-content { max-height: calc(var(--ivt-visible-height, 100dvh) - 24px); }
  .modal-body { overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  .ivt-keyboard-open .bot-nav, .ivt-keyboard-open .bottom-nav, .ivt-keyboard-open .ivt-admin-mobile-nav { visibility: hidden; pointer-events: none; }
  .bn-item:not(.active), .bottom-nav-item:not(.active), .ivt-admin-mobile-nav a:not(.active) { color: #b3bfce; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}
