@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
    --clr-gray-light: #d7dfe2;
    --clr-gray-med: #616b74;
    --clr-gray-dark: #414b56;
    --clr-link: #4d97b2;
}

* {
    font-family: "Poppins", sans-serif;
}

.container-sidebar {
    display: flex;
    width: 100%;
}

.sidebar {
    width: 240px;
    background-color: #000;
    padding: 10px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    height: auto;
    position: relative;
    overflow-x: hidden; /* Menyembunyikan scrollbar horizontal */
    overflow-y: hidden; /* Menyembunyikan scrollbar vertikal */
    flex-shrink: 0; /* Mencegah .sidebar mengecil */
}

.filter-section { 
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-title-main {
    font-size: 21px;
    font-weight: bold;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-subtitle-main {
    justify-content: none;
}

.refresh {
    color: #d4a42c;
}

.filter-title {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow {
    transition: transform 0.3s ease;
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    background-color: #fff;
    color: #000;
    border-radius: 5px;
}

.dropdown-item {
    margin-top: 10px;
}

.filter-content.show {
    max-height: 50rem;
    opacity: 1;
}

.filter-content.hide {
    max-height: 0;
    opacity: 0;
}

.filter-content label,
.dropdown-item {
    display: block;
    padding: 5px 10px; /* Padding ditambahkan di sini */
    cursor: pointer;
}

.filter-content label:hover,
.dropdown-item:hover {
    background-color: #ddd;
}

.filter-title.active .arrow {
    transform: rotate(180deg);
}

.dropdown-item-container .dropdown-item:nth-child(n + 6) {
    display: none;
}

.dropdown-item-container.show-more .dropdown-item {
    display: block;
}

.dropdown-item {
    color: #000;
}

/* Untuk lokasi tidak ditemukan */
.no-results-message {
    padding: 10px;
    color: #666;
    text-align: center;
    font-size: 14px;
}

/* Mengubah warna shadow toggle */
.form-check-input:checked {
    background-color: #d4a42c;
    border-color: #d4a42c;
}

.form-check-input:checked:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 164, 44, 0.5);
}

.search-main {
    width: 90%;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.has-search-right {
    position: relative;
}

.has-search-right .form-control {
    padding-right: 2.375rem;
}

.has-search-right .form-control-feedback {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.375rem;
    text-align: center;
    color: #aaa;
}

/* Mengubah warna shadow search location */
.form-group.has-search-right .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 164, 44, 0.5);
    border-color: rgba(212, 164, 44, 0.75);
}

.selected-filter {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
}

.selected-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-filter-title {
    color: #323232;
    font-size: 14px;
}

.selected-filter-value {
    color: #000;
    font-size: 15px;
    font-weight: 600;
    margin-top: 5px;
}

.main-content {
    display: flex;
    flex-direction: column;
    /* align-items: flex-start; */
    width: fit-content;
    margin: 0 auto;
    padding: 20px;
}

.wrapper-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    overflow-x: hidden;
    justify-content: center;
    scroll-behavior: smooth;
    position: relative;
    padding: 10px 0 10px 0;
}

.wrapper a {
    text-decoration: none;
    color: inherit;
}

.card {
    overflow: hidden;
    border-radius: 0.5rem;
    border: 0;
    position: relative;
    width: 16rem;
    height: 20rem;
    margin: auto;
    transition: 250ms all ease-in-out;
    cursor: pointer;
    margin-bottom: 10px;
}

.card:hover {
    transform: scale(1.02);
}

.banner-img {
    position: absolute;
    object-fit: cover;
    height: 9rem;
    width: 100%;
}

.category-tag {
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    background: red;
    padding: 0.5rem 1.3rem 0.5rem 1rem;
    text-transform: uppercase;
    position: absolute;
    z-index: 1;
    top: 1rem;
    border-radius: 0 2rem 2rem 0;
}

.card-body {
    margin: 9rem 0 0 0;
}

.blog-title {
    font-size: 1.2rem;
    color: #000;
}

.blog-date {
    color: gray;
    font-size: 0.9rem;
    margin-top: 10px;
}

.blog-price {
    font-size: 1.1rem;
    font-weight: bold;
    margin: -10px 0 15px 0;
    color: #000;
}

.card-profile {
    display: flex;
    align-items: center;
    margin-top: -10px;
}

.profile-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.card-profile-info {
    margin-left: 1rem;
}

.profile-name {
    font-size: 0.9rem;
    margin-top: 0.6rem;
    color: var(--clr-gray-dark);
}

/* Styling untuk dropdown */
.display-options {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    align-self: flex-start;
}

.display-options label {
    font-size: 1rem;
    margin-right: 8px;
    font-weight: bold;
}

.display-options select {
    font-size: 1rem;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    outline: none;
    cursor: pointer;
}

