/* Public Smart Island — Guest Houses (Airbnb-inspired) & Shops/Services Directory */

.gh-discovery-hero {
  background: linear-gradient(180deg, rgba(var(--bs-primary-rgb, 10, 108, 143), 0.06) 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.75rem 0 1.25rem;
}

.gh-search-bar {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0.45rem 0.55rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.75fr auto;
  align-items: center;
  gap: 0.25rem;
}

.gh-search-seg {
  padding: 0.35rem 1rem;
  border-inline-end: 1px solid rgba(15, 23, 42, 0.09);
  min-width: 0;
}

.gh-search-seg:last-of-type {
  border-inline-end: 0;
}

.gh-search-seg label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.1rem;
}

.gh-search-seg .form-control,
.gh-search-seg .form-select {
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
  background: transparent;
  font-size: 0.9rem;
  color: #0f172a;
}

.gh-search-btn {
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .gh-search-bar {
    border-radius: 1rem;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.85rem;
  }
  .gh-search-seg {
    border-inline-end: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.25rem 0.4rem 0.55rem;
  }
  .gh-search-seg:first-child {
    grid-column: 1 / -1;
  }
  .gh-search-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.gh-filter-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.6rem 0;
  scrollbar-width: thin;
}

.gh-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.gh-filter-pill:hover {
  border-color: #0f172a;
  color: #0f172a;
  background: #f8fafc;
}

.gh-filter-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* Guest House Listing Cards */
.gh-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gh-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
  color: inherit;
}

.gh-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.gh-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gh-card:hover .gh-card-media img {
  transform: scale(1.04);
}

.gh-card-badges {
  position: absolute;
  top: 0.7rem;
  inset-inline-start: 0.7rem;
  inset-inline-end: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4rem;
  pointer-events: none;
}

.gh-glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.gh-card-body {
  padding: 0.95rem 1.05rem 1.05rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.gh-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.15rem 0 0.25rem;
}

.gh-price-line {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

/* Custom Leaflet Price Pins */
.gh-price-pin {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  padding: 0.26rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease;
  text-align: center;
}

.gh-price-pin:hover,
.gh-price-pin.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: scale(1.08);
  z-index: 600 !important;
}

/* Split Map Panels */
.gh-map-box {
  height: 460px;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.shop-split-map {
  position: sticky;
  top: 5.25rem;
  height: 540px;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

@media (max-width: 991.98px) {
  .shop-split-map {
    position: relative;
    top: 0;
    height: 360px;
  }
}

/* Details 5-photo Airbnb Mosaic */
.gh-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 215px 215px;
  gap: 0.55rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #e2e8f0;
}

.gh-mosaic-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #cbd5e1;
}

.gh-mosaic-item:first-child {
  grid-row: span 2;
}

.gh-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease, filter 0.2s ease;
}

.gh-mosaic-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.92);
}

.gh-mosaic-all-btn {
  position: absolute;
  bottom: 0.9rem;
  inset-inline-end: 0.9rem;
  z-index: 5;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.2);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.42rem 0.9rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

@media (max-width: 767.98px) {
  .gh-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 260px;
  }
  .gh-mosaic-item:first-child {
    grid-row: span 1;
  }
  .gh-mosaic-item:not(:first-child) {
    display: none;
  }
}

/* Sticky Booking Card */
.gh-booking-card {
  position: sticky;
  top: 5.5rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1.1rem;
  padding: 1.4rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

.gh-amenity-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.gh-rating-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.gh-rating-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #0f172a;
}

.gh-review-card {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 0.95rem;
  padding: 1.15rem;
  background: #ffffff;
}

/* Shop Cards */
.shop-card {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.shop-card-cover {
  position: relative;
  height: 165px;
  background: #e2e8f0;
  overflow: hidden;
}

.shop-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
