/* Filename: single.css */

/* --- LAYOUT GRID --- */
.single-page-scope .pmn-grid { 
    display: grid; 
    grid-template-columns: 1fr 380px; 
    gap: 2rem; 
    margin-top: 2rem; 
    margin-bottom: 3rem; 
    align-items: start; 
}
@media (max-width: 992px) { 
    .single-page-scope .pmn-grid { grid-template-columns: 1fr; } 
    .pmn-header-wrapper .flex-header { flex-direction: column; } 
}

/* --- HEADER SECTION --- */
.pmn-badges { margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.pmn-category-badge { 
    background: #e0f2fe; color: #0284c7; font-size: 0.8rem; 
    font-weight: 700; text-transform: uppercase; padding: 4px 10px; 
    border-radius: 6px; letter-spacing: 0.5px; 
}
.page-title { 
    font-size: 2.2rem; font-weight: 800; color: var(--color-secondary); 
    margin: 0 0 10px 0; line-height: 1.2; 
}
.pmn-meta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pmn-rating-block { display: flex; align-items: center; gap: 6px; font-size: 1.1rem; color: #4b5563; }
.pmn-star-icon { color: var(--color-accent); }

/* --- TOOLS BAR --- */
.pmn-tools-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-tool { 
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; 
    background: white; border: 1px solid var(--color-border); border-radius: 8px; 
    color: var(--color-text-muted); font-weight: 600; cursor: pointer; transition: all 0.2s; 
}
.btn-tool:hover { 
    background: #f8fafc; color: var(--color-primary); 
    border-color: var(--color-primary); transform: translateY(-2px); 
}

/* --- CONTENT CARDS --- */
.pmn-section-card { 
    background: white; border: 1px solid var(--color-border); 
    border-radius: 12px; padding: 2rem; margin-bottom: 2rem; 
    box-shadow: var(--shadow-sm); 
}
.section-heading { 
    font-size: 1.25rem; color: var(--color-secondary); margin-bottom: 1.5rem; 
    padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; 
}

/* --- MAP --- */
.pmn-map-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.pmn-map-wrapper { height: 400px; border-radius: 8px; overflow: hidden; background: #eee; }

/* --- GALLERY GRID --- */
.pmn-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.pmn-gallery-item { height: 100px; overflow: hidden; border-radius: 8px; cursor: pointer; position: relative; }
.pmn-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.pmn-gallery-item:hover img { transform: scale(1.1); }

/* --- NEARBY (DESKTOP DEFAULT) --- */
.pmn-nearby-grid-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.pmn-nearby-item { 
    display: block; background: #fff; border: 1px solid var(--color-border); 
    border-radius: 8px; overflow: hidden; text-decoration: none; transition: transform 0.2s; 
}
.pmn-nearby-item:hover { transform: translateY(-3px); border-color: var(--color-primary); }
.pmn-nearby-img { height: 120px; position: relative; background: #f3f4f6; }
.pmn-nearby-img img { width: 100%; height: 100%; object-fit: cover; }
.pmn-nearby-placeholder { 
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; 
    text-align: center; padding: 10px; font-weight: bold; color: #334155; 
    background: linear-gradient(135deg, #f0fdf4 0%, #e2e8f0 100%); 
    font-size: 0.9rem; text-transform: uppercase; 
}
.pmn-nearby-text { padding: 10px; }
.pmn-nearby-text h4 { margin: 0 0 5px; font-size: 0.95rem; color: var(--color-secondary); }
.pmn-nearby-text span { font-size: 0.8rem; color: var(--color-text-muted); }

/* --- MOBILE NEARBY (LIST VIEW TRANSFORM) --- */
@media (max-width: 768px) {
    .pmn-nearby-grid-compact {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 12px;
    }

    /* Transform Card to Row */
    .pmn-nearby-item {
        display: flex; 
        flex-direction: row;
        align-items: center;
        height: auto;
        min-height: 90px;
    }

    /* Smaller Thumbnail on Left */
    .pmn-nearby-img {
        width: 110px;
        height: 100%;
        min-height: 90px; /* Match container */
        position: relative;
        flex-shrink: 0; /* Prevent squishing */
        border-right: 1px solid var(--color-border);
    }
    
    .pmn-nearby-placeholder span {
        font-size: 0.7rem;
    }

    /* Text on Right */
    .pmn-nearby-text {
        flex-grow: 1;
        padding: 10px 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .pmn-nearby-text h4 {
        font-size: 1rem;
        margin-bottom: 4px;
        line-height: 1.3;
        font-weight: 700;
    }

    .pmn-nearby-text span {
        font-size: 0.85rem;
    }
}

/* --- UTILITY & OCCUPANCY --- */
.pmn-utility-buttons .btn { font-size: 0.9rem; font-weight: 600; padding: 10px 5px; }
.btn-occupancy { 
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; 
    padding: 8px; border-radius: 6px; cursor: pointer; transition: transform 0.2s; 
}
.btn-occupancy:hover { transform: translateY(-2px); filter: brightness(95%); }
.btn-occupancy:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.pmn-live-stats { animation: fadeIn 0.5s ease; }

/* --- SIDEBAR WIDGETS --- */
.pmn-sidebar .card { border: 1px solid var(--color-border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.sidebar-heading { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

/* REVISED SAVE BUTTON STYLES */
.pmn-save-btn--sidebar { 
    position: static !important; 
    width: 100%; 
    padding: 10px; 
    background: transparent; 
    border: 1px solid var(--color-border); 
    border-radius: 8px; 
    color: var(--color-text-muted); 
    font-weight: 600; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: all 0.2s; 
    margin-top: 10px;
}
.pmn-save-btn--sidebar:hover { background: #fef2f2; color: #ef4444; border-color: #fee2e2; }
.pmn-save-btn--sidebar.active { background: #fef2f2; color: #ef4444; border-color: #ef4444; }

.pmn-claim-text { font-size: 0.85rem; text-align: center; margin-top: 12px; color: var(--color-text-muted); }
.pmn-claim-text a { color: var(--color-primary); font-weight: 600; text-decoration: none; }

.pmn-hours-table { width: 100%; font-size: 0.9rem; }
.pmn-hours-table td { padding: 6px 0; border-bottom: 1px solid #f8fafc; }
.pmn-hours-table tr.current-day td { color: var(--color-primary); font-weight: 700; }
.pmn-hours-table .day-time { text-align: right; }

.pmn-status-bar { padding: 8px; border-radius: 6px; text-align: center; font-weight: bold; margin-bottom: 15px; color: white; }
.status-open { background: #16a34a; }
.status-closed { background: #dc2626; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.8; } 100% { opacity: 1; } }

.pmn-info-item { display: flex; gap: 12px; margin-bottom: 15px; }
.info-icon { width: 24px; color: var(--color-text-muted); flex-shrink: 0; padding-top: 3px; }
.info-content { font-size: 0.95rem; color: var(--color-text-main); overflow-wrap: break-word; }
.info-content a { color: inherit; text-decoration: none; }
.info-content a:hover { color: var(--color-primary); }
.text-copy-btn { font-size: 0.75rem; color: var(--color-primary); background: none; border: none; cursor: pointer; padding: 0; margin-left: 5px; text-decoration: underline; }

.sidebar-divider { margin: 15px 0; border: 0; border-top: 1px solid #f1f5f9; }
.sidebar-subheading { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; color: var(--color-text-muted); }

.pmn-amenity-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-tag { background: #f8fafc; border: 1px solid #e2e8f0; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; color: #475569; }
.amenity-tag i { color: #10b981; margin-right: 4px; }

/* Reviews */
.pmn-review-sidebar-item { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.pmn-review-sidebar-item strong { display: block; font-size: 0.95rem; color: var(--color-secondary); }
.pmn-review-sidebar-item .stars { color: var(--color-accent); font-size: 0.8rem; display: block; margin-bottom: 4px; }
.pmn-review-sidebar-item p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; line-height: 1.4; }

/* Review Modal Specifics */
.pmn-reviews-modal-content { max-width: 700px; height: 80vh; display: flex; flex-direction: column; }
#pmn-reviews-scroll-container { flex-grow: 1; overflow-y: auto; padding-right: 10px; border-top: 1px solid #e2e8f0; margin-top: 15px; padding-top: 15px; }
.pmn-review-item-modal { background: #f8fafc; border-radius: 8px; padding: 15px; margin-bottom: 15px; border: 1px solid #e2e8f0; }
.pmn-ad-slot-modal { text-align: center; margin: 20px 0; padding: 10px; background: #fff; border: 1px dashed #cbd5e1; }

/* Lightbox (Kept local as it's page-specific) */
.pmn-lightbox { display: none; position: fixed; z-index: 9999; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.pmn-lightbox-content { margin: auto; display: block; width: 80%; max-width: 900px; max-height: 80vh; object-fit: contain; animation-name: zoom; animation-duration: 0.3s; }
.pmn-lightbox-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.pmn-lightbox-close:hover, .pmn-lightbox-close:focus { color: #bbb; text-decoration: none; cursor: pointer; }
.pmn-prev, .pmn-next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -50px; color: white; font-weight: bold; font-size: 20px; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; -webkit-user-select: none; }
.pmn-next { right: 0; border-radius: 3px 0 0 3px; }
.pmn-prev:hover, .pmn-next:hover { background-color: rgba(0,0,0,0.8); }
@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }