/* ══════════════════════════════════════════════════════════
   LUCON TRAVEL PARTNER DIRECTORY & VEHICLE GALLERY
   ══════════════════════════════════════════════════════════ */

.home-page .lucon-fleet-grid {
  padding: 4px 2px 12px;
}

.home-page .lucon-fleet-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 96, 112, 0.14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(6, 41, 59, 0.06), 0 2px 6px rgba(6, 41, 59, 0.04);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.22s ease;
}

.home-page .lucon-fleet-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 108, 121, 0.28);
  box-shadow: 0 16px 36px rgba(6, 41, 59, 0.11), 0 4px 10px rgba(6, 41, 59, 0.05);
}

.home-page .lucon-fleet-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, #dceceb 0%, #c8dfdd 100%);
}

.home-page .lucon-fleet-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(to top, rgba(6, 35, 43, 0.18), transparent);
  pointer-events: none;
}

.home-page .lucon-fleet-card__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-page .lucon-fleet-card:hover .lucon-fleet-card__media > img {
  transform: scale(1.025);
}

.home-page .lucon-fleet-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  height: auto;
  min-height: 124px;
  padding: 14px 16px 16px;
  gap: 6px;
  text-align: left;
  background: #ffffff;
}

.home-page .lucon-fleet-card__body h3 {
  margin: 0;
  color: var(--hp-navy, #073b4c);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.28rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.home-page .lucon-fleet-card__role {
  margin: 0;
  color: var(--hp-muted, #587279);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.lucon-fleet-card__vehicles {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid rgba(0, 108, 121, 0.22);
  border-radius: 999px;
  color: var(--hp-teal, #006c79);
  background: #f4faf9;
  font: 700 13px/1.2 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lucon-fleet-card__vehicles-arrow {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.lucon-fleet-card__vehicles:hover {
  color: #ffffff;
  background: var(--hp-teal, #006c79);
  border-color: var(--hp-teal, #006c79);
  box-shadow: 0 6px 16px rgba(0, 108, 121, 0.22);
}

.lucon-fleet-card__vehicles:hover .lucon-fleet-card__vehicles-arrow {
  transform: translateX(3px);
}

.home-page .lucon-fleet-grid[data-gallery-state="pending"],
.home-page .lucon-fleet-grid[data-gallery-state="failed"] {
  display: none;
}

.home-page .lucon-fleet-directory-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  margin: 8px 0 20px;
  padding: 18px 22px;
  border: 1px solid #d4e5e3;
  border-radius: 16px;
  color: #36565e;
  background: rgba(255, 255, 255, 0.86);
  font: 500 14px/1.45 'DM Sans', Arial, sans-serif;
  text-align: center;
}

.home-page .lucon-fleet-directory-status[data-status-state="loading"]::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(0, 108, 121, 0.24);
  border-top-color: #006c79;
  border-radius: 50%;
  animation: lucon-fleet-spin 0.8s linear infinite;
}

.home-page .lucon-fleet-directory-status[hidden] {
  display: none;
}

@keyframes lucon-fleet-spin {
  to { transform: rotate(360deg); }
}

.home-page .lucon-fleet-section__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.home-page .lucon-fleet-section__growth {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(0, 109, 123, 0.16);
  border-radius: 999px;
  color: #135863;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(6, 41, 59, 0.04);
  font: 700 13px/1.2 'DM Sans', Arial, sans-serif;
}

.home-page .lucon-fleet-section__growth span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #007989;
  font-size: 15px;
  line-height: 1;
}

.lucon-fleet-card__vehicles:focus-visible,
.vehicle-gallery button:focus-visible,
.vehicle-gallery-zoom button:focus-visible {
  outline: 3px solid #05a7b7;
  outline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════
   VEHICLE GALLERY DIALOG (MODAL & MOBILE BOTTOM SHEET)
   ══════════════════════════════════════════════════════════ */

.vehicle-gallery {
  width: min(100% - 32px, 900px);
  max-width: none;
  max-height: min(90dvh, 880px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: #16333b;
  background: #ffffff;
  box-shadow: 0 32px 96px rgba(4, 24, 33, 0.34);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    overlay 0.22s ease allow-discrete,
    display 0.22s ease allow-discrete;
}

.vehicle-gallery[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .vehicle-gallery[open] {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.vehicle-gallery::backdrop {
  background: rgba(5, 23, 31, 0.68);
  backdrop-filter: blur(5px);
}

.vehicle-gallery__panel {
  display: flex;
  flex-direction: column;
  height: min(88dvh, 840px);
  max-height: inherit;
  min-height: 280px;
  background: #ffffff;
}

.vehicle-gallery__handle {
  display: none;
}

.vehicle-gallery__header {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  border-bottom: 1px solid #e4eeee;
  background: #ffffff;
}

.vehicle-gallery__partner {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.vehicle-gallery__portrait {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #d4e8e6;
  border-radius: 50%;
  background: #e7efec;
  box-shadow: 0 4px 12px rgba(6, 41, 59, 0.08);
}

.vehicle-gallery__portrait[hidden] {
  display: none;
}

.vehicle-gallery__partner-meta {
  min-width: 0;
}

.vehicle-gallery__eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #5b7880;
  font: 700 10px/1.2 'DM Sans', Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vehicle-gallery__header h2 {
  margin: 0;
  color: #064a57;
  font: 700 clamp(1.35rem, 2.4vw, 1.75rem)/1.12 'Cormorant Garamond', Georgia, serif;
}

.vehicle-gallery__summary {
  margin: 3px 0 0;
  color: #527077;
  font: 500 12.5px/1.3 'DM Sans', Arial, sans-serif;
}

.vehicle-gallery__summary[hidden] {
  display: none;
}

.vehicle-gallery__close,
.vehicle-gallery__arrow {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #dce8e8;
  border-radius: 50%;
  color: #154049;
  background: #f6fafa;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.vehicle-gallery__close:hover,
.vehicle-gallery__arrow:hover {
  color: #ffffff;
  border-color: #006d7b;
  background: #006d7b;
}

.vehicle-gallery__close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.vehicle-gallery__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 26px 30px;
  background: #f9fcfb;
}

.vehicle-gallery__status {
  margin: 14px 0;
  padding: 18px;
  border: 1px solid #dfecea;
  border-radius: 14px;
  color: #4f6b72;
  background: #ffffff;
  font-size: 14px;
  text-align: center;
}

.vehicle-gallery__status[hidden] {
  display: none;
}

.vehicle-gallery__vehicles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.vehicle-gallery__vehicle {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e1eceb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(6, 41, 59, 0.04);
}

.vehicle-gallery__vehicle-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.vehicle-gallery__vehicle-title h3 {
  margin: 0;
  color: #0d3b45;
  font: 700 clamp(1.35rem, 2.4vw, 1.75rem)/1.12 'Cormorant Garamond', Georgia, serif;
}

.vehicle-gallery__specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vehicle-gallery__spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid #d7e7e6;
  border-radius: 999px;
  color: #19535e;
  background: #f2f8f7;
  font: 700 12px/1.2 'DM Sans', Arial, sans-serif;
}

.vehicle-gallery__spec-pill--muted {
  color: #526e75;
  background: #f7fafa;
  font-weight: 600;
}

.vehicle-gallery__hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: #eaf2f1;
}

.vehicle-gallery__image-button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.vehicle-gallery__image-button[hidden] {
  display: none;
}

.vehicle-gallery__main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vehicle-gallery__image-button:hover .vehicle-gallery__main-image {
  transform: scale(1.015);
}

.vehicle-gallery__zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(8, 25, 31, 0.62);
  font: 600 11.5px/1.2 'DM Sans', Arial, sans-serif;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.vehicle-gallery__photo-placeholder,
.vehicle-gallery__empty-photo {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 20px;
  color: #5e7a80;
  background: #edf4f3;
  font-size: 13px;
  text-align: center;
}

.vehicle-gallery__photo-placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.vehicle-gallery__photo-placeholder[hidden] {
  display: none;
}

.vehicle-gallery__empty-photo {
  border-radius: 16px;
}

.vehicle-gallery__photo-meta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.vehicle-gallery__photo-count {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(8, 25, 31, 0.66);
  font: 700 11.5px/1.2 'DM Sans', Arial, sans-serif;
  backdrop-filter: blur(8px);
}

.vehicle-gallery__arrows {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.vehicle-gallery__arrow {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 12px rgba(4, 22, 29, 0.18);
  font-size: 24px;
  line-height: 1;
}

.vehicle-gallery__thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 12px;
  padding: 2px 2px 6px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.vehicle-gallery__thumbnail {
  flex: 0 0 82px;
  width: 82px;
  height: 58px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #eaf1f0;
  cursor: pointer;
  opacity: 0.76;
  transition: opacity 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.vehicle-gallery__thumbnail:hover {
  opacity: 1;
}

.vehicle-gallery__thumbnail.is-active {
  opacity: 1;
  border-color: #007d8e;
  box-shadow: 0 0 0 3px rgba(0, 125, 142, 0.18);
}

.vehicle-gallery__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-gallery__thumbnail img[hidden] {
  display: none;
}

/* ══════════════════════════════════════════════════════════
   ENLARGED PHOTO VIEW (IN-PAGE LIGHTBOX DIALOG)
   ══════════════════════════════════════════════════════════ */

.vehicle-gallery-zoom {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #ffffff;
  background: rgba(4, 15, 20, 0.96);
}

.vehicle-gallery-zoom[open] {
  display: flex;
  flex-direction: column;
}

.vehicle-gallery-zoom::backdrop {
  background: rgba(4, 15, 20, 0.96);
}

.vehicle-gallery-zoom__bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 12px max(18px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 20, 27, 0.78);
  backdrop-filter: blur(8px);
}

.vehicle-gallery-zoom__caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font: 600 13.5px/1.3 'DM Sans', Arial, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-gallery-zoom__close {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font: 700 13px/1 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.vehicle-gallery-zoom__close:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
}

.vehicle-gallery-zoom__stage {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  place-items: center;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.vehicle-gallery-zoom__stage img {
  display: block;
  max-width: min(100%, 1240px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.vehicle-gallery-zoom__stage img[hidden] {
  display: none;
}

.vehicle-gallery-zoom__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(9, 28, 36, 0.72);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.vehicle-gallery-zoom__nav:hover {
  border-color: #ffffff;
  background: rgba(0, 121, 137, 0.88);
}

.vehicle-gallery-zoom__nav[hidden] {
  display: none;
}

.vehicle-gallery-zoom__nav--prev {
  left: max(14px, env(safe-area-inset-left, 0px));
}

.vehicle-gallery-zoom__nav--next {
  right: max(14px, env(safe-area-inset-right, 0px));
}

/* ══════════════════════════════════════════════════════════
   MOBILE SAFE-AREA BOTTOM SHEET (≤ 700px)
   ══════════════════════════════════════════════════════════ */

@media (max-width: 700px) {
  .home-page .lucon-fleet-card__body {
    height: auto;
    min-height: 118px;
    padding: 12px 14px 14px;
  }

  .lucon-fleet-card__vehicles {
    min-height: 42px;
    font-size: 12.5px;
  }

  .vehicle-gallery {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: min(92dvh, 860px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 8px);
    margin: 0;
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(24px);
  }

  .vehicle-gallery[open] {
    transform: translateY(0);
  }

  @starting-style {
    .vehicle-gallery[open] {
      opacity: 0;
      transform: translateY(32px);
    }
  }

  .vehicle-gallery__panel {
    height: 100%;
    max-height: 100%;
    border-radius: inherit;
  }

  .vehicle-gallery__handle {
    display: grid;
    flex: 0 0 24px;
    place-items: center;
    padding-top: 4px;
    touch-action: pan-y;
  }

  .vehicle-gallery__handle span {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #c5d6d6;
  }

  .vehicle-gallery__header {
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px));
  }

  .vehicle-gallery__portrait {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .vehicle-gallery__content {
    padding: 14px max(14px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  }

  .vehicle-gallery__vehicle {
    padding: 14px;
    border-radius: 16px;
  }

  .vehicle-gallery__hero {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .vehicle-gallery__photo-placeholder,
  .vehicle-gallery__empty-photo {
    min-height: 150px;
  }

  .vehicle-gallery__vehicle-heading {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .lucon-fleet-card,
  .home-page .lucon-fleet-card__media > img,
  .lucon-fleet-card__vehicles,
  .lucon-fleet-card__vehicles-arrow,
  .vehicle-gallery,
  .vehicle-gallery__close,
  .vehicle-gallery__arrow,
  .vehicle-gallery__main-image,
  .vehicle-gallery__thumbnail,
  .vehicle-gallery-zoom__close,
  .vehicle-gallery-zoom__nav {
    transition: none;
    animation: none;
  }

  .home-page .lucon-fleet-card:hover,
  .home-page .lucon-fleet-card:hover .lucon-fleet-card__media > img,
  .vehicle-gallery__image-button:hover .vehicle-gallery__main-image {
    transform: none;
  }

  .home-page .lucon-fleet-directory-status[data-status-state="loading"]::before {
    animation: none;
  }

  .vehicle-gallery__content,
  .vehicle-gallery__thumbnails {
    scroll-behavior: auto;
  }
}
