/* ============================================================
   show-details.css
   Version: 1.0 | Date: 17-06-2026
   ============================================================ */

/* ============================================================
   PRIORITY BARS
   ============================================================ */
.detail-p5-bar { height: 4px; background: var(--ac); }
.detail-p4-bar { height: 4px; background: #f5d76e; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.detail-breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.82rem;
    color: var(--mu);
    border-bottom: 1px solid var(--bd);
    margin-bottom: 0;
}

.detail-breadcrumb a { color: var(--pr); text-decoration: none; }
.detail-breadcrumb a:hover { text-decoration: underline; }
.detail-breadcrumb .sep { margin: 0 0.4rem; color: var(--bd); }

/* ============================================================
   HEADER / HERO
   ============================================================ */
.detail-header {
    background: var(--wh);
    border-bottom: 1px solid var(--bd);
    margin-bottom: 1.5rem;
}

.detail-header-inner {
    display: flex;
    align-items: stretch;
    min-height: 160px;
}

.detail-header-accent {
    width: 5px;
    flex-shrink: 0;
    background: var(--ac);
}

.detail-header-details {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-header-section {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mu);
    margin-bottom: 0.5rem;
}

.detail-header-section a,
.detail-header-meta a {
    color: var(--mu);
    text-decoration: underline;
    text-decoration-color: var(--bd);
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.detail-header-section a:hover,
.detail-header-meta a:hover {
    color: var(--ac);
    text-decoration-color: var(--ac);
}

.detail-header-section i { color: var(--ac); }

.detail-header-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.detail-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 4px 11px;
    border-radius: 999px;
}

.detail-header-badge-cat      { background: var(--pr-l); color: var(--pr); }
.detail-header-badge-featured { background: var(--ac);   color: #fff; }
.detail-header-badge-free     { background: #d5f0e0;     color: #1a6b3a; }

.detail-header-meta {
    font-size: 0.87rem;
    color: var(--mu);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.3rem;
}

.detail-header-meta:last-child { margin-bottom: 0; }
.detail-header-meta i { color: var(--pr); width: 14px; text-align: center; }

.detail-header-img {
    flex-shrink: 0;
    width: 220px;
    background: var(--pr-l);
    border-left: 1px solid var(--bd);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-header-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.detail-header-img-placeholder {
    font-size: 3rem;
    color: var(--pr);
    opacity: 0.5;
}

@media (max-width: 767px) {
    .detail-header-inner  { flex-direction: column; }
    .detail-header-accent { width: 100%; height: 4px; }
    .detail-header-img {
        width: 100%;
        height: 160px;
        border-left: none;
        border-top: 1px solid var(--bd);
    }
    .detail-header-details { padding: 1rem; }
}

/* ============================================================
   BACK LINK
   ============================================================ */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pr);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: gap 0.15s;
}

.detail-back:hover { gap: 0.75rem; color: var(--pr); }

/* ============================================================
   CONTENT CARDS
   ============================================================ */
.detail-card {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.detail-card h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pr);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ac);
    display: inline-block;
}

/* ============================================================
   DETAIL ROWS
   ============================================================ */
.detail-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}

.detail-row:last-child { margin-bottom: 0; }

.detail-icon {
    width: 20px;
    text-align: center;
    color: var(--pr);
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-label {
    font-weight: 600;
    color: var(--tx);
    margin-bottom: 2px;
    font-size: 0.8rem;
}

.detail-value { color: var(--mu); }

.detail-value a {
    color: var(--pr);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
    color: var(--ac);
}

/* ============================================================
   MAP
   ============================================================ */
.detail-map-placeholder {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: 8px;
    height: 160px;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--mu);
    font-size: 0.85rem;
    gap: 0.5rem;
}

.detail-map-placeholder i {
    font-size: 2rem;
    color: var(--pr);
    opacity: 0.4;
}

.detail-map-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: 8px;
    text-decoration: none;
    color: var(--tx);
    font-size: 0.88rem;
    transition: all 0.15s;
    margin-top: 0.5rem;
}

.detail-map-link:hover {
    border-color: var(--pr);
    color: var(--pr);
    background: var(--pr-l);
}

.detail-map-link i { color: var(--pr); font-size: 1rem; }

/* Leaflet map container — ID set per page */
[id$="-leaflet-map"] {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: 1px solid var(--bd);
    margin-bottom: 0.5rem;
    z-index: 1;
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.detail-share {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.detail-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}

.detail-share-fb  { background: #1877f2; color: #fff; }
.detail-share-fb:hover  { background: #1558b0; color: #fff; }
.detail-share-wa  { background: #25d366; color: #fff; }
.detail-share-wa:hover  { background: #1da851; color: #fff; }
.detail-share-copy {
    background: var(--bg);
    color: var(--tx);
    border: 1px solid var(--bd);
}
.detail-share-copy:hover {
    background: var(--pr-l);
    border-color: var(--pr);
    color: var(--pr);
}

/* ============================================================
   CLAIM / SUGGEST
   ============================================================ */
.detail-claim,
.detail-suggest {
    text-align: center;
    padding: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--mu);
    border-top: 1px solid var(--bd);
    margin-top: 1rem;
}

.detail-claim a,
.detail-suggest a { color: var(--pr); }

.detail-claim a:hover,
.detail-suggest a:hover { color: var(--ac); }

/* ============================================================
   RELATED LISTINGS
   ============================================================ */
.detail-related { margin-top: 2.5rem; }

.detail-related-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mu);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ac);
    display: inline-block;
}

.detail-rel-card {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.15s;
    height: 100%;
}

.detail-rel-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); }
.detail-rel-card a { text-decoration: none; color: inherit; }

.detail-rel-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--bg);
}

.detail-rel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.detail-rel-card:hover .detail-rel-img img { transform: scale(1.04); }

.detail-rel-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #1a3a5c, #2471a3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 2.5rem;
}

.detail-rel-body { padding: 1rem; }

.detail-rel-type {
    font-size: 0.73rem;
    color: var(--ac);
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.detail-rel-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tx);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.detail-rel-address {
    font-size: 0.78rem;
    color: var(--mu);
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.detail-disclaimer {
    font-size: 0.78rem;
    color: var(--mu);
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bd);
    font-style: italic;
}

/* ============================================================
   TOAST
   ============================================================ */
.detail-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #212529;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 9999;
}

.detail-toast.show { opacity: 1; }
