/* ── What's nearby: card + tile grid ───────────────────────────────
   The theme lays each item out as one flex row (icon, label, value),
   which cramps and wraps badly once the values are long descriptive
   text like "Kailash Hospital Greater Noida - 22 km".
   Below turns the block into a card and each item into its own tile,
   with the category stacked above the value so nothing collides.     */

.single-property-nearby,
.single-property-desc,
.single-property-feature {
    background: #fff;
    border: 1px solid #e8eaee;
    border-radius: 20px;
    padding: 28px 30px 30px;
}

.single-property-nearby > .title,
.single-property-desc > .title,
.single-property-feature > .title {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 10px;
    color: #161e2d;
}

/* short brand-red rule under the heading */
.single-property-nearby > .title::after,
.single-property-desc > .title::after,
.single-property-feature > .title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: #db1d23;
}

.single-property-nearby > p {
    color: #6b7280;
    margin-bottom: 22px;
}

/* the tile grid — beats the theme's .grid-3 */
.single-property-nearby .box-nearby {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 0;
    padding: 0;
    list-style: none;
}

.single-property-nearby .box-nearby .item-nearby {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: #f6f7f9;
    border: 1px solid #eceef2;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.single-property-nearby .box-nearby .item-nearby:hover {
    background: #fdf3f3;
    border-color: #f3c9cb;
    transform: translateY(-2px);
}

/* category line: icon + name, small and muted */
.single-property-nearby .item-nearby .label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #6b7280;
}

.single-property-nearby .item-nearby .label svg,
.single-property-nearby .item-nearby .label i {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #db1d23;
}

/* the value itself */
.single-property-nearby .item-nearby .fw-7 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: #161e2d;
    word-break: break-word;
}

@media (max-width: 767px) {
    .single-property-nearby {
        padding: 22px 20px 24px;
    }

    .single-property-nearby .box-nearby,
    .single-property-nearby .grid-3 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ── Listing badges + call-to-action buttons ───────────────────────
   Rendered by views/real-estate/partials/listing-extras.blade.php    */

.listing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.listing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e3e6ec;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #161e2d;
    line-height: 1.3;
}

.listing-badge svg,
.listing-badge i {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #db1d23;
    flex: 0 0 auto;
}

.listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.listing-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 160px;
    padding: 14px 26px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease, background-color .18s ease;
}

.listing-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    text-decoration: none;
}

.listing-action svg,
.listing-action i {
    width: 19px;
    height: 19px;
    font-size: 19px;
    flex: 0 0 auto;
}

.listing-action--call {
    background: #161e2d;
    color: #fff;
}

.listing-action--whatsapp {
    background: #25d366;
    color: #fff;
}

.listing-action--enquiry {
    background: #fff;
    border-color: #161e2d;
    color: #161e2d;
}

.listing-action--enquiry:hover {
    background: #161e2d;
    color: #fff;
}

.listing-action--call:hover,
.listing-action--whatsapp:hover {
    color: #fff;
}

@media (max-width: 575px) {
    .listing-action {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* ── Listing description: editorial rhythm ────────────────────────
   Pasted copy arrives as plain h3/h4/p/ul with no styling of its own
   (PastedHtmlCleaner strips the source site's CSS), so the spacing is
   set here once and every listing inherits it.                      */

.single-property-desc .h7 + *,
.single-property-desc > :first-child {
    margin-top: 0;
}

.single-property-desc h3,
.single-property-desc h4,
.single-property-desc h5 {
    color: #161e2d;
    line-height: 1.35;
    margin: 30px 0 12px;
}

.single-property-desc h3 {
    font-size: 22px;
}

.single-property-desc h4 {
    font-size: 18px;
}

/* headings already carry their own weight — no need for inner <strong> */
.single-property-desc h3 strong,
.single-property-desc h4 strong,
.single-property-desc h5 strong {
    font-weight: inherit;
}

.single-property-desc p {
    margin: 0 0 14px;
    line-height: 1.75;
    color: #4b5563;
}

.single-property-desc ul,
.single-property-desc ol {
    margin: 0 0 16px;
    padding-inline-start: 22px;
}

.single-property-desc ul {
    list-style: disc;
}

.single-property-desc ol {
    list-style: decimal;
}

.single-property-desc li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #4b5563;
}

.single-property-desc li::marker {
    color: #db1d23;
}

.single-property-desc li strong {
    color: #161e2d;
}

.single-property-desc p:last-child,
.single-property-desc ul:last-child,
.single-property-desc ol:last-child {
    margin-bottom: 0;
}

/* ── Address under the listing title ──────────────────────────────
   Moved out of the meta row so it reads as part of the heading block. */

.header-property-detail .box-name .listing-address {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.4;
    color: #6b7280;
}

.header-property-detail .box-name .listing-address svg,
.header-property-detail .box-name .listing-address i {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #db1d23;
    flex: 0 0 auto;
}

/* the meta row can now be empty — don't let it leave a gap */
.header-property-detail .content-bottom .meta:empty {
    display: none;
}

/* ── Amenities: tiles matching the What's nearby grid ─────────────── */

.single-property-feature .box-feature ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-property-feature .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    background: #f6f7f9;
    border: 1px solid #eceef2;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #161e2d;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.single-property-feature .feature-item:hover {
    background: #fdf3f3;
    border-color: #f3c9cb;
    transform: translateY(-2px);
}

.single-property-feature .feature-item svg,
.single-property-feature .feature-item i,
.single-property-feature .feature-item .icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #db1d23;
    flex: 0 0 auto;
}

