/* ==========================================================================
   Global Property Escape — Phase 2
   Explore hub, venue cards & directories, smart search, trip planner,
   destination extras and nearby sections.
   ========================================================================== */

/* ---------- Venue cards & grids ---------- */

.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.venue-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.venue-card-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light-grey);
}

.venue-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.venue-card:hover .venue-card-img img { transform: scale(1.05); }

.venue-card-body {
  padding: 16px 18px 8px;
  flex: 1;
}

.venue-card-title { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; margin: 0 0 6px; }
.venue-card-title a { color: var(--primary); }
.venue-card-title a:hover { color: var(--accent); }
.venue-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.venue-card .property-card-cta { padding: 12px 18px 16px; }
.venue-card .property-card-facts { margin-top: 12px; gap: 6px; }
.venue-card .property-card-loc { font-size: 0.8rem; }

.fact--rating { color: var(--warning); font-weight: 700; }

.tag--rating { background: var(--warning-bg); color: var(--warning); font-weight: 700; }

/* ---------- Directory toolbar ---------- */

.directory-toolbar {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
  gap: 12px;
  align-items: end;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-xs);
  margin-top: var(--space-4);
}

.directory-toolbar .form-group { margin: 0; }
.directory-toolbar input,
.directory-toolbar select { width: 100%; }

.directory-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: var(--space-3) 0 0;
  font-weight: 600;
}

/* ---------- Explore hub ---------- */

.explore-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.explore-category {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.explore-category:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.explore-category-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.explore-category h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--primary); margin: 4px 0 0; }
.explore-category p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.explore-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.explore-stats .stat-card { text-align: center; padding: 24px; }
.explore-stats .stat-value { font-size: 2rem; }

/* ---------- Weather ---------- */

.weather-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.weather-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-xs);
}

.weather-card-top { display: flex; align-items: center; gap: 12px; }
.weather-card-top h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--primary); margin: 0; }
.weather-icon { font-size: 1.8rem; line-height: 1; }
.weather-condition { font-size: 0.82rem; color: var(--text-muted); margin: 2px 0 0; }
.weather-temp { margin-left: auto; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--secondary); }

.weather-forecast { margin: 14px 0 10px; border-top: 1px solid var(--border-light); }
.weather-day {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text);
}
.weather-day-condition { text-align: right; color: var(--text-muted); }
.weather-climate { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ---------- Smart search ---------- */

.smart-search { position: relative; }
.smart-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-md);
  max-width: 640px;
}
.smart-search-box svg { flex: none; width: 20px; height: 20px; color: var(--text-muted); }
.smart-search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.98rem;
  color: var(--text);
  padding: 8px 0;
  min-width: 0;
}
.smart-search-box input::placeholder { color: var(--text-dim); }
.smart-search-box .btn { flex: none; border-radius: var(--radius-full); }

.smart-search--page .smart-search-box { max-width: 100%; padding: 14px 14px 14px 20px; }
.smart-search--page .smart-search-box input { font-size: 1.05rem; padding: 10px 0; }

.smart-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 200;
  max-width: 640px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.smart-search--page .smart-search-results { max-width: 100%; }

.smart-group {
  padding: 8px 16px 4px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: var(--light-grey);
}

.smart-result {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
}
.smart-result:hover,
.smart-result.active { background: var(--info-bg); }

.smart-result-type { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.smart-result-name { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.smart-result-sub { font-size: 0.78rem; color: var(--text-muted); text-align: right; }
.smart-result--all .smart-result-name { color: var(--secondary); }

.smart-empty {
  padding: 22px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.smart-search-hint { margin-top: 14px; font-size: 0.82rem; }

/* ---------- Trip planner ---------- */

.planner-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-5);
  align-items: start;
}

.planner-main, .planner-side { display: flex; flex-direction: column; gap: var(--space-4); }

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.panel .section-title { margin-bottom: 4px; }

.trip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-xs);
}

.trip-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.trip-card-head h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--primary); margin: 0; }
.trip-meta { font-size: 0.82rem; color: var(--text-muted); margin: 4px 0 0; }
.trip-dates { font-weight: 600; }
.trip-notes { font-size: 0.88rem; color: var(--text-muted); background: var(--light-grey); border-radius: var(--radius-sm); padding: 10px 12px; margin: 12px 0 0; }
.trip-empty { font-size: 0.85rem; color: var(--text-dim); margin: 12px 0 0; }

.trip-itinerary, .trip-item-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--border-light);
}
.trip-itinerary li, .trip-item-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.trip-itinerary a, .trip-item-list a { color: var(--primary); font-weight: 600; }
.trip-itinerary a:hover, .trip-item-list a:hover { color: var(--accent); }
.trip-item-sub { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }
.trip-stop-kind {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--success-bg);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  width: 92px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-add-row { display: flex; gap: 10px; margin-top: 14px; }
.trip-add-row select { flex: 1; }

.trip-dest-list { list-style: none; margin: 12px 0 0; padding: 0; }
.trip-dest-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.trip-dest-list a { color: var(--primary); font-weight: 600; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--secondary-dark); }
.link-btn--danger { color: var(--danger); }
.link-btn--danger:hover { color: var(--danger); }

/* ---------- Destination extras ---------- */

.dest-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.dest-extra .section-intro { margin-bottom: 16px; }

.dest-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.dest-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.nearby-block { margin-top: var(--space-4); }
.nearby-block h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--primary); margin: 0 0 4px; }
.nearby-block .venue-grid { margin-top: 8px; }
.nearby-block .muted { margin: 8px 0 0; }

.nearby-section { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }

/* ---------- Venue detail ---------- */

.venue-detail {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-5);
  align-items: start;
  margin-top: var(--space-4);
}

.venue-detail-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--light-grey);
  box-shadow: var(--shadow-sm);
}
.venue-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.venue-detail-hero .property-card-tags { position: absolute; top: 14px; left: 14px; }

.venue-detail-head { margin-top: 18px; }
.venue-detail-head h1,
.venue-detail-head h2 { font-family: var(--font-heading); font-size: var(--text-h2); font-weight: 700; color: var(--primary); margin: 0 0 8px; }
.venue-detail-head .property-card-loc { font-size: 0.95rem; }

.venue-detail-body { margin-top: 20px; }
.venue-detail-body h2 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--primary); margin: 26px 0 10px; }
.venue-detail-body p { color: var(--text); line-height: 1.65; margin: 0; }

.venue-detail-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.booking-details { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Stay estimate ---------- */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stay-estimate {
  background: var(--light-grey);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}
.stay-estimate .form-row { gap: 10px; }
.stay-estimate-total { font-size: 0.88rem; font-weight: 600; color: var(--primary); margin: 10px 0 0; }

.location-note { margin-top: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .venue-grid, .weather-grid, .explore-category-grid, .dest-gallery { grid-template-columns: repeat(2, 1fr); }
  .planner-grid { grid-template-columns: 1fr; }
  .venue-detail { grid-template-columns: 1fr; }
  .venue-detail-sidebar { position: static; }
}

@media (max-width: 860px) {
  .directory-toolbar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .venue-grid, .weather-grid, .explore-category-grid, .dest-gallery, .dest-extra-grid, .explore-stats { grid-template-columns: 1fr; }
  .directory-toolbar { grid-template-columns: 1fr; }
  .smart-result { grid-template-columns: 1fr auto; }
  .smart-result-type { grid-column: 1 / -1; }
}
