/* =====================================================
   Flemingo Flies — Luxury Dark Theme
   ===================================================== */

:root {
  --bg-primary:   #0a0e1a;
  --bg-secondary: #111827;
  --bg-card:      #1a2035;
  --gold:         #c9a84c;
  --gold-light:   #e0b96a;
  --gold-dark:    #a8882e;
  --text-primary: #f5f5f5;
  --text-muted:   #9ca3af;
  --border-color: #2a3350;
  --danger:       #ef4444;
  --success:      #22c55e;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

::selection { background: var(--gold); color: #000; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { color: var(--text-primary); font-weight: 700; line-height: 1.3; }

.text-gold      { color: var(--gold) !important; }
.text-muted-ff  { color: var(--text-muted) !important; }
.fw-600         { font-weight: 600; }

/* ---- Buttons ---- */
.btn-gold {
  background: var(--gold);
  color: #0a0e1a;
  border: none;
  font-weight: 700;
  letter-spacing: .5px;
  padding: .55rem 1.6rem;
  border-radius: 4px;
  transition: background .2s, transform .15s;
}
.btn-gold:hover { background: var(--gold-light); color: #0a0e1a; transform: translateY(-1px); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-weight: 600;
  padding: .5rem 1.5rem;
  border-radius: 4px;
  transition: all .2s;
}
.btn-outline-gold:hover { background: var(--gold); color: #0a0e1a; }

/* ---- Cards ---- */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: transform .25s, box-shadow .25s;
}
.card-dark:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(201,168,76,.15); }
.card-dark .card-body { padding: 1.5rem; }

/* ---- Sections ---- */
.section-dark { background: var(--bg-primary); padding: 80px 0; }
.section-secondary { background: var(--bg-secondary); padding: 80px 0; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.section-title span { color: var(--gold); }
.section-subtitle { color: var(--text-muted); margin-bottom: 2.5rem; }

.divider-gold {
  width: 60px; height: 3px;
  background: var(--gold);
  margin: .75rem auto 1.5rem;
  border-radius: 2px;
}
.divider-gold.left { margin-left: 0; }

/* ---- Navbar ---- */
.navbar-ff {
  background: rgba(10,14,26,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: .8rem 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: background .3s;
}
.navbar-ff.scrolled { background: rgba(10,14,26,1); }

.navbar-ff .navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold) !important;
  letter-spacing: 1px;
}
.navbar-ff .navbar-brand span { color: var(--text-primary); }

.navbar-ff .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: .4rem .9rem !important;
  transition: color .2s;
}
.navbar-ff .nav-link:hover,
.navbar-ff .nav-link.active { color: var(--gold) !important; }

.navbar-ff .dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: .5rem;
  min-width: 200px;
}
.navbar-ff .dropdown-item {
  color: var(--text-muted);
  border-radius: 4px;
  padding: .45rem .9rem;
  font-size: .9rem;
  transition: all .2s;
}
.navbar-ff .dropdown-item:hover { background: var(--border-color); color: var(--gold); }

.navbar-toggler { border-color: var(--border-color); }
.navbar-toggler-icon { filter: invert(1); }

/* ---- Hero ---- */
.hero-section {
  min-height: 92vh;
  background: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0a0e1a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: .18;
  z-index: 0;
}
.hero-section .container { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-title .highlight { color: var(--gold); display: block; }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ---- Search Widget ---- */
.search-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 2.5rem;
}
.search-widget .form-label { color: var(--text-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .3rem; }
.search-widget .form-select,
.search-widget .form-control { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 6px; }
.search-widget .form-select:focus,
.search-widget .form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15); background: var(--bg-secondary); color: var(--text-primary); }
.search-widget .form-select option { background: var(--bg-card); }

