/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Collapsible panel chevron rotation */
details[open] summary svg {
  transform: rotate(180deg);
}

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

/* Google Places Autocomplete styling */
.address-autocomplete-input {
  display: block;
  width: 100%;
}

/* Legacy pac-* classes for older API */
.pac-container {
  font-family: ui-sans-serif, system-ui, sans-serif;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  margin-top: 0.25rem;
}

.pac-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-top: 1px solid #f3f4f6;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item:hover {
  background-color: #f9fafb;
}

.pac-item-selected,
.pac-item-selected:hover {
  background-color: #f3e8ff;
}

.pac-icon {
  display: none;
}

.pac-item-query {
  font-size: 0.875rem;
  color: #111827;
}

.pac-matched {
  font-weight: 600;
}

/* Card Parade - horizontal scrolling animation */
.card-parade-track {
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

.card-parade-inner {
  display: flex;
  gap: 1.5rem;
  animation: card-parade-scroll 80s linear infinite;
  width: max-content;
}

@keyframes card-parade-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.card-parade-item {
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 1rem 0;
  margin-left: 0;
  perspective: 800px;
  transition: margin-left 0.6s ease;
}

.card-parade-item.is-open {
  margin-left: 120px;
}

@media (min-width: 640px) {
  .card-parade-item.is-open {
    margin-left: 140px;
  }
}

@media (min-width: 768px) {
  .card-parade-item.is-open {
    margin-left: 160px;
  }
}

.card-parade-card {
  width: 120px;
  height: 120px;
  position: relative;
  transform-style: preserve-3d;
}

@media (min-width: 640px) {
  .card-parade-card {
    width: 140px;
    height: 140px;
  }
}

@media (min-width: 768px) {
  .card-parade-card {
    width: 160px;
    height: 160px;
  }
}

/* Card panels for in-place flip */
.card-parade-back {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.card-parade-front {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotateY(-20deg);
  transform-origin: left center;
  transition: transform 0.6s ease;
  z-index: 2;
  transform-style: preserve-3d;
}

.card-parade-front-outside,
.card-parade-front-inside {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.card-parade-front-outside {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-parade-front-inside {
  transform: rotateY(180deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-parade-item:hover .card-parade-front:not(.is-open) {
  transform: rotateY(-35deg);
}

.card-parade-front.is-open {
  transform: rotateY(-160deg);
}
