/* ==========================================================================
   HERO BANNER SECTION (Inspired by Reference Design)
   ========================================================================== */
.hero-section {
    position: relative;
    background: var(--bg-dark, #0d1117);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 120px 20px;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    opacity: 0.75;
    filter: brightness(0.85);
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-title .script-text {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-teal);
    display: inline-block;
    transform: rotate(-3deg);
    margin: 0 8px;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.3px;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.stats-section {
    position: relative;
    z-index: 11;
    max-width: 1150px;
    margin: -60px auto 30px auto;
    padding: 0 20px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    box-shadow: var(--shadow-floating);
    border: 1px solid var(--border-color);
}

.stats-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    position: relative;
}

.stats-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--border-color);
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .stats-card:not(:last-child)::after {
        display: none;
    }
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(230, 92, 0, 0.08);
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

:root[data-theme="dark"] .stats-icon {
    background: rgba(255, 117, 26, 0.15);
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stats-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==========================================================================
   FLOATING RECOMMENDATION / SEARCH CARD (Matches Reference Card)
   ========================================================================== */
.recommendation-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1150px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.recommendation-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px 35px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.recommendation-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--accent-orange);
    text-align: center;
    margin-bottom: 25px;
}

.recommendation-title .highlight-text {
    color: var(--primary-teal);
    font-weight: 700;
}

.recommendation-form {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
    gap: 15px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.2px;
}

.input-with-icon, .select-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon svg {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: all 0.25s ease;
    outline: none;
}

