:root, .listing-profile-page { --ld-ink:#0B1220; --ld-muted:#64748b; --ld-line:#e2e8f0; --ld-bg:#f8fafc; --ld-brand:#1a56db; --ld-gold:#e8a60b; }

.ld-cover {
    position:relative;
    height:260px;
    background-size:cover;
    background-position:center;
    background-color:var(--ld-ink);
    overflow:hidden;
}
.ld-cover::before {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,rgba(11,18,32,.94),rgba(23,37,72,.78) 55%,rgba(11,18,32,.9));
}
.ld-container { max-width:1240px; margin:0 auto; padding:0 24px; }

.ld-profile-card {
    position:relative;
    z-index:2;
    margin-top:-118px;
    padding:30px 32px;
    background:#fff;
    border:1px solid var(--ld-line);
    border-radius:20px;
    box-shadow:0 20px 50px -28px rgba(11,18,32,.35);
}
/* Modals are rendered inside this card. Remove its stacking context while a
   Bootstrap modal is open so the backdrop cannot cover the dialog. */
body.modal-open .ld-profile-card {
    z-index:auto;
}
.ld-profile-card.ld-featured {
    border-color:rgba(232,166,11,.7);
    background:linear-gradient(135deg,#fffbeb 0%,#fff 42%);
    box-shadow:0 0 0 1px rgba(232,166,11,.35), 0 22px 50px -26px rgba(232,166,11,.5);
}
.ld-featured-flag {
    position:absolute;
    top:0;
    right:30px;
    padding:7px 14px;
    border-radius:0 0 10px 10px;
    background:var(--ld-gold);
    color:#3d2c00;
    font-size:.7rem;
    font-weight:800;
    letter-spacing:.09em;
    text-transform:uppercase;
}

.ld-profile-top { display:flex; align-items:flex-end; gap:24px; }
.ld-logo {
    flex:0 0 128px;
    width:128px;
    height:128px;
    margin-top:-82px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:4px solid #fff;
    border-radius:18px;
    background:linear-gradient(135deg,#0B1220,#22325A);
    color:#fff;
    font-size:2.3rem;
    font-weight:800;
    box-shadow:0 8px 20px -12px rgba(11,18,32,.4);
}
.ld-logo img { width:100%; height:100%; object-fit:cover; }
.ld-profile-main { flex:1; min-width:0; }
.ld-badges { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:8px; }
.ld-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:999px; font-size:.7rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.ld-badge-verified { background:#eff6ff; color:#1d4ed8; }
.ld-badge-featured { background:#fef3c7; color:#92400e; }
.ld-badge-sponsored { background:#fef3c7; color:#92400e; }
.ld-title { margin:0; color:var(--ld-ink); font-size:2.65rem; line-height:1.1; font-weight:800; letter-spacing:-.035em; }
.ld-subtitle { margin:7px 0 0; color:#475569; font-size:1rem; font-weight:600; }
.ld-meta { display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:12px; color:var(--ld-muted); font-size:.9rem; }
.ld-meta a { color:#475569; font-weight:600; text-decoration:none; }
.ld-meta a:hover { color:var(--ld-brand); text-decoration:underline; }
.ld-meta i { margin-right:4px; color:#94a3b8; }

.ld-tagline { max-width:850px; margin:22px 0 0; color:#334155; font-size:1.05rem; line-height:1.6; }
.ld-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.ld-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border:1px solid var(--ld-line); border-radius:999px; background:#fff; color:#334155; font-size:.8rem; font-weight:600; text-decoration:none; }
.ld-chip a { color:inherit; text-decoration:none; }
.ld-chip-primary { border-color:#bfdbfe; background:#eff6ff; color:#1e40af; }
.ld-chip-gold { border-color:#fde68a; background:#fffbeb; color:#92400e; }

.ld-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:22px; padding-top:18px; border-top:1px solid var(--ld-line); }
.ld-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:9px 15px; border:1px solid var(--ld-line); border-radius:10px; background:#fff; color:#334155; font-size:.84rem; font-weight:700; text-decoration:none; cursor:pointer; }
.ld-btn:hover { background:#f8fafc; color:var(--ld-ink); text-decoration:none; }
.ld-btn-primary { background:var(--ld-ink); border-color:var(--ld-ink); color:#fff; }
.ld-btn-primary:hover { background:#1d2b4d; color:#fff; }
.ld-btn-gold { background:var(--ld-gold); border-color:var(--ld-gold); color:#3d2c00; }
.ld-btn-gold:hover { background:#d99506; color:#3d2c00; }
.ld-btn-sm { min-height:34px; padding:6px 10px; font-size:.76rem; }
.ld-actions > form { display:inline-flex; margin:0; }
.ld-social { display:flex; align-items:center; gap:6px; margin-left:auto; }
.ld-social a { width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--ld-line); border-radius:9px; color:#475569; background:#fff; }
.ld-social a:hover { background:var(--ld-ink); border-color:var(--ld-ink); color:#fff; }

.ld-layout-row { align-items:start; margin-top:26px; }
.listing-profile-page .listing-page > h2 {
    margin:0;
    padding:17px 22px;
    border:1px solid var(--ld-line);
    border-bottom:0;
    border-radius:14px 14px 0 0;
    background:#fff;
    color:var(--ld-ink);
    font-size:1.25rem;
    font-weight:800;
    letter-spacing:-.02em;
}
.listing-profile-page .listing-page > h2:not(:first-child) { margin-top:18px; }
.listing-profile-page .listing-page > h2 i { margin-right:7px; color:var(--ld-brand); font-size:.9em; }
.listing-profile-page .listing-page > h2 + * {
    margin:0 0 18px;
    padding:22px;
    border:1px solid var(--ld-line);
    border-top:0;
    border-radius:0 0 14px 14px;
    background:#fff;
}
.listing-profile-page .listing-page .sep { display:none; }
.listing-profile-page .description-content { color:#334155; line-height:1.7; }
.listing-profile-page .description-content p:last-child { margin-bottom:0; }
.listing-profile-page .amenities ul { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:8px 20px; margin:0; padding:0; list-style:none; }
.listing-profile-page .amenities li { color:#334155; font-size:.9rem; }
.listing-profile-page .amenities li i { margin-right:7px; color:#16a34a; }
.listing-profile-page .reviews .item { padding:16px 0; border-bottom:1px solid var(--ld-line); }
.listing-profile-page .reviews .item:last-child { border-bottom:0; }
.listing-profile-page .review-overall { display:flex; align-items:center; gap:12px; }
.listing-profile-page .review-overall .total { color:var(--ld-muted); font-size:.9rem; }

.listing-profile-page .listing-sidebar { position:sticky; top:20px; display:flex; flex-direction:column; gap:18px; }
.listing-profile-page .listing-sidebar .ls-widget {
    padding:20px;
    border:1px solid var(--ld-line);
    border-radius:14px;
    background:#fff;
    box-shadow:0 10px 24px -20px rgba(11,18,32,.35);
}
.listing-profile-page .listing-sidebar .ls-widget h2,
.listing-profile-page .listing-sidebar .ls-widget h3 {
    margin:0 0 14px;
    color:var(--ld-ink);
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
}
.listing-profile-page .listing-sidebar .ls-widget .agent-contact ul,
.listing-profile-page .listing-sidebar .ls-widget .agent-social ul { margin:12px 0 0; padding:0; list-style:none; }
.listing-profile-page .listing-sidebar .ls-widget .agent-contact li { display:flex; align-items:flex-start; gap:8px; margin-bottom:8px; color:#475569; font-size:.86rem; }
.listing-profile-page .listing-sidebar .ls-widget .agent-social ul { display:flex; gap:7px; }
.listing-profile-page .listing-sidebar .ls-widget .agent-social a { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--ld-line); border-radius:8px; color:#475569; }
.listing-profile-page .listing-sidebar .ls-widget .agent-view-profile { background:var(--ld-ink); border:0; }
.listing-profile-page .listing-sidebar .card-header { padding:0 0 12px; background:#fff; }
.listing-profile-page .listing-sidebar .card-body { padding:0; }

.ld-similar .heading h2 { margin:0 0 14px; color:var(--ld-ink); font-size:1.35rem; font-weight:800; }
.ld-similar .listing-item { height:100%; border:1px solid var(--ld-line); border-radius:14px; overflow:hidden; background:#fff; transition:transform .2s, box-shadow .2s; }
.ld-similar .listing-item:hover { transform:translateY(-2px); box-shadow:0 14px 28px -20px rgba(11,18,32,.4); }
.ld-similar .listing-item .photo img { height:150px; object-fit:cover; }
.ld-similar .listing-item .text { padding:14px; }
.ld-similar .listing-item .text h3 { margin:0; font-size:1rem; font-weight:700; }
.ld-similar .listing-item .text h3 a { color:var(--ld-ink); text-decoration:none; }

@media (max-width:991px) {
    .ld-profile-top { align-items:flex-start; }
    .ld-layout-row > div[class*="col-lg-4"] { margin-top:18px; }
    .listing-profile-page .listing-sidebar { position:static; }
}

@media (max-width:767px) {
    .ld-cover { height:190px; }
    .ld-container { padding:0 16px; }
    .ld-profile-card { margin-top:-72px; padding:22px 18px; }
    .ld-profile-top { flex-direction:column; gap:14px; }
    .ld-logo { width:92px; height:92px; flex-basis:92px; margin-top:-58px; font-size:1.7rem; }
    .ld-title { font-size:2rem; }
    .ld-social { margin-left:0; width:100%; }
    .ld-actions .ld-btn { flex:1 1 auto; }
    .listing-profile-page .listing-page > h2 { padding:15px 16px; }
    .listing-profile-page .listing-page > h2 + * { padding:16px; }
}
