/**
 * TGI Listing Display — v3 matches mockup 13 exactly.
 * Sections injected at top of the_content on flagged listings.
 */

.tgi-listing-sections {
  font-family: 'Urbanist', -apple-system, sans-serif;
  color: #172927;
  line-height: 1.55;
  margin-bottom: 36px;
}

.tgi-listing-sections .tgi-ls {
  padding: 28px 0;
  border-top: 1px solid #e8e5df;
}
.tgi-listing-sections .tgi-ls:first-child {
  border-top: 0;
  padding-top: 8px;
}

/* Standard section heading (teal underline, inline-block) */
.tgi-ls-heading {
  font-family: 'Urbanist', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #172927;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
  padding-bottom: 12px;
  border-bottom: 3px solid #62908f;
  display: inline-block;
}

.tgi-ls-subhead {
  font-size: 15px;
  font-weight: 700;
  color: #172927;
  margin: 18px 0 8px;
}

.tgi-ls-body {
  font-size: 14.5px;
  color: #3a4d4b;
  line-height: 1.75;
}
.tgi-ls-body p { margin: 0 0 12px; }
.tgi-ls-body p:last-child { margin-bottom: 0; }

/* ===== GOOD FOR — beige box, 2-col bulleted list (matches mockup) ===== */
.tgi-ls-good-for {
  border-top: 0 !important;
  padding-top: 0 !important;
}
.tgi-gf-card {
  background: #faf7f1;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 8px;
}
.tgi-gf-heading {
  font-family: 'Urbanist', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #172927;
  margin: 0 0 6px;
  padding-bottom: 12px;
  border-bottom: 3px solid #62908f;
  display: inline-block;
}
.tgi-gf-heading em {
  font-style: normal;
  font-weight: 800;
  letter-spacing: 1px;
}
.tgi-gf-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.tgi-gf-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: #3a4d4b;
  line-height: 1.55;
  min-height: 8px;
  display: flex;
  align-items: flex-start;
}
.tgi-gf-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62908f;
}
@media (max-width: 640px) {
  .tgi-gf-list { grid-template-columns: 1fr; }
  .tgi-gf-card { padding: 22px 22px; }
}

/* ===== Amenity icon row (Accommodation + Meals) ===== */
.tgi-ls-iconrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 28px;
  margin: 14px 0 18px;
}
@media (max-width: 640px) { .tgi-ls-iconrow { grid-template-columns: repeat(2, 1fr); } }

.tgi-ls-icon {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: #172927;
}
.tgi-ls-icon-bubble {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #62908f;
  font-size: 22px;
}
.tgi-ls-icon-label { font-weight: 500; }

/* ===== Read-more expand (teal underlined link) ===== */
.tgi-ls-expand {
  margin-top: 12px;
}
.tgi-ls-expand summary {
  list-style: none;
  cursor: pointer;
  color: #62908f;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #62908f;
  padding-bottom: 2px;
  margin-top: 8px;
}
.tgi-ls-expand summary::-webkit-details-marker { display: none; }
.tgi-ls-expand summary:hover { opacity: 0.85; }
.tgi-ls-expand summary i {
  font-size: 11px;
  transition: transform .15s;
}
.tgi-ls-expand[open] summary i { transform: rotate(180deg); }
.tgi-ls-expand[open] summary { margin-bottom: 12px; }

/* ===== Schedule (day-by-day numbered) ===== */
.tgi-ls-days {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  counter-reset: day;
}
.tgi-ls-days li {
  counter-increment: day;
  position: relative;
  padding: 18px 0 18px 56px;
  border-top: 1px solid #eceae5;
}
.tgi-ls-days li:first-child { border-top: 0; padding-top: 6px; }
.tgi-ls-days li::before {
  content: counter(day);
  position: absolute;
  left: 0;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8f5f4;
  color: #62908f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Urbanist', sans-serif;
}
.tgi-ls-days li:first-child::before { top: 6px; }
.tgi-ls-days h3 {
  font-size: 16px;
  font-weight: 700;
  color: #172927;
  margin: 0 0 6px;
}