.select-with-icon select {
    width: 100%;
    padding: 12px 38px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: all 0.25s ease;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.select-with-icon .chevron-icon {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon input:focus, .select-with-icon select:focus {
    border-color: var(--primary-teal);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(230, 92, 0, 0.15);
}

.btn-recommend {
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(230, 92, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-recommend:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(230, 92, 0, 0.35);
    background: linear-gradient(135deg, var(--primary-teal-dark) 0%, var(--primary-teal) 100%);
}

.btn-recommend:active {
    transform: translateY(0);
}

/* ==========================================================================
   QUICK CATEGORY CHIPS
   ========================================================================== */
.quick-category-chips {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.chip-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.chip-btn:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    background: rgba(230, 92, 0, 0.05);
}

.chip-btn.active {
    background: var(--primary-teal);
    color: #ffffff;
    border-color: var(--primary-teal);
    box-shadow: 0 4px 12px rgba(230, 92, 0, 0.2);
}

/* ==========================================================================
   UMKM GRID & CARD COMPONENT
   ========================================================================== */
.main-catalog-container {
    padding-top: 10px;
}

.umkm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 45px;
}

@media (max-width: 768px) {
    .umkm-grid {
        grid-template-columns: 1fr;
    }
}

.card-umkm {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.card-umkm:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(27, 77, 62, 0.18);
    border-color: var(--primary-teal);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    background-color: var(--bg-light);
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-umkm:hover .card-image-wrapper img {
    transform: scale(1.06);
}

/* Tombol Favorit (Wishlist) Melayang */
.btn-favorite {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    color: #a0aec0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
}

.btn-favorite:hover {
    background: #ffffff;
    color: #e63946;
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
}

.btn-favorite.active {
    background: #ffffff;
    color: #e63946;
}

.btn-favorite.active svg {
    fill: #e63946;
}

:root[data-theme="dark"] .btn-favorite {
    background: rgba(22, 28, 32, 0.95);
    color: var(--text-muted);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .btn-favorite:hover {
    background: #161c20;
    color: #ff4d5a;
}

:root[data-theme="dark"] .btn-favorite.active {
    background: #161c20;
    color: #ff4d5a;
}

:root[data-theme="dark"] .btn-favorite.active svg {
    fill: #ff4d5a;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.35;
}

.card-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.card-location svg {
    color: var(--primary-teal);
    flex-shrink: 0;
}

.card-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.card-main-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-action {
    padding: 0 24px 24px 24px;
    margin-top: auto;
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.btn-detail {
    flex: 2.2;
    display: inline-block;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: white;
    padding: 11px 14px;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.15);
}

.btn-detail:hover {
    box-shadow: 0 8px 22px rgba(230, 92, 0, 0.4);
    background: linear-gradient(135deg, var(--accent-orange-dark) 0%, var(--accent-orange) 100%);
    filter: brightness(1.06);
}

.btn-share {
    flex: 1;
    display: inline-block;
    text-align: center;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 11px 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share:hover {
    background-color: var(--primary-teal);
    color: #ffffff;
    border-color: var(--primary-teal);
    box-shadow: 0 4px 14px rgba(27, 77, 62, 0.25);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--toast-bg);
    color: var(--toast-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    z-index: 2000;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   PAGINATION BUTTON STYLES
   ========================================================================== */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 50px 0;
}

.btn-page {
    background-color: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.btn-page:hover:not(:disabled) {
    background-color: var(--primary-teal);
    color: #ffffff;
    border-color: var(--primary-teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(230, 92, 0, 0.25);
}

.btn-page:active:not(:disabled) {
    transform: translateY(0);
}

.btn-page:disabled {
    background-color: var(--bg-light);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

#page-info {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .recommendation-form {
        grid-template-columns: 1fr 1fr;
    }
    .btn-group {
        grid-column: 1 / -1;
    }
    .label-placeholder {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-title .script-text {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .recommendation-wrapper {
        margin-top: -20px;
        padding: 0 15px;
    }
    .recommendation-card {
        padding: 20px;
    }
    .recommendation-title {
        font-size: 1.2rem;
    }
    .recommendation-form {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   IMAGE UPLOAD DROPZONE & PREVIEW STYLES
   ========================================================================== */
.image-upload-dropzone {
    border: 2px dashed var(--border-color, #cbd5e1);
    background-color: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.image-upload-dropzone:hover,
.image-upload-dropzone.dragover {
    border-color: var(--accent-orange, #e65c00);
    background-color: rgba(230, 92, 0, 0.05);
}

.image-upload-dropzone.has-preview {
    border-style: solid;
    padding: 16px;
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-orange, #e65c00);
    background-color: rgba(230, 92, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.dropzone-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
}

.dropzone-hint {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}

.image-preview-wrapper {
    position: relative;
    width: 100%;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-preview-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.btn-remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 38, 38, 0.88);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.btn-remove-preview:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ==========================================================================
   3D CATALOG CONTROL HEADER & SEARCH HUB
   ========================================================================== */
.catalog-control-header {
    background: var(--bg-dark, #0d1117);
    padding: 50px 0 35px 0;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    margin-bottom: 25px;
}

.catalog-header-title-box {
    text-align: center;
    margin-bottom: 24px;
}

.catalog-main-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.catalog-main-title .highlight-text {
    background: linear-gradient(135deg, #ff9e64 0%, #e65c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.catalog-count-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ff9e64;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Floating 3D Filter Control Bar */
.catalog-filter-bar {
    background: var(--card-bg, #ffffff);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 22px 26px;
    border-radius: 24px;
    box-shadow: var(--shadow-floating);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.search-input-wrapper {
    position: relative;
    flex: 1 1 300px;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 16px;
    color: var(--primary-teal);
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 42px 12px 46px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
    outline: none;
    transition: all 0.25s ease;
}

.search-input-wrapper input:focus {
    border-color: var(--accent-orange);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(230, 92, 0, 0.15);
}

.btn-clear-search {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50%;
}

.btn-clear-search:hover {
    color: var(--accent-orange);
}

/* Category Pills Group */
.category-pills-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Category PNG Icons Utility Styles */
.btn-icon-img,
.cat-icon-img,
.footer-icon-img,
.tab-icon-img,
.badge-icon-img,
.marker-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.25s ease;
}

.pill-btn:hover .btn-icon-img,
.pill-btn:hover .cat-icon-img {
    transform: scale(1.15) rotate(6deg);
}

.footer-icon-img {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: -3px;
    display: inline-block;
}

.db-stat-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.pill-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 4px 12px rgba(230, 92, 0, 0.2);
}

.pill-btn.active {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: #ffffff;
    border-color: var(--accent-orange);
    box-shadow: 0 8px 20px rgba(230, 92, 0, 0.35);
}

/* Sort Dropdown */
.sort-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.sort-select-wrapper select {
    padding: 10px 38px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--bg-light);
    cursor: pointer;
    outline: none;
    appearance: none;
    transition: all 0.25s ease;
}

.sort-select-wrapper select:focus {
    border-color: var(--accent-orange);
}

.sort-select-wrapper .chevron-icon {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

/* 3D Grid Layout for UMKM Cards */
.umkm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

.card-umkm {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE ENHANCEMENTS FOR MAIN CATALOG & HERO
   ========================================================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 340px;
        padding: 50px 16px 80px 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title .script-text {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-filter-section {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .filter-pills-wrapper {
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        width: 100%;
    }

    .sort-select-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .sort-select-wrapper select {
        width: 100%;
    }

    .umkm-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}



