/*
Theme Name: IZZIII AVV Theme v6.9 (Unified Global Build)
Theme URI: https://izziii.com
Author: IZZIII
Description: Airport-transfer PWA theme with fully stable hero, mobile layout, and global-ready design.
Version: 6.9
License: GPL-2.0-or-later
Text Domain: izziii-avv
*/

/* ============================================================
   GLOBAL RESET + BASE TYPE
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100% !important;
  background: #ffffff;
  color: #222;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: #c1121f;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Prevent any narrow column collapse */
.site-main,
#page,
.site,
body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* Remove theme header */
header,
.site-header,
.site-header-empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   HERO — FULL WIDTH, NO TEXT CREEP
============================================================ */
.izz-hero {
  position: relative;
  width: 100%;
  min-height: 260px;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

.izz-hero img {
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.izz-hero-overlay {
  position: absolute;
  bottom: 22px;
  width: 100%;
  padding: 0 20px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.izz-hero-overlay h1 {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
}

.izz-hero-overlay p {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .izz-hero-overlay h1 {
    font-size: 1.45rem;
  }
  .izz-hero-overlay p {
    font-size: 0.9rem;
  }
}

/* Safari iOS anti-slide */
@supports (-webkit-touch-callout: none) {
  .izz-hero-overlay {
    transform: translateY(0) !important;
  }
}

/* ============================================================
   BOOKING SECTION
============================================================ */
#booking-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 16px 40px;
}

/* Booking Form Container */
.booking-form {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.booking-form label {
  font-weight: 600;
  margin-top: 10px;
  color: #111827;
  display: block;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  margin-bottom: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
}

/* Chrome mobile anti-zoom */
@media screen and (max-device-width: 767px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Route Buttons */
#routeButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.route-btn {
  flex: 1 1 48%;
  padding: 9px;
  background: #efefef;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

#reverseRoute {
  flex: 1 1 100%;
  padding: 9px;
  background: #cccccc;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Location Button */
#detectLocation {
  padding: 10px 14px;
  background: #007aff;
  color: #fff;
  border: none;
  border-radius: 6px;
  white-space: nowrap;
}

/* Error Fields */
.izziii-field-error {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.35);
}

/* Fare Summary */
#fareSummary {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  border-radius: 10px;
}

/* ============================================================
   DRIVER JOB BOARD — GLOBAL ENHANCED SPACING
============================================================ */
.izziii-job {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 26px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
}

.izziii-job h3 {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.izziii-job p {
  margin: 6px 0;
  font-size: 0.95rem;
}

/* Status badges */
.izziii-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.izziii-open     { background: #d1fae5; color:#065f46; }
.izziii-taken    { background:#fde68a; color:#92400e; }
.izziii-complete { background:#e5e7eb; color:#374151; }

/* Buttons */
.izziii-take-btn {
  background: #007aff;
  color: #fff;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
}
.izziii-take-btn:hover {
  background:#005fcc;
}

/* ============================================================
   FOOTER — GLOBAL
============================================================ */
.iz-footer {
  background: #b21616;
  padding: 40px 20px;
  color: #ffffff;
  text-align: center;
  margin-top: 40px;
}

.iz-footer-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.iz-footer a {
  color: #ffe6e6;
  font-weight: 600;
}
.iz-footer a:hover {
  text-decoration: underline;
}

.iz-brand {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 12px;
}

.iz-desc {
  margin-bottom: 14px;
  line-height: 1.5;
}

.iz-links a {
  margin: 0 8px;
}

.iz-small {
  font-size: 0.82em;
  opacity: 0.85;
}

/* Dark mode footer */
@media (prefers-color-scheme: dark) {
  .iz-footer {
    background: #7a0f0f;
    color: #ffffff;
  }
  .iz-footer a {
    color: #ffeded;
  }
}
