/**
 * Potensi Desa - Halaman publik (Ekonomi Desa)
 */

.page-potensi-desa .potensi-main {
    padding: 1.5rem 1rem 3rem;
}

.potensi-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 4vw, 1.5rem);
}

.potensi-breadcrumb {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.potensi-breadcrumb a {
    color: #1e40af;
    text-decoration: none;
}

.potensi-breadcrumb a:hover {
    text-decoration: underline;
}

.potensi-breadcrumb .sep {
    margin: 0 0.35rem;
}

.potensi-title {
    font-size: 1.75rem;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.potensi-title i {
    color: #0d9488;
}

.potensi-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}

/* List grid */
.potensi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.potensi-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.potensi-card:hover {
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.12);
    border-color: #0d9488;
    transform: translateY(-2px);
}

.potensi-card-foto {
    width: 100%;
    aspect-ratio: 16/10;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.potensi-card-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.potensi-card-foto.no-foto .no-foto,
.potensi-card-foto .no-foto {
    font-size: 2.5rem;
    color: #94a3b8;
}

.potensi-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
}

.potensi-card-name {
    font-size: 1.1rem;
    margin: 0 0 0.35rem 0;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.3;
}

.potensi-card-meta,
.potensi-card-lokasi,
.potensi-card-desk {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.potensi-card-meta i,
.potensi-card-lokasi i {
    flex-shrink: 0;
    margin-top: 0.15em;
    width: 1em;
    color: #0d9488;
}

.potensi-card-desk {
    display: block;
    margin-top: 0.5rem;
}

.potensi-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-weight: 500;
}

.potensi-badge-kategori {
    background: #e0f2fe;
    color: #0369a1;
}

.potensi-badge-sudah-dikembangkan {
    background: #ccfbf1;
    color: #0f766e;
}

.potensi-badge-sedang-dikembangkan {
    background: #fef3c7;
    color: #b45309;
}

.potensi-badge-belum-dikembangkan {
    background: #fee2e2;
    color: #b91c1c;
}

.potensi-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #0d9488;
    font-weight: 500;
}

.potensi-card-link i {
    margin-left: 0.25rem;
    font-size: 0.8em;
}

.potensi-empty {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    padding: 1.5rem;
    color: #0f766e;
    text-align: center;
}

.potensi-empty p {
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.potensi-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0d9488;
    font-weight: 500;
    text-decoration: none;
}

.potensi-btn-back:hover {
    text-decoration: underline;
    color: #0f766e;
}

/* Detail */
.potensi-detail-wrap {
    max-width: 900px;
}

.potensi-detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 720px) {
    .potensi-detail-layout {
        grid-template-columns: 1fr;
    }
}

.potensi-detail-side .potensi-detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 1rem;
}

.potensi-detail-foto {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.potensi-detail-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.potensi-detail-foto.no-foto .no-foto,
.potensi-detail-foto .no-foto {
    font-size: 3rem;
    color: #94a3b8;
}

.potensi-detail-name {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
    color: #0f172a;
    font-weight: 600;
}

.potensi-detail-kategori {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 0.75rem 0;
}

.potensi-detail-kategori i {
    margin-right: 0.35rem;
    color: #0d9488;
}

.potensi-detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.potensi-detail-section-title {
    font-size: 1rem;
    color: #0d9488;
    margin: 0 0 0.5rem 0;
}

.potensi-detail-section-title i {
    margin-right: 0.5rem;
    width: 1em;
}

.potensi-detail-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    margin: 0;
}

.potensi-detail-text a {
    color: #0d9488;
    text-decoration: none;
}

.potensi-detail-text a:hover {
    text-decoration: underline;
}

.potensi-back-wrap {
    margin: 1.5rem 0 0 0;
}
