/* ============================================================
   accommodation.css — Accommodation page
   ============================================================ */

/* ---- Hotels + Map Layout ---- */
.accommodation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

/* ---- Map Panel ---- */
.map-panel {
  position: sticky;
  top: 100px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* Leaflet Map Container */
#map {
  width: 100%;
  height: 420px;
  z-index: 1;
}

/* Custom marker styles */
.custom-marker {
  background: transparent !important;
  border: none !important;
}

/* Leaflet Popup Styles */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,56,167,0.18) !important;
  border: 1.5px solid rgba(0,56,167,0.15) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 14px 16px !important;
  line-height: 1.5;
}

.leaflet-popup-tip {
  background: #fff !important;
  box-shadow: none !important;
}

.leaflet-popup-close-button {
  color: var(--text-light) !important;
  font-size: 18px !important;
  padding: 8px !important;
}

.leaflet-popup-close-button:hover {
  color: var(--primary) !important;
}

.leaflet-popup-content .popup-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 100px;
  margin-bottom: 5px;
}

.leaflet-popup-content .popup-badge.venue {
  background: #0038a7;
  color: #fff;
}

.leaflet-popup-content .popup-badge.hotel {
  background: #fbb901;
  color: #fff;
}

.leaflet-popup-content .popup-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
  line-height: 1.3;
}

.leaflet-popup-content .pop-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 7px 0;
}

.leaflet-popup-content .popup-meta {
  font-size: 0.73rem;
  color: var(--text-mid);
  line-height: 1.55;
}

.leaflet-popup-content .popup-meta strong {
  color: var(--primary);
  font-weight: 700;
}

/* Map info bar */
.map-info-bar {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-info-item {
  padding: 14px 16px;
  background: var(--bg-white);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.map-info-item:last-child { border-bottom: none; }
.map-info-item .info-num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.map-info-item .info-label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Hotels Panel — Flickity-style Carousel ---- */
.hotels-panel {
  position: relative;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.carousel-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.carousel-arrows {
  display: flex;
  gap: 8px;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-mid);
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Main carousel track */
.carousel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
}

.carousel-track:active { cursor: grabbing; }

/* Hotel slide card */
.hotel-slide {
  min-width: 100%;
  padding: 0 2px;
}

.hotel-list-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  margin: 0 4px;
}

.hotel-list-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,56,167,0.2);
}

.hotel-list-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}

.hotel-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hotel-list-card:hover .hotel-list-img img { transform: scale(1.06); }

.hotel-list-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.hotel-list-badge.gold { background: linear-gradient(135deg,#fbb901,#e09b00); }

.hotel-list-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hotel-list-stars {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.hotel-list-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.hotel-list-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  flex: 1;
}

.hotel-list-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-mid);
}
.hotel-list-meta-row svg { flex-shrink: 0; color: var(--text-light); }
.hotel-list-meta-row .distance { font-weight: 700; color: var(--primary); }
.hotel-list-meta-row .price { font-weight: 700; color: var(--primary); }

.hotel-list-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
  text-decoration: none;
  transition: gap 0.2s;
  margin-top: auto;
}
.hotel-list-cta:hover { gap: 10px; }

/* Flickity dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,56,167,0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
}

/* Booking note */
.booking-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(26,58,92,0.04);
  border: 1px solid rgba(26,58,92,0.12);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.booking-note svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.booking-note strong { color: var(--primary); }
.booking-note a { color: var(--primary-light); text-decoration: underline; }

/* Responsive */
@media (max-width: 1100px) {
  .accommodation-layout { grid-template-columns: 1fr; gap: 32px; }
  .map-panel { position: static; }
}

@media (max-width: 700px) {
  .map-info-bar { grid-template-columns: 1fr; }
  .map-info-item { border-right: none; border-bottom: 1px solid var(--border); }
  .map-info-item:last-child { border-bottom: none; }
  .carousel-arrows { display: none; }
}