/* ---- Stats Bar ---- */
.stats-bar { background: var(--bg-card); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 2.5rem 0; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label  { color: var(--text-muted); font-size: .85rem; margin-top: .3rem; text-transform: uppercase; letter-spacing: .5px; }

/* ---- Fleet Cards ---- */
.fleet-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.fleet-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(201,168,76,.18); }
.fleet-card img { width: 100%; height: 200px; object-fit: cover; }
.fleet-card-body { padding: 1.25rem; }
.fleet-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.fleet-badge { background: rgba(201,168,76,.15); color: var(--gold); border: 1px solid rgba(201,168,76,.3); font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 20px; }
.fleet-spec { color: var(--text-muted); font-size: .82rem; }
.fleet-spec i { color: var(--gold); margin-right: .3rem; }

/* ---- Forms ---- */
.form-control-dark,
.form-select-dark {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.form-control-dark:focus,
.form-select-dark:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.15) !important;
  outline: none;
}
.form-control-dark::placeholder { color: var(--text-muted); }
.form-label { color: var(--text-muted); font-size: .875rem; font-weight: 500; }
.form-select-dark option { background: var(--bg-card); }
textarea.form-control-dark { resize: vertical; min-height: 120px; }

/* ---- Tables ---- */
.table-dark-ff { background: var(--bg-card); border-color: var(--border-color); color: var(--text-primary); }
.table-dark-ff thead th { background: var(--bg-secondary); color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; border-color: var(--border-color); font-weight: 600; }
.table-dark-ff tbody td { border-color: var(--border-color); vertical-align: middle; }
.table-dark-ff tbody tr:hover { background: rgba(42,51,80,.5); }

/* ---- Admin / Portal Sidebar + Layout ---- */
.portal-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 1.5rem 1.25rem 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  border-bottom: 1px solid var(--border-color);
}
.sidebar-brand small { display: block; font-size: .7rem; color: var(--text-muted); font-weight: 400; margin-top: .1rem; }