/* Standar Dropdown */
.event-container {
    display: flex;
    align-items: baseline;
    align-self: flex-end;
    margin-bottom: 20px;
}

.cards-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-right: 0.5rem;
}

.dropdown-event {
    width: 13rem;
    position: relative;
    background: #fff;
    border: 1px solid #ac9458;
    border-radius: 10px;
    font-size: 14px;
    color: #414141;
}

.dropdown-event * {
    box-sizing: border-box;
}

.select-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em;
    cursor: pointer;
    transition: background 0.3s;
}

.caret-event {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #414141;
    transition: 0.3s;
    margin-left: 10px;
}

.caret-rotate {
    transform: rotate(180deg);
}

.menu-event {
    list-style: none;
    padding: 0.2em 0.5em;
    background: #fff;
    box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.2);
    border-radius: 0.5em;
    color: #000;
    position: absolute;
    top: calc(100% + 0.2em);
    left: 0;
    width: 13rem;
    opacity: 0;
    display: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 100;
}

.menu-event li {
    padding: 0.7em 0.5em;
    margin: 0.3em 0;
    cursor: pointer;
}

.menu-event li:hover {
    background: lightgray;
}

.menu-event li.active {
    background: lightgray;
    color: #414141;
    border-left: 3px solid #ac9458;
}

.menu-open {
    display: block;
    opacity: 1;
}
.selected-blue {
    color: #414141;
}

.btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z' fill='%23D4A42C'/%3e%3c/svg%3e");
    background-size: 2.2em;
}

.btn-close:focus {
    box-shadow: none;
}

@media (max-width: 1200px) {
    .wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
        overflow-x: hidden;
        justify-content: center;
        scroll-behavior: smooth;
        position: relative;
        padding: 10px 0 10px 0;
    }

    .modal-filter {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        z-index: 2;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.4);
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .modal-filter.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    .modal-filter-content {
        background-color: #000;
        margin: 0 auto;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;    
    }

    .close-modal-filter {
        cursor: pointer;
    }
}

@media (max-width: 992px) {
    .filter-button {
        display: block; /* Menampilkan filter button */
        bottom: 20px;
        right: 20px;
        color: #ac9458;
        padding: 15px;
        cursor: pointer;
        z-index: 1000;
        width: 50px;
        height: 50px;
        text-align: center;
        line-height: 20px;
        font-size: 20px;
    }

    .filter-button p {
        font-weight: 600;
    }
}

@media (max-width: 960px) {
    .filter-button {
        bottom: 20px;
        right: 20px;
        color: #ac9458;
        padding: 15px;
        cursor: pointer;
        z-index: 1000;
        width: 50px;
        height: 50px;
        text-align: center;
        line-height: 20px;
        font-size: 20px;
    }

    .filter-button p {
        font-weight: 600;
    }

    .modal-filter {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        z-index: 2;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.4);
        opacity: 0; /* Awalnya tidak terlihat */
        transform: translateY(-20px); /* Awalnya sedikit di atas */
        transition: opacity 0.3s ease, transform 0.3s ease; /* Tambahkan transisi */
    }
    
    .modal-filter.show {
        display: block;
        opacity: 1; /* Terlihat penuh */
        transform: translateY(0); /* Kembali ke posisi normal */
    }
    
    .modal-filter-content {
        background-color: #000;
        margin: 0 auto;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;    
    }
    

    .close-modal-filter {
        cursor: pointer;
    }
}

@media (min-width: 993px) {
    .filter-button {
        display: none;
    }
}

@media (max-width: 640px) {
    .wrapper-container {
        align-items: center;
    }

    .wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    .card {
        width: 27rem;
        height: 20rem;
        margin: auto;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .card {
        width: 24rem;
        height: 20rem;
    }
}

@media (max-width: 425px) {
    .card {
        width: 21rem;
        height: 20rem;
    }
}

@media (max-width: 380px) {
    .card {
        width: 19rem;
        height: 20rem;
    }
}

@media (max-width: 345px) {
    .card {
        width: 17rem;
        height: 20rem;
    }
}




.container-dropdown-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 0 20px 0;
}

.dropdown-event-responsive {
    position: relative;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
}

.select-event-responsive {
    display: flex;
    align-items: center;
    justify-content: center; 
    width: 100%;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #ac9458; /* Disamakan dengan standar dropdown */
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #414141;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.selected-event-responsive {
    font-weight: 600;
    font-size: 1rem;
}

.sort-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}


.menu-event-responsive {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
    background-color: #fff;
    border: 1px solid #ac9458; /* Disamakan dengan standar dropdown */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
    color: #000;
}

.menu-event-responsive li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
}

.menu-event-responsive li:hover {
    background-color: #f5f5f5;
}

.menu-event-responsive li.active-responsive {
    background-color: lightgray;
    font-weight: bold;
    border-radius: 8px;
}

.menu-open {
    display: block;
    opacity: 1;
}