/**
 * Fleets Block Styles - Pure CSS/JS Slider
 *
 * @package UltraLite_BS_ACF
 * @since 1.0.0
 */

.fleet-slider-section {
  padding: 80px 0;
  background: #fff;
}

/* Section Header */
.fleets-header {
  text-align: center;
  margin-bottom: 56px;
}

.fleets-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.fleet-slider-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Slider Wrapper (Container) - Full Width */
.fleet-slider-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Slider List (ul) */
.fleet-slider-list {
  position: relative;
  padding: 2em 0;
  display: flex;
  width: 100%;
  margin: 0;
  list-style-type: none;
  transform: translateX(0);
  transition: transform 0.3s ease-out;
  align-items: center;
  height: 366px;
}

/* Slide Items (li) */
.fleet-slider-list .slide-item {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 25%;
  /* Left/Right previews: 25% each */
  margin: 0;
  padding: 0;
  /* Animation for non-featured items */
  transform: translateX(10%) scale(0.5);
  box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
  transition: all 0.3s ease-out;
  opacity: 0.7;
  height: auto;
}

/* Featured Item (Center) - Larger area, no shadow on image */
.fleet-slider-list .slide-item.featured {
  z-index: 1;
  width: 50%;
  /* Center slide: 50% (larger than left/right which are 25% each) */
  /* Animation for featured item */
  transform: scale(1);
  box-shadow: none;
  opacity: 1;
}

/* Offset the next element under the selected element */
.fleet-slider-list .slide-item.featured+.slide-item {
  transform: scale(0.5) translateX(-25%) !important;
}

/* Aircraft Slide Content */
.aircraft-slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  position: relative;
}

