/* Facilities grid page only (tesisler-grid.html) */

/* Google Maps info window overrides */
.gm-style-iw-chr {
  position: absolute !important;
}

.gm-ui-hover-effect > span {
  background-color: white !important;
}

a {
  color: black;
}

#tesisMap {
  width: 100%;
}

.location-denied-message {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff4444;
  color: white;
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
  font-size: 14px;
}

.location-denied-message a {
  color: #fff;
  text-decoration: underline;
}

.map-info-rating {
  color: gold;
  text-shadow: 0 0 #000000bd;
  font-size: 12px;
}

.map-info-rating .fa-star {
  margin-inline-end: 3px;
  font-size: 11px;
}

.map-info-price {
  font-size: 12px;
}

.home .gm-style-iw-c a,
.home .gm-style-iw-c .title {
  color: #111;
}

/* Arabic facilities grid: map popup text reads left-to-right */
html[dir="rtl"] #tesisler-grid .gm-style-iw-c,
html[dir="rtl"] #tesisler-grid .gm-style-iw-d,
html[dir="rtl"] #tesisler-grid .gm-style-iw-c .map-info-ltr {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #tesisler-grid .gm-style-iw-c .top-info,
html[dir="rtl"] #tesisler-grid .gm-style-iw-c .more {
  flex-direction: row;
}

html[dir="rtl"] #tesisler-grid .gm-style-iw-c .more .icon img {
  transform: none;
}

html[dir="rtl"] #tesisler-grid .gm-style-iw-c .details {
  text-align: left;
}

.tesisler-grid-fab {
  position: fixed;
  bottom: 60px;
  right: 22px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background-color: #2a6e47;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.tesisler-grid-fab img {
  width: 100%;
  height: 100%;
  padding: 3px;
}

/*
 * Desktop: give grid/map definite viewport heights (Maps needs non-zero px).
 * Section uses height:auto (not a tall min-height) so no empty gap under content.
 */
@media (min-width: 768px) {
  #tesisler-grid {
    overflow-y: hidden;
  }

  /* Override style.css .tesislers { height: calc(100vh - 140px) } — that left a gap */
  #tesisler-grid .tesislers.list-page {
    height: auto !important;
    min-height: 0;
    overflow: hidden;
    margin-bottom: 0 !important;
    padding-bottom: 16px;
  }

  #tesisler-grid .all-tesislers .tesislers-grid,
  #tesisler-grid .all-tesislers .mapouter {
    height: calc(100dvh - 220px);
    min-height: 480px;
  }

  #tesisler-grid #tesisMap {
    height: 100%;
  }

  #tesisler-grid .all-tesislers .tesislers-grid .items-row .item {
    height: calc((100dvh - 250px) / 2);
    min-height: 200px;
  }
}

@media (max-width: 767px) {
  #tesisler-grid .tesislers.list-page {
    height: auto !important;
    min-height: 0;
  }

  #tesisler-grid .tesislers-grid {
    height: 590px;
  }

  #tesisler-grid .tesislers .mapouter {
    min-height: 68dvh;
    margin-top: -10px;
  }
}
