/* ─── Listing Title Row ─── */
.listing-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 0;
  box-sizing: content-box;
}

.listing-title-text {
  flex: 1;
  min-width: 0;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.listing-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}
.listing-rating .icon-star { width: 12px; height: 12px; }

.listing-reviews-link a,
.listing-location-link a {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: underline;
}
.listing-reviews-link a:hover,
.listing-location-link a:hover { color: var(--color-primary); }

.listing-superhost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.listing-superhost .icon-superhost { width: 14px; height: 14px; fill: currentColor; }

.listing-meta .listing-reviews-link::before,
.listing-meta .listing-superhost::before,
.listing-meta .listing-location-link::before {
  content: '·';
  display: inline-block;
  margin-right: 2px;
}

.listing-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ─── AirCover ─── */
.aircover-banner { display: flex; flex-direction: column; gap: 8px; }
.aircover-logo {
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #FF385C, #BD1E59);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.aircover-banner p { font-size: 14px; color: var(--color-text-secondary); }
.aircover-banner a { color: var(--color-text); text-decoration: underline; font-weight: 500; }
.aircover-banner a:hover { color: var(--color-primary); }

/* ─── Description ─── */
.description { max-width: 700px; }
.description__text { font-size: 15px; line-height: 1.7; color: var(--color-text); }

/* ─── Sleeping arrangements ─── */
.sleeping__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.sleeping__card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.sleeping__card:hover { box-shadow: var(--shadow-sm); }

.sleeping-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  margin-bottom: 16px;
}
.sleeping__card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.sleeping__card p { font-size: 14px; color: var(--color-text-secondary); }

/* ─── Amenities ─── */
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.amenity-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}
.amenity-item--disabled { opacity: 0.4; }
.amenity-item .crossed { text-decoration: line-through; }

/* ─── Calendar section ─── */
.calendar-section__subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.calendar-widget {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  user-select: none;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background var(--transition);
}
.cal-nav:hover { background: var(--color-bg-light); }
.cal-nav svg { width: 16px; height: 16px; fill: none; }

.cal-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  flex: 1;
}

.cal-month { min-width: 0; }
.cal-month__title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.cal-month__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day-name {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 4px 0 8px;
}
.cal-day {
  text-align: center;
  font-size: 13px;
  padding: 6px 2px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.cal-day:hover:not(.cal-day--empty):not(.cal-day--past):not(.cal-day--booked) {
  background: var(--color-bg-light);
  font-weight: 600;
}
.cal-day--empty { cursor: default; }
.cal-day--past { color: var(--color-border); cursor: not-allowed; text-decoration: line-through; }
.cal-day--booked {
  color: var(--color-border);
  cursor: not-allowed;
  text-decoration: line-through;
}
.cal-day--checkin,
.cal-day--checkout {
  background: var(--color-text) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 50%;
}
.cal-day--in-range {
  background: var(--color-bg-light);
  border-radius: 0;
}
.cal-day--today { font-weight: 700; text-decoration: underline; }

.clear-dates {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  color: var(--color-text);
  transition: color var(--transition);
}
.clear-dates:hover { color: var(--color-primary); }

/* ─── Host section ─── */
.host-section__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.host-avatar {
  position: relative;
  flex-shrink: 0;
}
.host-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.host-avatar--logo img {
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.host-avatar__badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.host-avatar__badge svg { width: 11px; height: 11px; }

.host-section__header .section-title { margin-bottom: 0; }
.host-since { font-size: 14px; color: var(--color-text-secondary); margin-top: 2px; line-height: 1.3; }
.host-section__header .host-since { margin-top: 0; }

.host-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.host-stat { display: flex; flex-direction: column; gap: 2px; }
.host-stat strong { font-size: 16px; font-weight: 700; }
.host-stat span {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.host-stat .icon-star-sm { margin-top: 1px; }

.host-info { margin-bottom: 20px; }
.host-info p { font-size: 15px; line-height: 1.7; margin-bottom: 8px; color: var(--color-text); }

.host-details { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.host-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}
.host-detail-item .icon-sm { flex-shrink: 0; }

.host-warning {
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: var(--color-bg-light);
}

/* ─── Location ─── */
.location-name {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}


/* ─── Location map (Leaflet) ─── */
.location-map-wrap {
  position: relative;
  margin-bottom: 20px;
}

.location-map {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  z-index: 0;
}

.location-map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.85);
}

.location-map__label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  white-space: nowrap;
}

.location-map__pin {
  background: none;
  border: none;
}

.map-pin-marker {
  width: 52px;
  height: 52px;
  background: var(--color-text);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.map-pin-marker svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  transform: rotate(45deg);
}

.location-description { max-width: 700px; }

/* ─── Rules ─── */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.rules-column h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.rules-list { display: flex; flex-direction: column; gap: 12px; }
.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
}
.rules-list .icon-sm { margin-top: 1px; flex-shrink: 0; }
.rules-link { font-size: 14px; font-weight: 600; text-decoration: underline; color: var(--color-text); display: inline-block; margin-top: 8px; }
.rules-link:hover { color: var(--color-primary); }

@media (max-width: 768px) {
  .listing-title-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 0;
  }
  .listing-title-text { flex: 1; min-width: 0; }
  .listing-meta {
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 13px;
    gap: 4px;
  }
  .listing-location-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .listing-actions {
    align-self: center;
    flex-shrink: 0;
  }
  .amenities__grid { grid-template-columns: 1fr; }
  .cal-months { grid-template-columns: 1fr; gap: 24px; }
  .cal-month:nth-child(2) { display: none; }
  .rules-grid { grid-template-columns: 1fr; }
  .host-stats { gap: 16px; }
  .location-map { height: 240px; }
}
