body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  background-color: #f9f9f9;
}

/* PAGE LAYOUT */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

.title {
  font-size: 2rem;
  font-weight: bold;
}

.subtitle {
  color: gray;
  font-size: 1.2rem;
}

.car-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.main-preview img {
  width: 100%;
  max-width: 850px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.thumbnail-slider {
  position: relative;
  width: 100%;
  max-width: 850px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.thumb-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.thumb-container img {
  width: 120px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
  transition: outline 0.2s;
}

.thumb-container img:hover {
  outline: 2px solid #000;
}

.arrow {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.arrow.left {
  margin-right: 0.5rem;
}

.arrow.right {
  margin-left: 0.5rem;
}


/* Modal Zoom */
.img-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


.info-card, .booking-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
}

.rating {
  color: green;
  float: right;
}

.info-card ul {
  list-style: none;
  padding: 0;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 15px;
}

.spec-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.price {
  font-size: 1.5rem;
  text-align: right;
}

.desc {
  font-size: 0.9rem;
  color: gray;
  border-top: 1px solid #ccc;
  padding-top: 1rem;
}

.booking-card label {
  display: block;
  margin: 0.5rem 0;
}

.booking-card input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
}

.booking-card button {
  width: 100%;
  padding: 0.75rem;
  background: #e11d48;
  color: white;
  border: none;
  margin-top: 1rem;
  cursor: pointer;
  border-radius: 8px;
}

.booking-summary {
  margin: 1rem 0;
  font-size: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.total-divider {
  border-top: 1px solid black;
  margin: 1rem 0 0.5rem;
}

.total-row {
  font-weight: bold;
}


.host-info {
  border-top: 1px solid #ccc;
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* FOOTER STYLES */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 60px;
  background: #000;
  color: white;
  flex-wrap: wrap;
}

.footer-logo {
  height: 40px;
  margin-right: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-socials a img {
  height: 24px;
  margin-right: 15px;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}

.footer-socials a:hover img {
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-links h4 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.footer-links p {
  margin: 6px 0;
  font-size: 14px;
  cursor: pointer;
}

.custom-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}


.custom-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.signature-canvas {
  width: 100%;
  max-width: 100%;
  height: 150px;
  border: 1px solid #ccc;
  border-radius: 12px;
  margin: 20px 0;
  display: block;
}



.modal-link {
  display: inline-block;
  margin: 10px 0 20px;
  color: #e11d48;
  font-weight: bold;
  text-decoration: underline;
}

.modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: #ccc;
  font-weight: bold;
  transition: background 0.3s ease;
}

.modal-btn.primary {
  background: #e11d48;
  color: white;
}

.modal-btn.primary:hover {
  background: #c4103c;
}

.modal-btn.secondary {
  background: #000;
  color: white;
}

.modal-btn.secondary:hover {
  background: #333;
}

.pickup-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.pickup-map {
  flex: 1 1 360px;
  min-width: 300px;
  max-width: 100%;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(6px);
}

.leaflet-div-icon.pickup-marker {
  background: transparent;
  border: none;
}

.pickup-marker__pin {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  transform: rotate(-45deg);
  box-shadow: 0 10px 18px rgba(79, 70, 229, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.pickup-marker__center {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.95);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pickup-list {
  flex: 1;
  min-width: 260px;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 60%),
              radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.16), transparent 55%),
              #f8fafc;
  padding: 24px 22px;
  border-radius: 20px;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.pickup-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pickup-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 18px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  z-index: 0;
}

.pickup-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(236, 72, 153, 0.15));
  pointer-events: none;
}

.pickup-card > * {
  position: relative;
  z-index: 1;
}

.pickup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 32px rgba(15, 23, 42, 0.12);
}

.pickup-card:hover::after {
  opacity: 1;
}

.pickup-card.active {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 26px 42px rgba(37, 99, 235, 0.18);
}

.pickup-card.active::after {
  opacity: 1;
}

.pickup-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.pickup-card__badge {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.28);
}

.pickup-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.pickup-card__coords {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.pickup-card__address {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pickup-card__pin {
  font-size: 1.05rem;
}

.pickup-card__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pickup-card__cta:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #1e40af;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .pickup-wrapper {
    gap: 18px;
  }

  .pickup-map {
    height: 360px;
  }

  .pickup-list {
    padding: 20px 18px;
  }

  .pickup-card {
    padding: 16px 18px;
  }
}

@media (max-width: 600px) {
  .pickup-wrapper {
    flex-direction: column;
  }
  .pickup-map,
  #pickup-map-detail {
    width: 100%;
    min-width: 0;
    flex: none;
    height: clamp(280px, 55vh, 360px);
  }

  .pickup-list {
    padding: 18px 16px;
  }

}
