/* ========================================
   Presto Rides — Main Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Sage green palette — built around brand color #c7d6c1 */
  --sage: #c7d6c1;
  --sage-dark: #a8bca3;

  --primary: #6b8e6e;           /* deeper sage — buttons, links */
  --primary-dark: #4f6b52;      /* hover / pressed */
  --primary-light: #e4ecdf;     /* light sage tint — backgrounds */

  --accent: #c8956a;            /* warm tan — complements sage */
  --accent-dark: #a87548;

  --dark: #2b3a2d;              /* dark forest — primary text */
  --gray-900: #3a4a38;
  --gray-700: #556153;
  --gray-500: #7b8779;
  --gray-300: #cdd5ca;
  --gray-100: #eef2ed;
  --white: #ffffff;

  --success: #5a8f60;
  --warning: #c8956a;
  --danger: #b85a4a;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(43,58,45,0.10), 0 1px 2px rgba(43,58,45,0.06);
  --shadow-md: 0 4px 6px rgba(43,58,45,0.08), 0 2px 4px rgba(43,58,45,0.06);
  --shadow-lg: 0 10px 25px rgba(43,58,45,0.12);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for fixed 70px header + breathing room */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: #c7d6c1;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Reduce gap when a subtitle immediately follows the title */
.section-title:has(+ .section-subtitle) {
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.ml-1 { margin-left: 0.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none !important;
  box-shadow: none !important;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 300;
}
.logo strong { font-weight: 800; }
.logo-img { height: 44px; width: auto; display: block; }
.logo-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.footer .logo-img { height: 56px; }
.login-logo .logo-img { height: 64px; margin: 0 auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 70px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(30, 58, 95, 0.55) 50%, rgba(26, 86, 219, 0.55) 100%),
    url("../img/hawaii.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 0;
}

.hero-title {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 800;
}
.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
}

/* --- Booking Form --- */
.booking-form {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}

.booking-form .form-group {
  flex: 1;
  min-width: 0;
  margin-bottom: 0; /* override generic .form-group margin — flex-end needs flush alignment */
}

.booking-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.booking-form select,
.booking-form input {
  width: 100%;
  padding: 0.7rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  transition: border var(--transition);
}

.booking-form select:focus,
.booking-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-search {
  flex-shrink: 0;
  padding: 0.7rem 2rem;
  border-width: 1.5px;
  line-height: normal;
  align-self: flex-end;
  font-size: 0.95rem;
}

/* --- Section --- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--gray-100);
}

/* --- Car Grid --- */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* --- Car Card --- */
.car-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.car-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gray-100);
}
.car-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.5rem;
  padding: 1rem;
}
.car-placeholder svg {
  width: 120px;
  height: 60px;
}
.car-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
}

.car-class-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: #6b7280;
}

.car-card-body {
  padding: 1.25rem;
}

.car-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.car-year {
  font-weight: 400;
  color: var(--gray-500);
}

.car-card-specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.car-card-specs span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.car-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.car-price {
  font-size: 1.1rem;
  color: var(--dark);
}
.car-price strong {
  font-weight: 700;
}

.status-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}
.status-available { color: var(--success); }
.status-booked { color: var(--warning); }
.status-maintenance { color: var(--danger); }

/* --- Our Story --- */
.story-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.story-content p {
  margin-bottom: 1.25rem;
}

.story-content p:last-child {
  margin-bottom: 0;
}

.story-details {
  margin-top: 1.5rem;
}

.story-details summary {
  display: inline-block;
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  list-style: none;
}

.story-details summary::-webkit-details-marker {
  display: none;
}

.story-details summary:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.story-details-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-300);
}

.story-details-body p {
  margin-bottom: 1.25rem;
}

.story-details-body p:last-child {
  margin-bottom: 0;
}

/* --- Mission --- */
.mission-block {
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.mission-block:last-child {
  margin-bottom: 0;
}

.mission-block h3 {
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.mission-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.mission-block p:last-child {
  margin-bottom: 0;
}

/* --- Advantages --- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.advantage-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--gray-100);
  transition: all var(--transition);
}
.advantage-card:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.advantage-card h3 {
  margin-bottom: 0.5rem;
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* --- Contacts --- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3,
.contact-form-wrap h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-info .work-hours {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: border var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  font-size: 0.85rem;
  text-align: center;
}

/* --- Page Hero (catalog, admin) --- */
.page-hero {
  padding: 6rem 0 3rem;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: var(--white);
  text-align: center;
}
.page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
}
.page-hero--admin {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
}

/* --- Catalog Layout --- */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.filters-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}

.filters-sidebar h3 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.4rem;
}

.filter-group select,
.filter-group input[type="range"] {
  width: 100%;
  padding: 0.5rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--white);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-group input[type="range"] {
  border: none;
  padding: 0.5rem 0;
  cursor: pointer;
  accent-color: var(--primary);
}

