/* Kottayam Rentals — from search-results.html */
:root {
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --bg-thumb: #f5f5f5;
    --text-primary: #000000;
    --text-muted: #6b6b6b;
    --text-light: #A7A7A7;
    --border-color: #e5e5e5;
    --brand-accent: #c10000;
    --brand-yellow: #F4A300; /* Signal Amber */
    --brand-dark: #000000;
    --brand-blue: #0dabd6; /* Petrol Blue */
    --brand-grey: #A7A7A7; /* Road Dust Grey */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 40px -10px rgba(18, 21, 26, 0.12);
    --radius-card: 18px;
    --radius-pill: 30px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
  }

  .font-brand-secondary,
  .card-cat,
  .badge-yellow,
  .vendor-badge {
    font-family: 'Copperplate Gothic Light', Copperplate, 'Segoe UI', sans-serif;
    letter-spacing: 0.05em;
  }

  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; }
  img { max-width: 100%; display: block; }

  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* HEADER */
  header.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
  }
  .brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .brand-logo {
    height: 70px;
    width: auto;
    display: block;
    border-radius: 8px;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
  }
  .nav-links a {
    transition: color 0.2s ease;
  }
  .nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .lang-select {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
  }
  .icon-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
  }
  .icon-circle-btn:hover {
    background: #f1f3f6;
  }

  /* MOBILE NAV TOGGLE (HAMBURGER) */
  .nav-toggle-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
  }
  .nav-toggle-btn span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-primary);
    transition: transform 0.28s ease, opacity 0.18s ease;
  }
  .nav-toggle-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle-btn.open span:nth-child(2) { opacity: 0; }
  .nav-toggle-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav-backdrop {
    position: fixed;
    inset: 86px 0 0;
    background: rgba(18, 21, 26, 0.45);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .nav-backdrop.show {
    opacity: 1;
    visibility: visible;
  }

  /* SEARCH RESULTS PAGE HEADER */
  .results-header-section {
    padding: 36px 0 20px;
  }
  .results-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .badge-yellow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #c10000;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: 0.2px;
  }
  .btn-modify-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
  }
  .btn-modify-search:hover {
    background: #1e232a;
    color: #ffffff;
    border-color: #1e232a;
  }

  .results-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 24px;
  }
  .results-title span {
    color: var(--brand-accent);
  }

  /* ACTIVE SEARCH SUMMARY CARD */
  .search-summary-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid var(--border-color);
    box-shadow: 0 4px 18px rgba(0,0,0,0.03);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
  }
  .summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .summary-item .label {
    color: var(--text-muted);
    font-weight: 600;
  }
  .summary-item .value {
    color: var(--text-primary);
    font-weight: 700;
  }
  .summary-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
  }

  /* EDIT SEARCH EXPANDABLE DRAWER */
  .edit-search-drawer {
    display: none;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
    border: 1.5px solid var(--border-color);
    padding: 20px 24px;
    margin-bottom: 32px;
  }
  .edit-search-drawer.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .edit-search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: end;
  }
  .edit-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .edit-field input, .edit-field select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
  }
  .btn-update-search {
    background: var(--brand-dark);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 12px 24px;
    border-radius: 10px;
    transition: background 0.2s ease;
  }
  .btn-update-search:hover {
    background: var(--brand-yellow);
    color: #12151a;
  }

  /* CATEGORY FILTER CHIPS */
  .filter-chips-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-behavior: smooth;
    /* Swipe to scroll — the native bar is noise on a tab strip */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Fade the trailing edge so it reads as "there is more this way".
       The .at-end class removes it once there is nothing left to scroll,
       which also covers wide screens where every chip already fits. */
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
  }
  .filter-chips-row::-webkit-scrollbar {
    display: none;
  }
  .filter-chips-row.at-end {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .filter-chip {
    padding: 8px 18px;
    border-radius: 24px;
    border: 1.5px solid var(--border-color);
    background: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .filter-chip:hover, .filter-chip.active {
    background: var(--brand-dark);
    color: #ffffff;
    border-color: var(--brand-dark);
  }

  /* VEHICLE CARDS GRID (4-COLUMN RESPONSIVE GRID) */
  .grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
  }

  /* BIKE CARD DESIGN */
  .bike-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
  }
  .bike-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 0, 0, 0.15);
  }

  .card-thumb {
    background: radial-gradient(circle at 50% 65%, #ffffff 0%, #edf2f7 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
  }
  .card-thumb img {
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,0.12));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .bike-card:hover .card-thumb img {
    transform: scale(1.06) translateY(-4px);
  }

  .card-top-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  }

  .vendor-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .card-cat {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--accent-red);
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .card-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-specs-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    border: 1px solid #f1f5f9;
  }
  .spec-chip {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .card-footer-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
  }
  .price-box {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 0;
  }
  .price-main {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .price-unit {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
  }

  .btn-select-vehicle {
    background: #c10000;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 10px 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(193, 0, 0, 0.25);
  }
  .btn-select-vehicle:hover {
    background: #0a0a0a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transform: translateY(-1px);
  }

  /* MODAL FOR BOOKING CONFIRMATION */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(18, 21, 26, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-overlay.active {
    display: flex;
  }
  .modal-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.2);
    position: relative;
    animation: modalPop 0.3s ease;
  }
  @keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
  }
  .modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; cursor: pointer;
  }
  .modal-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
  .modal-img { max-height: 180px; margin: 16px auto; object-fit: contain; }
  .modal-summary-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    border: 1.5px solid #e2e8f0;
    margin-bottom: 20px;
    font-size: 13px;
  }
  .modal-summary-row {
    display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600;
  }
  .modal-summary-row:last-child { margin-bottom: 0; border-top: 1px solid #e2e8f0; padding-top: 8px; font-weight: 800; font-size: 15px; }

  .btn-confirm-booking {
    width: 100%;
    background: #c10000;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    padding: 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
  }
  .btn-confirm-booking:hover {
    background: #0a0a0a;
    color: #ffffff;
  }

  /* FOOTER */
  footer.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 56px 0 24px;
  }
  .footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
  }
  .footer-brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .footer-links {
    display: flex;
    gap: 16px;
    font-weight: 600;
  }
  .footer-brand-logo {
    height: 44px;
    width: auto;
    display: block;
    border-radius: 8px;
  }

  /* =========================================================
     RESPONSIVE BREAKPOINTS
     ========================================================= */

  @media (max-width: 1100px) {
    .grid-4col { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  }

  /* --- Tablet: swap the nav for a slide-down drawer --- */
  @media (max-width: 900px) {
    .nav-toggle-btn { display: flex; }
    .lang-select { display: none; }

    .nav-links {
      position: fixed;
      top: 86px;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 6px 24px 18px;
      background: #ffffff;
      border-bottom: 1px solid var(--border-color);
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
      font-size: 15px;
      max-height: calc(100vh - 86px);
      overflow-y: auto;
      transform: translateY(-100%);
      visibility: hidden;
      transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
      z-index: 99;
    }
    .nav-links.open {
      transform: translateY(0);
      visibility: visible;
    }
    .nav-links a {
      padding: 15px 4px;
      border-bottom: 1px solid #f1f5f9;
    }
    .nav-links a:last-child { border-bottom: none; }

    .grid-4col { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 768px) {
    .edit-search-grid { grid-template-columns: 1fr 1fr; }
    .search-summary-card { flex-direction: column; align-items: flex-start; gap: 10px; }
    .summary-divider { display: none; }
    .results-header-section { padding: 24px 0 16px; }
    .results-title { font-size: 26px; }
  }

  /* --- Phone --- */
  @media (max-width: 640px) {
    .container { padding: 0 16px; }
    .nav-links { padding: 6px 16px 18px; }

    .grid-4col { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
    .results-title { font-size: 23px; }

    /* Stack the badge and modify button instead of squeezing them */
    .results-top-bar {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
    .btn-modify-search { justify-content: center; }

    .edit-search-drawer { padding: 18px 16px; }
    .edit-search-grid { grid-template-columns: 1fr; gap: 14px; }
    .btn-update-search { width: 100%; padding: 14px; }

    .search-summary-card { padding: 16px 18px; gap: 12px; }
    .filter-chips-row {
      margin-bottom: 22px;
      /* Let chips scroll edge-to-edge instead of clipping */
      margin-inline: -16px;
      padding-inline: 16px;
      -webkit-overflow-scrolling: touch;
    }
    .filter-chip { padding: 10px 18px; font-size: 13px; }

    .card-thumb { height: 190px; }
    .card-footer-row {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }
    .btn-select-vehicle { justify-content: center; padding: 13px 16px; }

    .modal-card { padding: 24px 20px; border-radius: 20px; }
    .modal-title { font-size: 19px; }
    .modal-img { max-height: 140px; }

    footer.site-footer { padding: 44px 0 20px; }
    .footer-bottom {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 14px;
    }
    .footer-brand-block {
      flex-direction: column;
      gap: 10px;
    }
    .footer-links {
      justify-content: center;
      flex-wrap: wrap;
    }
  }

  @media (max-width: 420px) {
    .brand-logo { height: 52px; }
    .header-actions { gap: 8px; }
    .icon-circle-btn { width: 34px; height: 34px; }
    .results-title { font-size: 21px; }
    .card-thumb { height: 170px; }
  }

.edit-field.location-combobox { position: relative; }
.edit-location-trigger {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.edit-location-trigger .picker-value {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.edit-location-trigger .picker-caret {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #737373;
  transition: transform 0.2s ease;
}
.edit-location-trigger[aria-expanded="true"] .picker-caret {
  transform: rotate(180deg);
  color: var(--brand-accent);
}
.edit-field .picker-panel.location-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  background: #ffffff;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  padding: 10px;
  width: 100%;
  max-height: 260px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.edit-field .picker-panel.location-panel.open { display: flex; }
.edit-field .location-filter {
  width: 100%;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  background: #f8fafc;
}
.edit-field .location-options {
  overflow-y: auto;
  max-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.edit-field .location-option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.edit-field .location-option:hover,
.edit-field .location-option.is-selected {
  background: #fff5f5;
  color: var(--brand-accent);
}
.vehicles-loading {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.search-no-results {
  padding: 28px 8px 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.search-no-results a { color: var(--brand-accent); font-weight: 700; text-decoration: underline; }

.nav-my-bookings-desktop {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-accent);
  text-decoration: none;
  white-space: nowrap;
  margin-right: 4px;
}
.nav-my-bookings-desktop:hover { color: var(--brand-blue, var(--brand-accent)); }
.nav-my-bookings-mobile { display: none; }
@media (max-width: 900px) {
  .nav-my-bookings-desktop { display: none; }
  .nav-my-bookings-mobile { display: block; }
}
