/* ==========================================================================
   UMKM PAGE STYLES
   ========================================================================== */

.page-content {
    padding-top: 110px;
    padding-bottom: 80px;
}

/* 1. Hero Highlight UMKM */
.umkm-hero {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.hero-image-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    border-radius: 32px;
    z-index: 1;
}

.parallax-img {
    width: 100%;
    height: 120%; /* Extra height for parallax effect */
    object-fit: cover;
    transform: translateY(0);
}

.hero-glass-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 24px;
    max-width: 540px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.highlight-badge {
    background: #B7791F;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 24px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
}

/* 2. Catalog Section */
.catalog-section {
    margin-bottom: 80px;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.catalog-title-group h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.catalog-title-group p {
    color: var(--text-gray);
    font-size: 1rem;
}

.catalog-filters {
    display: flex;
    gap: 12px;
}

.filter-pill {
    background: transparent;
    border: 1px solid #DCDBCF;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-pill.active {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* UMKM Grid & Cards */
.umkm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.umkm-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.umkm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-img-box {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.umkm-card:hover .card-img-box img {
    transform: scale(1.08);
}

.category-float-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
}

.card-info {
    padding: 24px;
}

.card-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-info p {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-whatsapp:hover {
    color: #25D366; /* Warna khas WA */
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-icon:hover {
    color: var(--primary-color);
}

/* 3. Visit Center Section */
.visit-card {
    background: #ffffff;
    border-radius: 32px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.visit-info {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visit-info h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.visit-info p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 90%;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.detail-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item strong {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.detail-item span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.visit-map {
    flex: 1.2;
    position: relative;
    min-height: 300px;
}

.map-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.1) saturate(0.8) hue-rotate(90deg); /* Style peta kehijauan */
}

.map-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(30, 67, 37, 0.3);
}

/* 4. Modal Detail UMKM */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(16, 39, 21, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 800px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

/* Layout dalam Modal (Dinamis dari JS) */
.modal-split {
    display: flex;
    flex-wrap: wrap;
}

.modal-left {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.modal-right {
    flex: 1;
    min-width: 300px;
    background: #e0e0e0;
}

.modal-right iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-contact {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Responsif */
@media (max-width: 850px) {
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .visit-card {
        flex-direction: column;
    }
    .visit-map {
        min-height: 250px;
    }
    .umkm-hero {
        padding: 24px;
    }
    .hero-glass-card {
        padding: 24px;
    }
}