/* ==========================================================
   DELHI25 · Listing Detail (Public)
   File: static/css/pages/detail.css
   Depends on: base.css + inner.css
   ========================================================== */

/* Page shell */
.d25-sd{
  width: 92%;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.d25-page--listing.d25-page--inner .d25-inner-shell{
  margin: 0 auto;
}

/* ==========================================================
   HERO (banner + category badge)
   ========================================================== */

.d25-sd-hero{
  position: relative;
  width: 100%;
  background: var(--grey-01);
  overflow: visible; 
}

.d25-sd-heroMedia{
  width: 100%;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: var(--grey-01);
  aspect-ratio: 1 / .25;
  height: clamp(280px, 18vw, 360px);
}

.d25-sd-heroImg{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.d25-sd-heroPh{
  width: 100%;
  height: 100%;
  display: block;
  background: var(--grey-03);
}

.d25-sd-catBadge{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 3;
  padding: 12px 24px;
  border-radius: 999px;
  border: var(--b1) solid var(--grey-02);
  background: #fff;
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
  color: var(--grey-10);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================
   HEAD
   ========================================================== */

.d25-sd-head{
  margin: 80px auto; 
}

.d25-sd-headInner{
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* Avatar */
.d25-sd-avatar{
  width: 240px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--grey-01);
}

.d25-sd-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* Meta */
.d25-sd-meta{
  flex: 1;
  min-width: 0;
  max-width: 64ch;
  text-align: left;
}

.d25-sd-titleRow{
  margin:0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.d25-sd-title{
  margin: 0;
  font-size: 3.6rem;
}

.d25-sd-brief{
  font-size: 1.5rem;
  max-width: 80ch;
  font-weight: 600;

}

.d25-sd-addr{
  font-size: 1.2rem;
  max-width: 40ch;
}

/* Actions */
.d25-sd-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
}

.d25-sd-btn{
  padding: 12px 24px;
  border: var(--b1) solid var(--grey-02);
  border-radius: 999px;
  background: var(--surface);
  color: var(--grey-08);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.d25-sd-btnPrimary{
  background: var(--logo-green);
  border: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 16px 32px;


}

.d25-sd-btn[disabled],
.d25-sd-btn[aria-disabled="true"]{
  opacity: .55;
  cursor: not-allowed;

}

.d25-sd-link{
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  border-radius: 12px;
  color: var(--grey-08);
  font: inherit;
}

@media (hover:hover){
  .d25-sd-link:hover{
    background: var(--surface);
  }
}

/* ==========================================================
   TABS
   ========================================================== */

.d25-sd-tabs{
  margin: 18px auto 0;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-bottom: var(--b1) solid var(--grey-02);
}

.d25-sd-tab{
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  color: var(--grey-06);
  font: inherit;
}

.d25-sd-tab.is-active{
  border-color: var(--grey-10);
  color: var(--grey-10);
}

/* ==========================================================
   BODY
   ========================================================== */

.d25-sd-body{
  margin: 22px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.d25-sd-right{
  position: sticky;
  top: 14px;
  align-self: start;
}

@media (max-width: 980px){
  .d25-sd-body{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .d25-sd-right{
    position: static;
  }

  .d25-sd-headInner{
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .d25-sd-meta{
    max-width: 100%;
  }

  .d25-sd-avatar{
    width: 200px;
  }
}

/* ==========================================================
   CARDS
   ========================================================== */

.d25-sd-card{
  border: var(--b1) solid var(--grey-02);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.d25-sd-card + .d25-sd-card{
  margin-top: 18px;
}

.d25-sd-cardHead{
  padding: 12px 16px;
  background: var(--grey-01);
  border-bottom: var(--b1) solid var(--grey-02);
}

.d25-sd-cardHead .t{
  font-weight: 600;
  color: var(--grey-10);
}

.d25-sd-cardBody{
  padding: 16px;
}

.d25-sd-text{
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey-08);
}

.d25-sd-muted{
  color: var(--grey-07);
}

/* ==========================================================
   PHOTOS STRIP
   ========================================================== */

.d25-gstrip-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.d25-gstrip-cta{
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--grey-06);
}

.d25-gstrip{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 980px){
  .d25-gstrip{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px){
  .d25-gstrip{
    grid-template-columns: repeat(2, 1fr);
  }
}

.d25-gstrip-it{
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--grey-01);
  border: var(--b1) solid var(--grey-02);
  padding: 0;
  cursor: pointer;
}

.d25-gstrip-it img{
  width: 100%;
  height: 120px;
  display: block;
  object-fit: cover;
}


/* ==========================================================
   Reviews: Star rating UI (RadioSelect -> stars)
   Works with Django RadioSelect markup (ul > li > input + label)
   ========================================================== */

.d25-reviewRating .d25-starPick,
.d25-reviewRating ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Make the stars row and reverse using RTL so checked ~ label works */
.d25-reviewRating .d25-starPick,
.d25-reviewRating ul.d25-starPick {
  display: inline-flex;
  gap: 8px;
  direction: rtl;
  unicode-bidi: bidi-override;
  align-items: center;
}

/* Each option */
.d25-reviewRating li {
  margin: 0;
  padding: 0;
  display: inline-flex;
}

/* Hide the radios */
.d25-reviewRating input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Star label */
.d25-reviewRating label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--grey-05);
  line-height: 1;
  user-select: none;
  transition: transform .12s ease, color .12s ease, background-color .12s ease;
}

/* Use a star glyph */
.d25-reviewRating label::before {
  content: "★";
  font-size: 20px;
}

/* Hover: fill current and all “lower” stars (thanks to RTL + sibling selector) */
.d25-reviewRating label:hover,
.d25-reviewRating label:hover ~ label {
  color: var(--logo-green);
}

/* Checked: fill selected and all lower stars */
.d25-reviewRating input[type="radio"]:checked ~ label {
  color: var(--logo-green);
}

/* Focus ring for keyboard */
.d25-reviewRating input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--grey-04);
  outline-offset: 3px;
}

/* Optional: tiny hover lift */
.d25-reviewRating label:hover {
  transform: translateY(-1px);
}


/* ==========================================
   Facilities list
========================================== */

.d25-facilityListDisplay{
  margin:0;
  padding-left:18px;
  list-style:disc;
}

.d25-facilityListDisplay li{
  margin:4px 0;
  line-height:1.4;
  color:var(--grey-08);
}