/* the sections sit in one column — even them out */
.single-property-desc,
.single-property-feature,
.single-property-nearby {
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .single-property-desc,
    .single-property-feature,
    .single-property-nearby {
        padding: 22px 20px 24px;
    }

    .single-property-feature .box-feature ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ── Enquiry form, expert card, share buttons ─────────────────────── */

.single-property-contact .enquiry-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    color: #161e2d;
}

.single-property-contact .enquiry-heading svg,
.single-property-contact .enquiry-heading i {
    width: 22px;
    height: 22px;
    font-size: 22px;
    color: #db1d23;
    flex: 0 0 auto;
}

.single-property-contact .enquiry-subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

/* "OR" rule between Send Message and WhatsApp */
.single-property-contact .enquiry-or {
    position: relative;
    margin: 20px 0 16px;
    text-align: center;
}

.single-property-contact .enquiry-or::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 1px;
    background: #e3e6ec;
}

.single-property-contact .enquiry-or span {
    position: relative;
    padding: 0 14px;
    background: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #9ca3af;
}

.single-property-contact .enquiry-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    background: #25d366;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease;
}

.single-property-contact .enquiry-whatsapp-btn:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-2px);
    text-decoration: none;
}

.single-property-contact .enquiry-whatsapp-btn svg,
.single-property-contact .enquiry-whatsapp-btn i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    flex: 0 0 auto;
}

/* expert card */
.listing-expert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8eaee;
    border-radius: 20px;
}

.listing-expert-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    background: #161e2d;
    color: #fff;
}

.listing-expert-avatar svg,
.listing-expert-avatar i {
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.listing-expert-name {
    font-size: 16px;
    font-weight: 700;
    color: #161e2d;
    line-height: 1.3;
}

.listing-expert-role {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #db1d23;
}

.listing-expert-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    font-size: 15px;
    font-weight: 700;
    color: #161e2d;
    text-decoration: none;
}

.listing-expert-phone:hover {
    color: #db1d23;
}

.listing-expert-phone svg,
.listing-expert-phone i {
    width: 17px;
    height: 17px;
    font-size: 17px;
    color: #db1d23;
    flex: 0 0 auto;
}

/* share */
.listing-share {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8eaee;
    border-radius: 20px;
}

.listing-share-title {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6b7280;
}

.listing-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.listing-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, filter .18s ease;
}

.listing-share-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.listing-share-btn svg,
.listing-share-btn i {
    width: 21px;
    height: 21px;
    font-size: 21px;
}

.listing-share-btn--whatsapp { background: #25d366; }
.listing-share-btn--facebook { background: #1877f2; }
.listing-share-btn--twitter  { background: #161e2d; }
.listing-share-btn--copy     { background: #9ca3af; }

.listing-share-btn--copy.is-copied {
    background: #16a34a;
}

/* ── Calculator page (page template: mortgage-calculator) ─────────── */

.calculator-page {
    padding: 40px 0 60px;
}

.calculator-page-main {
    background: #fff;
    border: 1px solid #e8eaee;
    border-radius: 20px;
    padding: 28px 30px 30px;
}

.calculator-page-main > .ck-content > :first-child {
    margin-top: 0;
}

.calculator-page .wrapper-sidebar-right {
    position: sticky;
    top: 24px;
}

@media (max-width: 991px) {
    .calculator-page .wrapper-sidebar-right {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 767px) {
    .calculator-page-main {
        padding: 22px 18px 24px;
    }
}
