/* ============================================================
   Mahodadhi Homes — visible glass buttons + project-detail text fix
   Load LAST (after water-glass.css / seo-pages.css).
   ============================================================ */

/* ---------- A. Project detail: text was cut off ----------
   .detail-block became a glass card (border + overflow:hidden) but had
   no padding, so headings/text touched and were clipped by the edge. */
.detail-block {
  padding: 30px 32px;
  overflow: visible;
  margin-bottom: 28px;
}
.detail-block:last-child { margin-bottom: 0; }
.detail-block h2 { line-height: 1.25; margin: 0 0 18px; padding-top: 2px; }
.detail-block p { margin: 0 0 14px; overflow-wrap: anywhere; }
.detail-block p:last-child { margin-bottom: 0; }

.detail-spec-item { min-width: 0; padding: 16px 18px; }
.detail-spec-item > div { min-width: 0; }
.detail-spec-item .spec-label,
.detail-spec-item .spec-value { overflow-wrap: anywhere; line-height: 1.4; }
.detail-spec-item .spec-label { color: #5b554b; }

.detail-highlights { gap: 14px 18px; }
.detail-highlights li { line-height: 1.5; align-items: flex-start; }
.detail-highlights li i { margin-top: 5px; }

.detail-amenity-card { min-width: 0; padding: 16px 18px; }
.detail-amenity-card > div:last-child { min-width: 0; }
.detail-amenity-title, .detail-amenity-description { overflow-wrap: anywhere; }
.detail-amenity-title { line-height: 1.35; }

.detail-cta-card { padding: 28px; overflow: visible; }
.detail-contact-list li { align-items: flex-start; line-height: 1.5; }
.detail-contact-list li span, .detail-contact-list li a { min-width: 0; overflow-wrap: anywhere; }
.detail-back-link { margin-bottom: 20px; }

@media (max-width: 900px) {
  .detail-block { padding: 24px 22px; }
}
@media (max-width: 560px) {
  .detail-block { padding: 20px 16px; margin-bottom: 18px; }
  .detail-cta-card { padding: 22px 18px; }
}

/* ---------- B. Light glass buttons (clearly visible) ---------- */
.btn-details,
.btn-outline,
.hero-secondary,
.brochure-btn,
.mh-bar .mh-bar-call {
  position: relative;
  color: #6d3608 !important;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 999px !important;
  border: 1.5px solid rgba(178, 111, 45, .55) !important;
  background:
    radial-gradient(120% 100% at 12% -15%, rgba(255,255,255,.95), rgba(255,255,255,0) 58%),
    linear-gradient(165deg, rgba(255, 224, 178, .68), rgba(255, 255, 255, .40)) !important;
  -webkit-backdrop-filter: blur(14px) saturate(210%);
  backdrop-filter: blur(14px) saturate(210%);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.95),
    inset 0 -2px 6px rgba(178, 111, 45, .18),
    0 10px 22px -8px rgba(140, 80, 25, .42),
    0 2px 5px rgba(140, 80, 25, .15) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-details,
.brochure-btn { padding: 12px 28px; font-size: 14px; }

.btn-details:hover,
.btn-outline:hover,
.hero-secondary:hover,
.brochure-btn:hover {
  color: #4f2504 !important;
  border-color: rgba(178, 111, 45, .85) !important;
  transform: translateY(-2px);
  background:
    radial-gradient(120% 100% at 12% -15%, #fff, rgba(255,255,255,.1) 60%),
    linear-gradient(165deg, rgba(255, 210, 150, .85), rgba(255, 244, 225, .6)) !important;
  box-shadow:
    inset 0 1.5px 0 #fff,
    inset 0 -2px 6px rgba(178, 111, 45, .22),
    0 16px 30px -8px rgba(140, 80, 25, .5),
    0 3px 8px rgba(140, 80, 25, .2) !important;
}
.btn-details:active, .brochure-btn:active, .btn-outline:active { transform: translateY(0) scale(.98); }
.btn-details:focus-visible, .brochure-btn:focus-visible, .btn-outline:focus-visible {
  outline: 3px solid rgba(178, 111, 45, .5); outline-offset: 3px;
}

/* WhatsApp = green glass */
.brochure-btn[href*="wa.me"],
.mh-bar .mh-bar-wa {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 70, 30, .45);
  border: 1.5px solid rgba(255,255,255,.65) !important;
  background:
    radial-gradient(110% 90% at 14% -12%, rgba(255,255,255,.6), rgba(255,255,255,0) 58%),
    linear-gradient(165deg, rgba(52, 205, 105, .95), rgba(14, 140, 62, .96)) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.7),
    inset 0 -2px 6px rgba(0, 70, 30, .35),
    0 12px 24px -8px rgba(14, 120, 55, .6) !important;
}
.brochure-btn[href*="wa.me"]:hover {
  color: #fff !important;
  background:
    radial-gradient(110% 90% at 14% -12%, rgba(255,255,255,.7), rgba(255,255,255,0) 58%),
    linear-gradient(165deg, rgba(66, 220, 120, 1), rgba(18, 156, 70, 1)) !important;
}

/* ---------- C. Dark glass buttons: stronger edge + gloss ---------- */
.btn-primary, .hero-primary, .nav-phone, .mh-bar .mh-bar-visit {
  color: #fff !important;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.5) !important;
  background:
    radial-gradient(100% 80% at 16% -14%, rgba(255,255,255,.62), rgba(255,255,255,0) 58%),
    linear-gradient(180deg, rgba(84, 72, 58, .94), rgba(22, 19, 15, .97)) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.65),
    inset 0 -2px 6px rgba(0,0,0,.4),
    0 14px 26px -8px rgba(27, 25, 21, .55) !important;
}

/* ---------- D. Same treatment for the full-width .btn row buttons ---------- */
.detail-cta-actions .btn,
.detail-cta-actions .brochure-btn { width: 100%; min-height: 48px; justify-content: center; }

/* ---------- E. Mobile bottom bar (Call / WhatsApp / Visit) ---------- */
@media (max-width: 767px) {
  .mh-bar a {
    border-radius: 999px !important;
    min-height: 48px;
    font-weight: 700;
  }
  .mh-bar .mh-bar-call { padding: 0; }
}

/* ---------- F. Fallbacks ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn-details, .btn-outline, .hero-secondary, .brochure-btn, .mh-bar .mh-bar-call {
    background: linear-gradient(165deg, #ffe6bf, #fff7ea) !important;
  }
}

/* ---------- G. Card button row: no wrapping, icon beside text ---------- */
.btn-details,
.brochure-btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
}
.btn-details, .brochure-btn { padding: 12px 22px; font-size: 14px; }
.brochure-btn i, .btn-details i { flex: 0 0 auto; margin: 0; }

.project-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.project-actions .btn-details,
.project-actions .brochure-btn { flex: 1 1 auto; min-width: 0; }

@media (max-width: 767px) {
  .project-actions { flex-direction: column; }
  .project-actions .btn-details,
  .project-actions .brochure-btn { width: 100%; }
}
