:root {
  --primary: #0f172a; --primary-light: #1e293b;
  --brand: #c8102e; --brand-hover: #a00d25;
  --bg-light: #f1f5f9; --white: #ffffff;
  --text-dark: #334155; --text-light: #64748b;
  --border: #cbd5e1;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.15);
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Outfit', sans-serif; color: var(--text-dark); background: var(--bg-light); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea { font-family: inherit; }

/* Header & Nav */
header { background: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-md); }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; }
.logo img { height: 50px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 600; font-size: 1rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { background: var(--brand); color: var(--white) !important; padding: 0.6rem 1.25rem; border-radius: 50px; display: flex; align-items: center; gap: 0.5rem; transition: background 0.3s; }
.nav-cta:hover { background: var(--brand-hover); }
.hamburger { display: none; font-size: 1.75rem; background: none; border: none; color: var(--primary); cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.5) 100%), url('https://images.unsplash.com/photo-1701206760357-fe186873b1db?q=80&w=1470&auto=format&fit=crop') center/cover; padding: 6rem 2rem 8rem 2rem; }
.hero-content { max-width: 1280px; margin: 0 auto; color: var(--white); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.15); padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.2); }
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; max-width: 650px; }
.hero p { font-size: 1.2rem; color: #e2e8f0; margin-bottom: 2rem; max-width: 550px; }

/* Booking Widget */
.search-widget-container { max-width: 1280px; margin: -4rem auto 3rem auto; padding: 0 2rem; position: relative; z-index: 20; }
.booking-widget { background: var(--white); padding: 1.5rem; border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.input-wrapper { flex: 1; min-width: 220px; position: relative; }
.input-group { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; display: flex; flex-direction: column; cursor: text; transition: all 0.2s; }
.input-group.active, .input-group:focus-within { border-color: var(--brand); background: var(--white); box-shadow: 0 0 0 3px rgba(200,16,46,0.1); }
.input-group label { font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; margin-bottom: 0.25rem; pointer-events: none; }
.input-group input { border: none; outline: none; font-size: 1.05rem; font-weight: 600; color: var(--primary); background: transparent; width: 100%; cursor: pointer; }
.input-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 1.2rem; pointer-events: none; }

/* Popovers (Autocomplete, Calendar, Passengers) */
.popover-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 100; display: none; flex-direction: column; overflow: hidden; }
.popover-menu.show { display: flex; }
.autocomplete-list { max-height: 300px; overflow-y: auto; }
.autocomplete-item { padding: 0.85rem 1rem; cursor: pointer; font-weight: 600; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 0.75rem; color: var(--primary); }
.autocomplete-item:hover { background: var(--bg-light); color: var(--brand); }
.autocomplete-item i { color: var(--text-light); }
.autocomplete-item:hover i { color: var(--brand); }

/* Custom Calendar */
.calendar-popover { min-width: 320px; padding: 1.5rem; user-select: none; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.calendar-nav-btn { background: var(--bg-light); border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--primary); transition: 0.2s; }
.calendar-nav-btn:hover { background: var(--brand); color: var(--white); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.calendar-day-name { font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; margin-bottom: 0.5rem; }
.calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 600; border-radius: 50%; cursor: pointer; color: var(--primary); transition: 0.2s; }
.calendar-day:hover:not(.disabled):not(.empty) { background: var(--bg-light); color: var(--brand); }
.calendar-day.selected { background: var(--brand); color: var(--white); }
.calendar-day.disabled { color: #cbd5e1; cursor: not-allowed; text-decoration: line-through; }
.calendar-day.empty { cursor: default; }

/* Passenger Popover */
.passenger-popover { padding: 1.5rem; min-width: 300px; }
.passenger-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.passenger-type { font-weight: 700; color: var(--primary); }
.passenger-controls { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.ctrl-btn { background: var(--white); border: none; color: var(--brand); width: 35px; height: 35px; font-size: 1.25rem; cursor: pointer; }
.ctrl-btn:hover { background: var(--bg-light); }
.ctrl-btn:disabled { color: #cbd5e1; cursor: not-allowed; }
.ctrl-count { width: 40px; text-align: center; font-weight: 700; line-height: 35px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

/* Search Button */
.btn-search { background: var(--brand); color: var(--white); border: none; padding: 1.25rem; font-size: 1.1rem; font-weight: 700; border-radius: var(--radius); cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; height: 62px; min-width: 220px; }
.btn-search:hover { background: var(--brand-hover); box-shadow: 0 4px 12px rgba(200,16,46,0.3); }

/* Services */
.services { padding: 4rem 2rem; max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.25rem; color: var(--primary); font-weight: 800; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.service-card { background: var(--white); padding: 2.5rem 2rem; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; transition: 0.3s; display: block; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.service-icon { width: 65px; height: 65px; margin: 0 auto 1.5rem auto; background: rgba(200,16,46,0.1); color: var(--brand); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; color: var(--primary); }
.card-cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; color: var(--brand); font-weight: 700; }

/* Interior Pages (Legal & Contact) */
.page-container { max-width: 900px; margin: 4rem auto; padding: 0 2rem; background: var(--white); padding: 3rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.page-container h1 { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.5rem; }
.page-container .last-updated { color: var(--text-light); margin-bottom: 2rem; font-weight: 500; }
.page-container h2 { margin: 2rem 0 1rem 0; color: var(--primary); }
.page-container p, .page-container li { margin-bottom: 1rem; color: var(--text-dark); }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 700; color: var(--primary); }
.form-group input, .form-group textarea { padding: 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200,16,46,0.1); }

/* Footer */
footer { background: var(--primary); color: var(--white); padding: 4rem 2rem 2rem 2rem; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 3rem; }
.footer-col h5 { font-size: 1.1rem; margin-bottom: 1.5rem; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: #94a3b8; margin-bottom: 0.75rem; transition: 0.2s; }
.footer-col a:hover { color: var(--white); }

/* Big Rounded Footer Logo */
.footer-logo-wrap { display: inline-block; margin-bottom: 1.5rem; }
.footer-logo-wrap img { width: 100%; max-width: 250px; height: auto; border-radius: 12px; display: block; object-fit: contain; }

.footer-bottom { text-align: left; color: #94a3b8; margin-top: 2rem; max-width: 1280px; margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 2rem; box-shadow: 0 10px 10px rgba(0,0,0,0.1); }
  .nav-links.active { display: flex; }
  .hero { padding: 4rem 1rem; } .hero h1 { font-size: 2.2rem; }
  .search-widget-container { margin-top: -2rem; padding: 0 1rem; }
  .booking-widget { flex-direction: column; padding: 1rem; }
  .input-wrapper, .btn-search { width: 100%; }
  .popover-menu { position: fixed; bottom: 0; left: 0; top: auto; width: 100%; border-radius: 20px 20px 0 0; padding: 2rem 1.5rem; max-height: 70vh; box-shadow: 0 -10px 25px rgba(0,0,0,0.2); }
  .footer-grid { grid-template-columns: 1fr; }
  .page-container { margin: 2rem 1rem; padding: 1.5rem; }
  .footer-bottom { text-align: center; }
}