.price-display {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.filter-group.filter-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  text-transform: none;
  margin-bottom: 0;
}

.filter-group.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.results-count {
  font-size: 0.95rem;
  color: var(--gray-500);
}

.filter-toggle {
  display: none;
}

/* --- Empty State --- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}
/* --- Car Detail --- */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 500;
  padding-top: 5rem;
}
.back-link:hover {
  text-decoration: underline;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-placeholder {
  width: 100%;
}
.detail-placeholder .car-placeholder {
  height: 300px;
}
.detail-placeholder .car-placeholder svg {
  width: 200px;
  height: 100px;
}

.detail-info .car-class-badge {
  position: static;
  display: inline-block;
  margin-bottom: 1rem;
}

.detail-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.detail-price {
  margin-bottom: 1.5rem;
}
.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.price-period {
  font-size: 1rem;
  color: var(--gray-500);
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.spec-item {
  padding: 0.75rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}
.spec-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}
.spec-value {
  font-weight: 600;
}

.detail-features {
  margin-bottom: 1.5rem;
}
.detail-features h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.feature-tag {
  padding: 0.4rem 0.8rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.unavailable-notice {
  padding: 1rem;
  background: #fef3c7;
  border-radius: var(--radius-sm);
  color: #92400e;
}

.similar-section h2 {
  margin-bottom: 1.5rem;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 1rem;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-lg {
  max-width: 700px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  padding: 0.25rem;
  line-height: 1;
}

.modal h2 {
  margin-bottom: 1.5rem;
}

/* --- Login Overlay --- */
.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.login-overlay.hidden {
  display: none;
}

.login-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-logo {
  margin-bottom: 1.5rem;
}

.login-box h2 {
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-size: 1.25rem;
}

.login-box .form-group {
  text-align: left;
}

.login-error,
.password-error {
  background: #fef2f2;
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
}

.password-success {
  background: #ecfdf5;
  color: var(--success);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #a7f3d0;
}

.security-section {
  max-width: 400px;
}

/* Hide admin content until logged in */
body[data-page="admin"]:not(.authenticated) .header,
body[data-page="admin"]:not(.authenticated) .page-hero,
body[data-page="admin"]:not(.authenticated) .section,
body[data-page="admin"]:not(.authenticated) .footer {
  display: none;
}

body[data-page="admin"].authenticated .login-overlay {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Booking summary */
.booking-summary {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}
.summary-total {
  border-top: 2px solid var(--gray-300);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

/* Success modal */
.modal-success {
  text-align: center;
  padding: 3rem 2rem;
}

/* --- Admin Panel --- */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.admin-table th {
  background: var(--gray-100);
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
  background: var(--gray-100);
}

.admin-table th.sortable {
  padding: 0;
}

.admin-table th.sortable button {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-table th.sortable button::after {
  content: "↕";
  font-size: 0.75em;
  opacity: 0.35;
  transition: opacity var(--transition);
}

.admin-table th.sortable:hover button::after {
  opacity: 0.7;
}

.admin-table th.sortable.sorted-asc button::after {
  content: "↑";
  opacity: 1;
  color: var(--primary);
}

.admin-table th.sortable.sorted-desc button::after {
  content: "↓";
  opacity: 1;
  color: var(--primary);
}

.admin-table th.sortable button:hover {
  color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: #6b7280;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
}
.status-dot.status-available { background: var(--success); }
.status-dot.status-booked { background: var(--warning); }
.status-dot.status-maintenance { background: var(--danger); }

.actions-cell {
  white-space: nowrap;
}

.btn-action {
  background: var(--white);
  color: var(--gray-900);
  border: 1.5px solid var(--gray-500);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 0.25rem;
  transition: all var(--transition);
}
.btn-action:hover:not(:disabled) {
  background: var(--gray-100);
  border-color: var(--gray-900);
}
.btn-delete {
  color: var(--danger);
  border-color: var(--danger);
}

.btn-delete:hover:not(:disabled) {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-delete:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  background: var(--gray-100);
}

/* --- Excel Import --- */
.import-section h3 {
  margin-bottom: 1rem;
}

.excel-format {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.format-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.format-table th,
.format-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  text-align: left;
}
.format-table th {
  background: var(--primary-light);
  font-weight: 600;
  color: var(--primary);
}
.format-table td {
  font-family: monospace;
}

.hint {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}
.upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-btn {
  margin: 0.75rem 0;
}
.upload-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

.import-preview {
  margin-top: 1.5rem;
}
.import-preview h4 {
  margin-bottom: 1rem;
}
.import-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.export-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.error {
  text-align: center;
  padding: 3rem;
  color: var(--danger);
  font-size: 1.1rem;
}

/* Add-ons */
.addons-section {
  margin-bottom: 1.5rem;
}

.addons-section h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.addon-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.addon-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Booking ref */
.booking-ref {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.feature-list-numbered {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.feature-list-numbered li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

/* Toolbar actions */
.toolbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Booking status styles */
.status-pending {
  color: var(--warning);
  font-weight: 600;
}

.status-waiting_payment {
  color: #e67e22;
  font-weight: 600;
}

.status-confirmed {
  color: var(--success);
  font-weight: 600;
}

.status-cancelled {
  color: var(--danger);
  font-weight: 600;
}

/* Status dot for waiting_payment */
.status-dot.status-pending { background: var(--warning); }
.status-dot.status-waiting_payment { background: #e67e22; }

/* Booking status select */
.booking-status-select {
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.booking-status-select.status-pending {
  background: #f5ecd4;
  border-color: #b89848;
  color: #6b5520;
}

.booking-status-select.status-waiting_payment {
  background: #f1ddc4;
  border-color: #a87548;
  color: #6b4520;
}

.booking-status-select.status-confirmed {
  background: #dce8dd;
  border-color: #5a8f60;
  color: #2f5234;
}

.booking-status-select.status-cancelled {
  background: #eed7d3;
  border-color: #b85a4a;
  color: #6b2e25;
}

/* --- Email Settings --- */
.email-setup {
  max-width: 800px;
}

.booking-flow-info {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.booking-flow-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--dark);
}

.email-config {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.email-config h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--gray-700);
}

.email-config h4.mt-2 {
  margin-top: 1.5rem;
}

/* --- Pricing Settings --- */
.pricing-section {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.pricing-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--gray-700);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

/* --- Terms Section (booking form) --- */
.terms-section {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.checkbox-label a:hover {
  color: var(--primary-dark);
}


/* --- Summary styles --- */
.summary-deposit {
  color: var(--warning);
  font-weight: 500;
}

.summary-notice {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  font-style: italic;
}

/* New class badges */

/* --- Accessibility: Skip link & focus --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--dark);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Visible focus indicator for keyboard users on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.label-hint {
  font-weight: 400;
  color: var(--gray-500);
  font-size: 0.85em;
}

/* --- Pricing Table (home) --- */
.pricing-table-wrap {
  max-width: 720px;
  margin: 0 auto;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table thead th {
  text-align: left;
  padding: 0.9rem 1.25rem;
  background: var(--gray-100);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-300);
}

.pricing-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
}

.pricing-table tbody tr:last-child {
  border-bottom: none;
}

.pricing-table th[scope="row"] {
  text-align: left;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  color: var(--dark);
}

.pricing-table td {
  padding: 0.9rem 1.25rem;
  color: var(--gray-700);
}

.pricing-table sup {
  color: var(--primary);
  font-weight: 600;
}

.pricing-taxes {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}

.pricing-taxes h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.pricing-taxes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-taxes li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.pricing-notes {
  max-width: 720px;
  margin: 1.5rem auto 0;
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.pricing-notes p {
  margin-bottom: 0.5rem;
}

.pricing-notes sup {
  color: var(--primary);
  font-weight: 600;
  margin-right: 0.15rem;
}

/* --- Vehicle Sales page --- */
.sales-article {
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.sales-article h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.sales-article p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.sales-article p:last-child {
  margin-bottom: 0;
}

.sales-article--highlight {
  background: var(--primary-light);
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
}

.sales-article--highlight h2 {
  border-bottom-color: var(--primary-dark);
}

.sales-cta {
  max-width: 820px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  text-align: center;
}

.sales-cta h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.sales-cta p {
  color: var(--gray-700);
  margin-bottom: 1.25rem;
}

/* --- Rental Policies --- */
.rental-policies {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--gray-100);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
}

.rental-policies h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.policy-list {
  margin: 0;
}

.policy-list dt {
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.policy-list dt:first-of-type {
  margin-top: 0;
}

.policy-list dd {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1 1 420px;
  min-width: 260px;
}

.cookie-banner-text strong {
  display: block;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 4px;
}

.cookie-banner-text p {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-cookie-reject {
  background: var(--white);
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-cookie-reject:hover {
  background: var(--gray-100);
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--white);
}

.btn-cookie-accept:hover {
  background: var(--primary-dark);
}

@media (max-width: 640px) {
  .cookie-banner { padding: 14px 16px; }
  .cookie-banner-actions { width: 100%; }
  .btn-cookie { flex: 1; padding: 10px 12px; }
}

/* --- Do Not Sell link --- */
.footer-col a.do-not-sell {
  font-size: 12px;
  text-decoration: underline;
  opacity: 0.85;
  margin-top: 4px;
}

.footer-col a.do-not-sell:hover {
  opacity: 1;
}