.sidebar-nav { padding: 1rem .75rem; flex: 1; }
.sidebar-nav .nav-item { margin-bottom: .2rem; }
.sidebar-nav .nav-link {
  color: var(--text-muted);
  border-radius: 6px;
  padding: .6rem .9rem;
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: all .2s;
}
.sidebar-nav .nav-link:hover { background: var(--border-color); color: var(--text-primary); }
.sidebar-nav .nav-link.active { background: rgba(201,168,76,.15); color: var(--gold); border-left: 3px solid var(--gold); padding-left: calc(.9rem - 3px); }
.sidebar-nav .nav-link i { width: 18px; text-align: center; }
.sidebar-section-label { color: var(--text-muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 1rem .9rem .3rem; }

.portal-content { flex: 1; overflow: auto; background: var(--bg-primary); }
.portal-topbar { background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.portal-topbar h4 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.portal-main { padding: 1.75rem; }

/* ---- Stat Cards (portal dashboards) ---- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: rgba(201,168,76,.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-card-icon.blue  { background: rgba(59,130,246,.12); color: #60a5fa; }
.stat-card-icon.green { background: rgba(34,197,94,.12);  color: #4ade80; }
.stat-card-icon.red   { background: rgba(239,68,68,.12);  color: #f87171; }
.stat-card-num { font-size: 1.8rem; font-weight: 800; line-height: 1; color: var(--text-primary); }
.stat-card-label { color: var(--text-muted); font-size: .82rem; }

/* ---- Alerts ---- */
.alert { border-radius: 8px; border: 1px solid transparent; }
.alert-success { background: rgba(34,197,94,.12); color: #4ade80; border-color: rgba(34,197,94,.3); }
.alert-danger   { background: rgba(239,68,68,.12); color: #f87171; border-color: rgba(239,68,68,.3); }
.alert-warning  { background: rgba(234,179,8,.12); color: #facc15; border-color: rgba(234,179,8,.3); }
.alert-info     { background: rgba(59,130,246,.12); color: #60a5fa; border-color: rgba(59,130,246,.3); }

/* ---- Badges ---- */
.badge.bg-warning  { background: rgba(234,179,8,.2) !important; color: #facc15 !important; }
.badge.bg-success  { background: rgba(34,197,94,.2) !important; color: #4ade80 !important; }
.badge.bg-danger   { background: rgba(239,68,68,.2) !important; color: #f87171 !important; }
.badge.bg-secondary{ background: rgba(107,114,128,.2) !important; color: #9ca3af !important; }
.badge.bg-info     { background: rgba(59,130,246,.2) !important; color: #60a5fa !important; }

/* ---- Footer ---- */
.footer-ff {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px;
}
.footer-ff .footer-brand { font-size: 1.4rem; font-weight: 800; color: var(--gold); margin-bottom: .75rem; }
.footer-ff .footer-tagline { color: var(--text-muted); font-size: .9rem; }
.footer-ff h6 { color: var(--text-primary); font-weight: 700; margin-bottom: 1rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }
.footer-ff ul { list-style: none; padding: 0; margin: 0; }
.footer-ff ul li { margin-bottom: .45rem; }
.footer-ff ul li a { color: var(--text-muted); font-size: .88rem; transition: color .2s; }
.footer-ff ul li a:hover { color: var(--gold); }
.footer-ff .footer-bottom { border-top: 1px solid var(--border-color); margin-top: 2rem; padding-top: 1.25rem; color: var(--text-muted); font-size: .82rem; }
.footer-social a { color: var(--text-muted); font-size: 1.1rem; margin-right: .75rem; transition: color .2s; }
.footer-social a:hover { color: var(--gold); }

/* ---- Destination Cards ---- */
.dest-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.dest-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(201,168,76,.15); }
.dest-card img { width: 100%; height: 180px; object-fit: cover; }
.dest-card-body { padding: 1rem 1.1rem; }
.dest-card-title { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.dest-card-text { color: var(--text-muted); font-size: .85rem; }

/* ---- Tabs ---- */
.nav-tabs-ff { border-bottom: 1px solid var(--border-color); }
.nav-tabs-ff .nav-link { color: var(--text-muted); border: none; border-bottom: 3px solid transparent; padding: .6rem 1.2rem; font-weight: 600; border-radius: 0; transition: all .2s; }
.nav-tabs-ff .nav-link:hover { color: var(--gold); }
.nav-tabs-ff .nav-link.active { color: var(--gold); border-bottom-color: var(--gold); background: transparent; }

/* ---- Login / Auth Pages ---- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); padding: 2rem; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 2.5rem; width: 100%; max-width: 440px; }
.auth-logo { font-size: 1.6rem; font-weight: 800; color: var(--gold); text-align: center; margin-bottom: 1.75rem; display: block; }
.auth-logo small { display: block; color: var(--text-muted); font-size: .75rem; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; margin-top: .2rem; }
.auth-divider { text-align: center; color: var(--text-muted); font-size: .85rem; position: relative; margin: 1.25rem 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; width: 42%; height: 1px; background: var(--border-color); }
.auth-divider::after  { content: ''; position: absolute; top: 50%; right: 0; width: 42%; height: 1px; background: var(--border-color); }

/* ---- Calendar (Availability) ---- */
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: .8rem; cursor: pointer; transition: all .15s; border: 1px solid transparent; }
.cal-day.available { background: rgba(34,197,94,.12); color: #4ade80; border-color: rgba(34,197,94,.2); }
.cal-day.booked    { background: rgba(239,68,68,.12); color: #f87171; border-color: rgba(239,68,68,.2); cursor: not-allowed; }
.cal-day.empty     { background: transparent; cursor: default; }
.cal-day.today     { border-color: var(--gold); }
.cal-day:hover:not(.empty):not(.booked) { transform: scale(1.1); }

/* ---- Misc Utilities ---- */
.border-gold    { border-color: var(--gold) !important; }
.bg-card        { background: var(--bg-card) !important; }
.bg-secondary-ff{ background: var(--bg-secondary) !important; }
.rounded-ff     { border-radius: 10px !important; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border-color); }
  .portal-layout { flex-direction: column; }
  .hero-title { font-size: 2.2rem; }
  .section-dark, .section-secondary { padding: 50px 0; }
}
@media (max-width: 767px) {
  .stat-card { flex-direction: column; text-align: center; }
  .portal-main { padding: 1rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
}