/* ===== Included / Not Included (side-by-side grid) ===== */
.tgi-ls-inclusions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
@media (max-width: 640px) { .tgi-ls-inclusions-grid { grid-template-columns: 1fr; } }

.tgi-ls-inc h3,
.tgi-ls-exc h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid #62908f;
  display: inline-block;
  color: #172927;
}

.tgi-ls-inc ul,
.tgi-ls-exc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tgi-ls-inc li,
.tgi-ls-exc li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 14.5px;
  color: #3a4d4b;
}
.tgi-ls-inc li i {
  color: #62908f;
  font-size: 13px;
  margin-top: 5px;
  flex-shrink: 0;
}
.tgi-ls-exc li i {
  color: #b8572a;
  font-size: 13px;
  margin-top: 5px;
  flex-shrink: 0;
}

/* ===== OFFERING icons — uses the same .tgi-ls-icon/.tgi-ls-icon-bubble
 * structure as Accommodation/Meals. SVG is masked with teal fill so it
 * matches the Font Awesome icons in the other sections at the same size. */
.tgi-ls-offering .tgi-ls-icon-bubble .tgi-offering-svg {
  width: 22px;
  height: 22px;
  display: inline-block;
  background-color: #62908f;
  -webkit-mask-image: var(--tgi-svg);
          mask-image: var(--tgi-svg);
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}

/* ===== DETAILS compact grid (duration / group size / price / level) ===== */
.tgi-ls-details .tgi-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 14px;
}
.tgi-ls-details .tgi-detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tgi-ls-details .tgi-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e8f5f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #62908f;
  font-size: 17px;
  flex-shrink: 0;
}
.tgi-ls-details .tgi-detail-label {
  font-size: 11px;
  font-weight: 700;
  color: #8a9490;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.tgi-ls-details .tgi-detail-value {
  font-size: 14.5px;
  font-weight: 600;
  color: #172927;
  line-height: 1.35;
}

/* ===== FACILITIES (reuses iconrow styling) ===== */
.tgi-ls-facilities .tgi-ls-iconrow {
  /* inherits from base .tgi-ls-iconrow — nothing extra needed */
}

/* ===== CANCELLATION POLICY ===== */
.tgi-ls-cancellation .tgi-cancel-card {
  background: #f5f0e6;
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 14px;
}
.tgi-ls-cancellation .tgi-cancel-name {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color: #172927;
  padding: 4px 14px;
  background: #fff;
  border-radius: 100px;
  margin-bottom: 10px;
}
.tgi-ls-cancellation .tgi-cancel-card p {
  margin: 0;
  font-size: 14.5px;
  color: #3a4d4b;
  line-height: 1.6;
}
.tgi-ls-cancellation .tgi-cancel-deposit {
  font-size: 13px;
  color: #6b7976;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 3px solid #62908f;
  background: #f9fbfa;
  border-radius: 0 8px 8px 0;
  line-height: 1.55;
}
.tgi-ls-cancellation .tgi-cancel-notes {
  margin-top: 16px;
}
.tgi-ls-cancellation .tgi-cancel-notes strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #172927;
  margin-bottom: 4px;
}
.tgi-ls-cancellation .tgi-cancel-notes p {
  margin: 0;
  font-size: 14.5px;
  color: #3a4d4b;
  line-height: 1.6;
}