.btn-close {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

/* Preview cards (non-featured) */
.fleet-slider-list .slide-item:not(.featured) .aircraft-slide-content {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* padding: 16px;
  max-width: 280px; */
  margin: 0 auto;
  width: 100%;
}

/* Center slide (featured) */
.fleet-slider-list .slide-item.featured .aircraft-slide-content {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 750px;
  margin: 0 auto;
  width: 100%;
}

/* Aircraft Image Box */
.aircraft-image-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.aircraft-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

/* Preview card images */
.fleet-slider-list .slide-item:not(.featured) .aircraft-image-box {
  width: 100%;
  margin-bottom: 0;
}

.fleet-slider-list .slide-item:not(.featured) .aircraft-img {
  width: 100%;
  height: auto;
  /* object-fit: cover; */
  border-radius: 8px;
  /* aspect-ratio: 4/3; */
}

/* Center slide image - Limited to 750px width and 366px height */
.fleet-slider-list .slide-item.featured .aircraft-image-box {
  width: 100%;
  max-width: 750px;
  max-height: 366px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fleet-slider-list .slide-item.featured .aircraft-img {
  width: 100%;
  max-width: 750px;
  max-height: 366px;
  height: auto;
  object-fit: contain;
}

/* Aircraft Details Card Wrapper (outside slider) */
.aircraft-details-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 1590px;
  margin: 0 auto;
  margin-bottom: 56px;
  display: flex;
  justify-content: center;
}

/* Aircraft Details Card (positioned outside slider) */
.aircraft-details-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  box-shadow: var(--custom-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

/* Hide details data in slide items */
.aircraft-details-data {
  display: none !important;
}

/* Aircraft Registration */
.aircraft-registration {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

/* Aircraft Model */
.aircraft-model {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Aircraft Specs */
.aircraft-specs {
  margin-bottom: 16px;
  margin-top: 16px;
  line-height: 1.6;
}

/* Aircraft Pricing */
.aircraft-pricing {
  padding: 16px 0;
  border-top: 1px solid #eeeeee;
}

.pricing-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.pricing-row:last-child {
  margin-bottom: 0;
}

.pricing-label,
.pricing-value {
  font-weight: 600;
}


/* Aircraft Actions */
.aircraft-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  /* margin-top: 24px; */
  justify-content: center;
}

.btn-action {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--btn-gray-border);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 32px;
  box-shadow: var(--custom-shadow);
  text-decoration: none;
  display: inline-block;
}

.btn-action:hover {
  background: var(--yellow-color);
  color: #fff;
  border-color: var(--yellow-color);
  box-shadow: var(--custom-shadow);
}

.btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-action:disabled:hover {
  background: #fff;
  color: #333;
  border-color: var(--btn-gray-border);
}

/* Navigation Buttons */
.fleet-nav-btn {
  position: absolute;
  top: 22%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: #EFEFEF;
  border: 1px solid #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

/* .fleet-nav-btn:hover {
  background: #333;
  border-color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
} */

.fleet-nav-btn:hover svg {
  stroke: #fff;
}

.fleet-nav-btn svg {
  stroke: #333;
  transition: stroke 0.3s ease;
  width: 20px;
  height: 20px;
}

/* Position arrows next to preview cards - aligned with preview card center */
.fleet-nav-prev {
  left: calc(50% - 400px);
}

.fleet-nav-next {
  right: calc(50% - 400px);
}

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

/* Desktop - 1200px and above (Show left and right slides) */
@media (min-width: 1200px) {
  .fleet-slider-list .slide-item {
    width: 25%;
    /* Left/Right previews: 25% each */
  }

  .fleet-slider-list .slide-item.featured {
    width: 50%;
    /* Center slide: 50% */
  }

  .fleet-slider-list .slide-item:not(.featured) {
    display: flex;
    /* Show left and right slides */
    opacity: 0.7;
    transform: translateX(10%) scale(0.5);
  }

  .fleet-slider-list .slide-item.featured .aircraft-image-box {
    max-width: 750px;
    max-height: 366px;
  }

  .fleet-slider-list .slide-item.featured .aircraft-img {
    max-width: 750px;
    max-height: 366px;
  }

  .fleet-nav-prev {
    left: calc(50% - 410px);
    top: 21%;
  }

  .fleet-nav-next {
    right: calc(50% - 400px);
    top: 21%;
  }
}

/* Responsive overrides removed to keep desktop styling across devices */

/* Listing Layout Styles */
.fleet-list {
  padding: 32px;
  border-radius: 32px;
}

.fleets-listing .fleet-list:not(:last-child) {
  margin-bottom: 56px;
}

/* Panel Image Modal Lightbox Styles */
.panel-image-modal {
  z-index: 9999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.panel-image-modal .modal-backdrop {
  z-index: 9998 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.panel-image-modal .modal-dialog {
  max-width: 90%;
  margin: 1.75rem auto;
  z-index: 10000 !important;
}

.panel-image-modal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 10001 !important;
}

.panel-image-modal .panel-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10002 !important;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  opacity: 1;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.panel-image-modal .panel-modal-close::before,
.panel-image-modal .panel-modal-close::after {
  background-color: #000;
}

.panel-image-modal .panel-modal-body {
  padding: 0;
  text-align: center;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.panel-image-modal .panel-modal-image {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .panel-image-modal .modal-dialog {
    max-width: 95%;
    margin: 1rem auto;
  }

  .panel-image-modal .panel-modal-close {
    top: -35px;
    width: 35px;
    height: 35px;
  }

  .panel-image-modal .panel-modal-image {
    max-height: 85vh;
  }

  .home .fleet-slider-section {
    display: none;
  }
  .fleet-list {
    padding: 24px 16px;
}
}

@media (min-width: 1520px) and (max-width: 1920px) {
  .fleet-nav-prev {
    left: 20%;
    top: 21%;
  }

  .fleet-nav-next {
    right: 21%;
    top: 21%;
  }

}


/* ============================================
   Fleets Listing Filters
   ============================================ */
 
  .fleets-filters-wrap {
    margin-bottom: 48px;
  }
  
  .page-id-505 .fleet-slider-section {
    padding: 32px 0 86px;
}
  
  .fleets-filters-grid {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .fleets-filter-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #E0E0E0;
    border-radius: 999px;
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
    padding: 0 44px 0 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
  }

  .fleets-filter-field select:focus {
    outline: none;
    border-color: #b8bec7;
  }

  /* Make multi-select dropdown */
  .fleets-make-dropdown {
    position: relative;
  }

  .fleets-make-dropdown-trigger {
    width: 100%;
    min-height: 48px;
    border: 1px solid #E0E0E0;
    border-radius: 999px;
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
    padding: 0 44px 0 18px;
    background-color: #fff;
    text-align: left;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color 0.2s ease;
  }

  .fleets-make-dropdown-trigger:hover,
  .fleets-make-dropdown.is-open .fleets-make-dropdown-trigger {
    border-color: #b8bec7;
  }

  .fleets-make-dropdown-trigger:focus {
    outline: none;
    border-color: #b8bec7;
  }

  .fleets-make-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100;
    min-width: 220px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--custom-shadow);
    border: 1px solid #DFDFDF;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .fleets-make-dropdown.is-open .fleets-make-dropdown-panel {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .fleets-make-dropdown-title {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #71717A;
    font-weight: 400;
    text-align: left;
  }

  .fleets-make-dropdown-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
    max-height: 262px;
    overflow-y: auto;
  }

  .fleets-make-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    color: #333;
  }

  .fleets-make-option:hover {
    background: #f5f5f5;
    border-radius: 6px;
  }

  .fleets-make-checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid #A1A1AA;
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    position: relative;
  }

  .fleets-make-checkbox:checked {
    background: #111827;
    border-color: #111827;
  }

  .fleets-make-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 5px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }


  .fleets-make-dropdown-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
  }

  .fleets-make-apply {
    line-height: 18px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: black;
    background: #F7A136;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .fleets-make-apply:hover {
    background: #ea580c;
  }

  .fleets-make-reset {
    padding: 0;
    color: #888;
    background: none;
    border: none;
    text-decoration: none;
    line-height: 18px;
    padding: 10px 24px;
    font-size: 14px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .fleets-make-reset:hover {
    color: #333;
    text-decoration: underline;
  }

  .fleets-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
    border: 1px solid #E0E0E0;
    border-radius: 999px;
    padding: 0 14px 0 16px;
  }
  
  .fleets-filter-toggle>label:first-child {
    font-size: 16px;
    color: #111827;
    margin: 0;
  }
  
  .fleets-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    margin: 0;
  }
  
  .fleets-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .fleets-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d1d5db;
    transition: 0.25s ease;
    border-radius: 999px;
  }
  
  .fleets-switch-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    transition: 0.25s ease;
    border-radius: 50%;
  }
  
  .fleets-switch input:checked+.fleets-switch-slider {
    background-color: #22c55e;
  }
  
  .fleets-switch input:checked+.fleets-switch-slider::before {
    transform: translateX(20px);
  }
  
  .fleets-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
  }
  
  .fleets-active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background-color: #f1d8c8;
    color: #111827;
    font-size: 14px;
    line-height: 1;
    padding: 10px 12px;
  }
  
  .fleets-active-filter-chip:hover {
    color: #111827;
  }
  
  .fleets-active-filter-chip span {
    font-size: 18px;
    line-height: 1;
  }
  
  .fleets-clear-filters {
    font-size: 14px;
    color: #314e5b;
    text-decoration: underline;
  }
  
  .fleets-no-results {
    background: #f8f8f8;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 20px;
    margin-bottom: 24px;
  }
  
  .fleets-no-results p {
    margin: 0;
    color: #314e5b;
    font-size: 18px;
    line-height: 1.5;
  }
  
  .fleets-filters-wrap.is-loading,
  .fleets-listing.is-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  
  
  @media (max-width: 640px) {
   
  
    .fleets-filter-field select,
    .fleets-filter-toggle {
      min-height: 46px;
    }

    .fleets-make-dropdown-trigger {
      min-height: 46px;
    }

    .fleets-make-dropdown-panel {
      min-width: 100%;
      max-width: 280px;
    }
  }