/* =========================================================
   Shared Styles
   Consolidated styles for new reusable sections (Testimonials, etc.)
   ========================================================= */

/* --- Testimonials Slider (Horizontal Scroll) --- */
#t-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Arrows sit outside or on edge */
}

.t-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 20px 4px;
  /* Bottom padding for shadow/scroll bar */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.t-track::-webkit-scrollbar {
  display: none;
}

/* Hide Chrome/Safari */

.t-card {
  flex: 0 0 280px;
  /* Fixed width cards */
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .t-card {
    flex: 0 0 320px;
  }
}

.t-stars {
  color: #ffc107;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.t-quote {
  font-style: italic;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

.t-byline {
  font-weight: 700;
  color: #002d62;
  font-size: 0.85rem;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
  padding-top: 10px;
}

/* Navigation Arrows */
.t-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #002d62;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.t-nav:hover {
  background: #002d62;
  color: #fff;
  border-color: #002d62;
}

.t-nav.disabled {
  opacity: 0;
  pointer-events: none;
}

/* Hide if at end */
.t-prev {
  left: 0;
}

.t-next {
  right: 0;
}

@media (max-width: 767.98px) {

  /* On mobile, maybe hide arrows and let them swipe? */
  .t-nav {
    width: 32px;
    height: 32px;
  }

  .t-prev {
    left: -10px;
  }

  .t-next {
    right: -10px;
  }

  /* Ensure cards aren't too small */
  .t-card {
    flex: 0 0 85vw;
  }
}


/* Standardized Card Badge Styles (Floating Pill) */
.inventory-card .spec-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #002d62;
  /* Navy */
  color: #fff;
  font-weight: 700;
  /* Bold */
  padding: 8px 16px;
  /* Increased padding for larger look */
  border-radius: 6px;
  /* Slightly squarer or standard rounded */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Clear gap */
  line-height: 1.2;
  /* Normalized line-height */
  font-size: 16px;
  /* Increased font size */
  white-space: nowrap;
  pointer-events: none;
}

/* Status Indicator Dot */
.inventory-card .spec-badge::before {
  content: "";
  display: block !important;
  position: static !important;
  width: 12px;
  /* Larger dot */
  height: 12px;
  border-radius: 50%;
  background-color: #9ca3af;
  border: 2px solid #fff;
  /* White ring effect */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  /* Subtle definition */
  flex-shrink: 0;
}

/* Status Colors */
.inventory-card .spec-badge[data-status="Now Available"]::before,
.inventory-card .spec-badge[data-status="Move-In Ready"]::before,
.inventory-card .spec-badge[data-status="Quick Move-In"]::before {
  background-color: #2ecc71;
  /* Green */
}

.inventory-card .spec-badge[data-status="Under Construction"]::before {
  background-color: #f39c12;
  /* Orange/Yellow */
}

/* ── Map Infobox Badge Overrides ─────────────────────────── */
.gm-style .infobox .spec-badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: #002b59 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 8px 6px 14px !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.gm-style .infobox .spec-badge::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
  margin: 0 3px 0 0;
}

/* Map Status Colors */
.gm-style .infobox .spec-badge[data-status="Now Available"]::before,
.gm-style .infobox .spec-badge[data-status="Move-In Ready"]::before,
.gm-style .infobox .spec-badge[data-status="Quick Move-In"]::before {
  background: #2ecc71;
  /* Green */
}

.gm-style .infobox .spec-badge[data-status="Under Construction"]::before {
  background: #f39c12;
  /* Orange */
}

.gm-style .infobox .spec-badge[data-status="Quick Move-In"]::before {
  background: #2ecc71;
  /* Green */
}


/* ── Infobox (Google Maps) ─────────────────────────── */
.infobox {
  position: relative;
  background: #fff;
  width: auto;
  max-width: 550px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

.infobox .close-x {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  text-align: center;
  font-size: 18px;
  line-height: 24px;
  color: #c00;
  cursor: pointer;
  z-index: 5;
}

.infobox .infobox-body {
  padding: 10px;
}

.infobox .infobox-scroll {
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
}

.infobox .info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.infobox .text-col {
  flex: 1 1 auto;
  min-width: 0;
}

.infobox .title {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.infobox .image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 200px;
  width: 200px;
  height: 120px;
}

.infobox .image-wrap--single {
  flex-basis: 180px;
  width: 180px;
  height: 120px;
}

/* ---------- Mobile tweaks for infobox ---------- */
@media (max-width:575.98px) {
  .infobox .info-row {
    flex-direction: column;
  }

  .infobox .image-wrap,
  .infobox .image-wrap--single {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .infobox .title {
    margin-top: 6px;
  }

  /* tightened stack */
  .infobox .info-row>.image-wrap,
  .infobox .info-row>.image-wrap--single {
    margin-bottom: 10px;
  }

  .infobox .image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .infobox .infobox-body {
    padding: 10px 12px;
  }
}

/* ---------- Section full-bleed dividers ---------- */
.section-divider-bottom,
.section-divider-top {
  position: relative;
}

.section-divider-bottom::after,
.section-divider-top::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: 1px;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .08), transparent);
  pointer-events: none;
  z-index: 2;
}

/* keep following sections from overlapping */
section {
  position: relative;
  z-index: 0;
}

/* ---------- Tight tabs-to-content seam + visibility ---------- */
#aboutTabContent>.tab-pane>*:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#commTabPane .gmap-edge {
  margin-top: 0 !important;
}

#qmiTabPane>.section:first-child,
#qmiTabPane>.section:first-child .container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.about-tabs {
  margin-bottom: 0 !important;
}

.about-tabs+.tab-content {
  margin-top: 0 !important;
}

/* Ensure maps/slider are always visible (no lazy subtree issues) */
#comm_map,
#qmi_map,
#commTabPane .gmap-edge,
#qmiTabPane .gmap-edge,
#t-slider {
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
}

/* Owl Carousel gallery */
#ss-gallery .ss-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

#ss-gallery .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #002d62 !important;
  color: #fff !important;
  border: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

#ss-gallery .owl-nav .owl-prev {
  left: 8px;
}

#ss-gallery .owl-nav .owl-next {
  right: 8px;
}

#ss-gallery .owl-nav button span {
  font-size: 22px;
  line-height: 1;
}

#ss-gallery .owl-dots {
  margin-top: 10px;
}

@media (max-width:575.98px) {
  #ss-gallery .owl-nav button {
    width: 40px;
    height: 40px;
  }
}

/* Misc */
.toggle-title {
  font-weight: 700;
  color: var(--fth-navy);
}