/* ===== LOCATION section (Leaflet map + address) ===== */
.tgi-ls-location .tgi-location-map-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8e5df;
  height: 360px;
  margin-top: 8px;
  background: #e8f0ee;
}
.tgi-ls-location .tgi-location-map {
  width: 100%;
  height: 100%;
}
.tgi-ls-location .tgi-location-dir {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 500;
  background: #fff;
  color: #172927;
  padding: 9px 16px;
  border-radius: 26px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.tgi-ls-location .tgi-location-dir i { color: #62908f; }
.tgi-ls-location .tgi-location-dir:hover { background: #f3f6f6; color: #62908f; text-decoration: none; }

/* ===== COMPACT HEADER (title + inline meta row: location · date) ===== */
body.tgi-wizard-listing .tgi-titlebar-compact h1 {
  margin: 0 0 10px !important;
}
/* Hide Listeo's original <span> wrapper containing the address anchor */
body.tgi-wizard-listing .tgi-hidden-orig-loc { display: none !important; }
body.tgi-wizard-listing .tgi-titlebar-compact br { display: none; }

/* Our injected meta row — force typography consistency on every child */
body.tgi-wizard-listing .tgi-meta-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 10px;
}
/* Apply Urbanist to meta row + direct text children, but NOT to <i> icons
 * (the <i> tags need their Font Awesome font-family to render the glyphs). */
body.tgi-wizard-listing .tgi-meta-row,
body.tgi-wizard-listing .tgi-meta-row .tgi-meta-loc,
body.tgi-wizard-listing .tgi-meta-row .tgi-meta-date,
body.tgi-wizard-listing .tgi-meta-row .tgi-meta-sep {
  font-family: 'Urbanist', -apple-system, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #172927 !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
}
body.tgi-wizard-listing .tgi-meta-row .tgi-meta-loc,
body.tgi-wizard-listing .tgi-meta-row .tgi-meta-date {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
}
body.tgi-wizard-listing .tgi-meta-row .tgi-meta-loc:hover { color: #62908f !important; }
body.tgi-wizard-listing .tgi-meta-row .tgi-meta-loc i,
body.tgi-wizard-listing .tgi-meta-row .tgi-meta-date i {
  color: #62908f !important;
  font-size: 14.5px !important;
  line-height: 1 !important;
}
body.tgi-wizard-listing .tgi-meta-row .tgi-meta-sep {
  color: #c9d2d0 !important;
  font-weight: 700 !important;
  margin: 0 12px !important;
  font-size: 14.5px !important;
}

/* ===== Add breathing room between LEFT content and RIGHT booking card ===== */
body.tgi-wizard-listing .elementor-widget-listeo-listing-sidebar,
body.tgi-wizard-listing .elementor-widget-listeo-listing-sidebar > .elementor-widget-container {
  padding-left: 36px !important;
}
@media (max-width: 1024px) {
  body.tgi-wizard-listing .elementor-widget-listeo-listing-sidebar,
  body.tgi-wizard-listing .elementor-widget-listeo-listing-sidebar > .elementor-widget-container {
    padding-left: 0 !important;
  }
}

/* ===== DETAILS grid variant when moved ABOVE Good For =====
 * No section heading, no top divider — a quick summary row under the title */
.tgi-listing-sections .tgi-ls-details-top {
  border-top: 0 !important;
  padding: 0 0 8px !important;
}
.tgi-listing-sections .tgi-ls-details-top + .tgi-ls-good-for {
  border-top: 0 !important;
  padding-top: 0 !important;
}

/* ===== FAQ section ===== */
.tgi-ls-faq .tgi-faq-list {
  margin-top: 14px;
}
.tgi-ls-faq .tgi-faq-item {
  padding: 16px 0;
  border-bottom: 1px solid #e8e5df;
}
.tgi-ls-faq .tgi-faq-item:last-child { border-bottom: 0; }
.tgi-ls-faq .tgi-faq-item summary {
  font-size: 15px;
  font-weight: 600;
  color: #172927;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tgi-ls-faq .tgi-faq-item summary::-webkit-details-marker { display: none; }
.tgi-ls-faq .tgi-faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: #62908f;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}
.tgi-ls-faq .tgi-faq-item[open] summary::after { content: "−"; }
.tgi-ls-faq .tgi-faq-answer {
  margin-top: 10px;
  font-size: 14.5px;
  color: #3a4d4b;
  line-height: 1.7;
}
.tgi-ls-faq .tgi-faq-answer p { margin: 0 0 10px; }
.tgi-ls-faq .tgi-faq-answer p:last-child { margin-bottom: 0; }

/* ===== HIDE LISTEO DUPLICATES (on flagged listings only) =====
 * JS adds .tgi-hidden-listeo to each duplicate widget.
 * Data-ids DIFFER per-listing so CSS-by-data-id is unreliable — we rely on
 * the JS dedupe that matches heading text content instead.
 */
body.tgi-wizard-listing .tgi-hidden-listeo {
  display: none !important;
}

/* Back-up: hide content blocks by their unique Listeo class names */
body.tgi-wizard-listing .included-items-container,
body.tgi-wizard-listing .excluded-items-container {
  display: none !important;
}

/* ===== STREAMLINE TOP OF LISTING =====
 * Hide Listeo's big green "Verified Listing" banner, retreat-type pill row
 * above the title, and the duration/persons/price stack (redundant — duration
 * lives in the Details section and price is in the booking card on the right).
 */

/* Big green "Verified Listing" banner at top */
body.tgi-wizard-listing .listingBadgeWrap,
body.tgi-wizard-listing .elementor-widget-listeo-listing-verified-badge {
  display: none !important;
}

/* Retreat-type pill row ABOVE the title — keep Listeo's native boxed pill
 * styling. Only drop the small duplicate icon INSIDE the <h1> title. */
body.tgi-wizard-listing .listing-titlebar-title h1 .listing-cat-img { display: none !important; }

/* Hide ALL Elementor divider widgets on the listing page — the surrounding
 * widgets (icon-list, heading, text-editor) are already hidden, so the
 * dividers stand alone as empty horizontal lines. */
body.tgi-wizard-listing .elementor-widget-divider { display: none !important; }

/* ===== AGGRESSIVE top-gap reduction between gallery and title bar ===== */
body.tgi-wizard-listing .listing-titlebar,
body.tgi-wizard-listing .listing-titlebar-title {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.tgi-wizard-listing .listing-titlebar { padding-bottom: 0 !important; }
body.tgi-wizard-listing .elementor-widget-listeo-listing-title,
body.tgi-wizard-listing .elementor-widget-listeo-listing-title > .elementor-widget-container,
body.tgi-wizard-listing .elementor-widget-listeo-listing-title .listing-widget {
  padding: 0 !important;
  margin: 0 !important;
}

/* Compress the section + its inner container + any ancestor column grid */
body.tgi-wizard-listing .elementor-section.elementor-top-section:has(.elementor-widget-listeo-listing-title),
body.tgi-wizard-listing .tgi-compact-title-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: -20px !important;
}
body.tgi-wizard-listing .elementor-section.elementor-top-section:has(.elementor-widget-listeo-listing-title) > .elementor-container,
body.tgi-wizard-listing .tgi-compact-title-section > .elementor-container,
body.tgi-wizard-listing .tgi-compact-title-section .e-con-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* Column holding the title widget — kill its padding too */
body.tgi-wizard-listing .tgi-compact-title-section .elementor-column,
body.tgi-wizard-listing .tgi-compact-title-section .elementor-widget-wrap {
  padding: 0 !important;
}

/* Details-top sits at the very top of the post-content column with generous
 * bottom spacing so Good For has breathing room below it. */
.tgi-listing-sections .tgi-ls-details-top {
  border-top: 0 !important;
  padding: 12px 0 48px !important;
  margin-top: 0 !important;
}
.tgi-listing-sections .tgi-ls-details-top + .tgi-ls-good-for {
  margin-top: 0 !important;
}

/* Duration / person count / price-from stack (Elementor icon-list widget).
 * Price shows in the booking card; duration shows in the Details section. */
body.tgi-wizard-listing .roomInfo.meta-info { display: none !important; }
