/* ============================================================
   pahang.co — Listing detail (mobile-first)
   Shared .chip / .hscroll / .pcard live in main.css
   ============================================================ */

/* display/position/box-shadow reset the generic `nav` rule from main.css */
.ld-crumb { display: block; position: static; box-shadow: none; background: #fff; border-bottom: 1px solid var(--border); padding: 10px 16px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.ld-crumb::-webkit-scrollbar { display: none; }
.ld-crumb a { color: var(--muted); text-decoration: none; }
.ld-crumb a:hover { color: var(--blue); }
.ld-crumb span { margin: 0 6px; }
.ld-crumb strong { color: var(--charcoal); font-weight: 500; }

.ld-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 32px; }
.ld-grid { display: block; }
.ld-ad { padding: 8px 0; }

/* Hero image */
.ld-hero {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-card);
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--sky));
    margin-top: 8px;
}
.ld-hero.type-food { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.ld-hero.type-stay { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.ld-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-hero-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 72px; }
.ld-hero-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.ld-badge { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.ld-badge.is-premium  { background: var(--navy); color: #fff; }
.ld-badge.is-verified { background: #0d9488; color: #fff; }
.ld-badge.is-featured { background: var(--accent); color: #1f1300; }
.ld-rating { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fbbf24; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }

/* Title block */
.ld-title { padding: 16px 0 12px; }
.ld-kicker { font-size: 12px; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.ld-kicker a { color: inherit; text-decoration: none; }
.ld-title h1 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.ld-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ld-tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--pale); color: var(--navy); }
.ld-tag.is-ok   { background: #dcfce7; color: #15803d; }
.ld-tag.is-info { background: #dbeafe; color: #1d4ed8; }
.ld-tag.is-warn { background: #fef3c7; color: #b45309; }
.ld-tag.is-bad  { background: #fee2e2; color: #b91c1c; }

/* Action row */
.ld-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.ld-action {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--border);
    background: #fff; color: var(--navy);
    font: 600 12px 'DM Sans', sans-serif; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.ld-action span { font-size: 20px; line-height: 1; }
.ld-action:hover { border-color: var(--blue); background: var(--pale); }
.ld-action.is-wa { background: #25d366; border-color: #25d366; color: #fff; }
.ld-action.is-wa:hover { background: #1ebe5a; }

/* Cards */
.ld-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-card); }
.ld-card.is-flush { padding: 0; overflow: hidden; }
.ld-card h2 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.ld-card.is-flush h2 { padding: 14px 16px 0; }
.ld-prose { font-size: 14px; color: var(--charcoal); line-height: 1.75; }
.ld-prose.is-pre { white-space: pre-line; }
.ld-more { font-size: 13px; color: var(--muted); margin-top: 8px; }
.ld-more a { color: var(--blue); font-weight: 600; text-decoration: none; }

/* Details list */
.ld-rows { display: flex; flex-direction: column; }
.ld-row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #f1f5f9; font-size: 14px; }
.ld-row:first-child { border-top: 0; padding-top: 0; }
.ld-row-label { flex: 0 0 110px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; padding-top: 2px; }
.ld-row-val { flex: 1; min-width: 0; color: var(--charcoal); line-height: 1.5; word-break: break-word; }
.ld-row-val a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* Promo */
.ld-promo { background: #fffbeb; border: 1.5px solid #fde68a; }
.ld-promo-tag { display: inline-block; background: #d97706; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.ld-promo h2 { color: #92400e; margin-bottom: 4px; }
.ld-promo .ld-prose { color: #78350f; }

/* Gallery */
.ld-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ld-gallery button { border: 0; padding: 0; background: #eef3fb; border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.ld-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Map */
.ld-map iframe { width: 100%; height: 240px; border: 0; display: block; }
.ld-map-empty { height: 160px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }

/* FAQ */
.ld-faq details { border-top: 1px solid #f1f5f9; padding: 10px 0; }
.ld-faq details:first-of-type { border-top: 0; }
.ld-faq summary { font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.ld-faq details[open] summary::after { content: '–'; }
.ld-faq p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 8px; }

/* Stats */
.ld-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.ld-stat b { display: block; font-family: 'Playfair Display', serif; font-size: 22px; color: var(--navy); }
.ld-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* Owner / claim / upsell notices */
.ld-note { border-radius: var(--r-card); padding: 14px 16px; margin-bottom: 12px; }
.ld-note h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.ld-note p { font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.ld-note-actions { display: flex; gap: 8px; }
.ld-note-actions a { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; }
.ld-note.is-owner { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.ld-note.is-owner h3 { color: #15803d; }
.ld-note.is-claim { background: #fffbeb; border: 1.5px solid #fde68a; color: #78350f; }
.ld-note.is-claim h3 { color: #92400e; }
.ld-note.is-upsell { background: var(--navy); color: rgba(255,255,255,.75); }
.ld-note.is-upsell h3 { color: #fff; }
.ld-note.is-verified { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; font-size: 13px; font-weight: 600; text-align: center; }
.btn-green { background: #16a34a; color: #fff; }
.btn-gold  { background: #ca8a04; color: #fff; }
.btn-blue  { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }

/* Social */
.ld-social { display: flex; gap: 6px; margin-top: 10px; }
.ld-social a { flex: 1; text-align: center; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; }
.ld-social .fb { background: #1877f2; }
.ld-social .ig { background: linear-gradient(135deg, #833ab4, #fd1d1d); }
.ld-social .tt { background: #010101; }

/* Related */
.ld-related { margin-top: 20px; }
.ld-related h2 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }

/* Sidebar (desktop only) */
.ld-side { display: none; }
.ld-side-cta { display: flex; flex-direction: column; gap: 8px; }
.ld-side-cta a, .ld-side-cta button {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 10px; border: 1.5px solid var(--border);
    background: #fff; color: var(--navy); font: 600 14px 'DM Sans', sans-serif;
    text-decoration: none; cursor: pointer;
}
.ld-side-cta .is-wa { background: #25d366; border-color: #25d366; color: #fff; font-weight: 700; }
.ld-side-cta .is-map { background: var(--blue); border-color: var(--blue); color: #fff; }
.ld-side-ad { margin-bottom: 12px; }

/* Lightbox */
.ld-lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.92); align-items: center; justify-content: center; }
.ld-lightbox.is-open { display: flex; }
.ld-lightbox img { max-width: 92%; max-height: 90vh; border-radius: 8px; object-fit: contain; }

/* Sticky CTA (mobile, premium) — sits above the bottom nav */
.ld-sticky {
    display: none; position: fixed; left: 0; right: 0; z-index: 190;
    bottom: calc(56px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--border);
    padding: 8px 12px; box-shadow: 0 -4px 16px rgba(13,43,94,.08);
}
.ld-sticky.is-visible { display: block; }
.ld-sticky-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; max-width: 480px; margin: 0 auto; }
.ld-sticky-row a, .ld-sticky-row button {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 6px; border-radius: 10px; border: 1.5px solid var(--border);
    background: #fff; color: var(--navy); font: 600 13px 'DM Sans', sans-serif; text-decoration: none; cursor: pointer;
}
.ld-sticky-row .is-wa { background: #25d366; border-color: #25d366; color: #fff; font-weight: 700; }

/* ── DESKTOP ── */
@media (min-width: 860px) {
    .ld-crumb { padding: 12px 24px; white-space: normal; }
    .ld-wrap { padding: 0 24px 56px; }
    .ld-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
    .ld-hero { aspect-ratio: 16 / 9; margin-top: 12px; }
    .ld-title h1 { font-size: 32px; }
    .ld-actions { display: none; }
    .ld-side { display: block; position: sticky; top: 80px; }
    .ld-mobile-only { display: none; }
    .ld-related .pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .ld-related .pgrid .pcard { width: auto; }
    .ld-sticky { display: none !important; }
}
@media (min-width: 1100px) {
    .ld-related .pgrid { grid-template-columns: repeat(4, 1fr); }
}
