/**
 * Single listing page.
 * Loaded by krishipedia_enqueue_page_styles() after main.css and Bootstrap.
 */
/* ── HERO BANNER ── */
.listing-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding-bottom: 0;
}
.listing-hero-inner {
  width: 100%;
}
.listing-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
}
.listing-badge-row { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom: 18px; }
.lbadge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform:uppercase;
  padding: 4px 12px; border-radius: 50px;
}
.lbadge-cat      { background:rgba(255,255,255,.15); color:#fff; border:1px solid rgba(255,255,255,.3); }
/* ── LAYOUT ── */
.listing-body { background: var(--pale); padding-bottom: 60px; }
.listing-content-container{
	margin-top: -48px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.listing-main-col { background: var(--white); border-radius: 0 0 16px 16px; padding: 0 32px 32px; }
.listing-sidebar { position: sticky; top: 76px; }
/* ── GALLERY ── */
.listing-image-gallery {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
}
.listing-image-gallery .owl-carousel .owl-item img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
.listing-image-gallery .owl-nav {
  position: absolute; top: 50%; left: 0; right: 0;
  display: flex; justify-content: space-between;
  transform: translateY(-50%); padding: 0 16px;
  opacity: 0; visibility: hidden; transition: opacity .3s;
  pointer-events: none;
}
.listing-image-gallery:hover .owl-nav { opacity:1; visibility:visible; pointer-events:auto; }
.listing-image-gallery .owl-nav button {
  background: var(--forest); color: #fff; border: none;
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 1.1rem; display:flex; align-items:center; justify-content:center;
  transition: background .2s;
}
.listing-image-gallery .owl-nav button:hover { background: var(--vibrant); }
.listing-image-gallery .owl-dots { padding: 10px 0 14px; }
.listing-image-gallery .owl-dot span {
  background: var(--border) !important; width:8px!important; height:8px!important;
  border-radius:50%!important; transition:background .2s!important;
}
.listing-image-gallery .owl-dot.active span { background: var(--forest) !important; }
/* ── TABS ── */
.listing-tabs { border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.listing-tabs .nav-link {
  color: var(--text-mid);
  font-weight: 500;
  font-size: .9rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 22px;
  border-radius: 0;
  transition: all .2s;
}
.listing-tabs .nav-link.active,
.listing-tabs .nav-link:hover {
  color: var(--forest); border-bottom-color: var(--forest); background: transparent;
}
.listing-tabs .nav-link i { margin-right: 6px; }
/* ── DESCRIPTION ── */
.listing-description {
  color: var(--text-dark); font-size: .95rem; line-height: 1.75;
}
.listing-description h2,
.listing-description h3 {
  color: var(--forest);
}
/* ── SIDEBAR CARD ── */
.sidebar-card {
  background: #fff;
  border: 1.5px solid var(--border);
  margin-bottom: 20px;
}
.sidebar-card-header {
  padding: 14px 20px;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card-header i { color: #74c69d; }
.sidebar-card-body { padding: 20px; }
/* Meta list */
.meta-list { list-style: none; padding: 0; margin: 0; }
.meta-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--mint);
  font-size: .875rem; color: var(--text-dark);
}
.meta-list li:last-child { border-bottom: none; }
.meta-list .meta-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--mint); display:flex; align-items:center; justify-content:center;
  color: var(--forest); font-size: .9rem; flex-shrink: 0;
}
.meta-list .meta-label { font-size: .73rem; color: var(--text-light); text-transform:uppercase; letter-spacing:.5px; display:block; }
.meta-list a { color: var(--vibrant); text-decoration: none; font-weight: 500; }
.meta-list a:hover { color: var(--forest); }
/* Action Buttons */
.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; border-radius: 8px;
  font-weight: 600; font-size: .88rem; border: none; cursor: pointer;
  text-decoration: none; transition: all .2s; margin-bottom: 10px;
}
.action-btn-primary { background: var(--forest); color: #fff; }
.action-btn-primary:hover { background: var(--leaf); color: #fff; transform: translateY(-1px); }
.action-btn-outline { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.action-btn-outline:hover { background: var(--pale); }
.action-btn-phone { background: #ecfdf3; color: #166534; border: 1.5px solid #bbf7d0; }
.action-btn-phone:hover { background: #d1fae5; }
/* Social Links */
.social-link-row { display:flex; gap:10px; flex-wrap:wrap; padding-top:4px; }
.soc-btn {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--mint); display:flex; align-items:center; justify-content:center;
  color: var(--forest); font-size: 1rem; text-decoration:none;
  transition: all .2s;
}
.soc-btn:hover { background: var(--forest); color: #fff; transform: scale(1.08); }
/* ── AUTHOR CARD ── */
.author-card {
  display:flex; align-items:center; gap:16px;
  padding: 18px 20px; background: var(--pale); border-radius: 12px;
  border: 1.5px solid var(--border); margin-bottom: 20px;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--mint); display:flex; align-items:center; justify-content:center;
  font-size: 1.5rem; color: var(--forest); flex-shrink:0;
}
.author-name { font-weight: 600; font-size: .92rem; color: var(--text-dark); }
.author-label { font-size: .75rem; color: var(--text-light); text-transform:uppercase; letter-spacing:.5px; }
.author-link { font-size: .8rem; color: var(--vibrant); text-decoration:none; }
.author-link:hover { color: var(--forest); }
/* ── REVIEWS ── */
.avg-rating-bar {
  background: var(--pale); border-radius: 12px; padding: 20px;
  display:flex; align-items:center; gap:20px; margin-bottom: 24px;
  border: 1.5px solid var(--border);
}
.avg-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
}
.avg-stars { color: #f59e0b; font-size: 1.3rem; letter-spacing:2px; }
.avg-label { font-size: .8rem; color: var(--text-light); }
.review-item {
  padding: 20px; border-radius: 12px;
  background: var(--white); border: 1.5px solid var(--border);
  margin-bottom: 16px; transition: box-shadow .2s;
}
.review-item:hover { box-shadow: 0 6px 20px rgba(27,67,50,.08); }
.review-stars { color: #f59e0b; font-size: 1rem; }
.review-text { color: var(--text-dark); font-size: .9rem; line-height: 1.65; margin: 8px 0; }
.review-meta { font-size: .78rem; color: var(--text-light); }
/* Star Rating Input */
.star-rating { font-size: 2rem; color: #d1d5db; cursor:pointer; display:flex; gap:4px; }
.star-rating .star { transition: color .15s; }
.star-rating .star.hover,
.star-rating .star.selected { color: #f59e0b; }
/* Review Form */
.review-form-wrap {
  background: var(--pale); border-radius: 12px;
  padding: 24px; border: 1.5px solid var(--border); margin-top: 24px;
}
.review-form-wrap h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 18px;
}
.review-form-wrap .form-control,
.review-form-wrap textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  padding: 11px 14px;
  background: #fff;
  transition: border-color .2s;
}
.review-form-wrap .form-control:focus,
.review-form-wrap textarea:focus {
  border-color: var(--vibrant);
  box-shadow: 0 0 0 3px rgba(64,145,108,.1);
}
.btn-submit-review {
  background: var(--forest); color: #fff; border: none;
  border-radius: 8px; padding: 11px 28px; font-weight: 600;
  font-size: .9rem; transition: background .2s;
}
.btn-submit-review:hover { background: var(--leaf); }
/* ── EDIT HISTORY ── */
.edit-history-wrap { font-size: .88rem; color: var(--text-mid); }
/* ── CTA BANNER ── */
.single-cta-banner {
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 32px 0;
}
.single-cta-banner h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.single-cta-banner p { color: rgba(255,255,255,.72); font-size: .87rem; margin:0; }
.single-cta-banner .btn-cta {
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: .9rem;
  white-space: nowrap;
  transition: all .2s;
  text-decoration: none;
}
.single-cta-banner .btn-cta:hover { background:#fff; transform:translateY(-1px); }
/* ── RELATED ── */
.related-section {
  background: #fff; border-radius: 14px;
  border: 1.5px solid var(--border); padding: 28px;
  margin-bottom: 40px;
}
.related-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 20px;
}
/* ── MAP PLACEHOLDER ── */
.map-placeholder {
  background: var(--mint); border-radius: 10px; height: 160px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color: var(--text-light); font-size: .85rem; gap: 6px;
  border: 1.5px dashed #b7e4c7;
}
.map-placeholder i { font-size:2rem; color:var(--vibrant); }
/* Misc */
@media (max-width:767px) {
  .listing-main-col { padding: 0 16px 24px; }
  .single-cta-banner { text-align:center; }
  .single-cta-banner .btn-cta { width:100%; text-align:center; }
}
.btn-submit-listing {
  background: var(--vibrant);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 20px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all .2s;
}
.btn-submit-listing:hover { background: var(--leaf); transform: translateY(-1px); }
