/* responsive styles */

/* 320px to 380px - 1 card per row */
@media (max-width: 380px) {

    /* bottom sidebar */
    .sidebar {
        width: 100% !important;
        height: fit-content !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 10px 10px 0 0 !important;
    }


    .hostbox {
        max-height: 90vh !important;
        max-width: calc(100vw - 40px) !important;
        width: 100% !important;
    }

    .hostchoicesbox {
        flex-direction: row !important;
        max-height: 80vh !important;
        min-width: calc(100vw - 40px) !important;
        overflow: auto !important;
        scrollbar-width: none !important;
        padding: 20px 10px !important;
    }

    .hostchoicesbox a,
    .hostchoices {
        min-width: 100% !important;
        height: 100px !important;
        flex-direction: row !important;
        margin-bottom: 5px !important;
        gap: 10px !important;

    }

    .hostIcon,
    .post-btn,
    .sideHostIcon {
        display: none !important;
    }

    .float {
        display: flex !important;
    }

    .content-section {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .details_link,
    .postCard {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        margin: 2px !important;
        padding: 0 !important;
    }

    .details_link div {
        max-width: 100%;
    }
}

/* 381px to 480px - 2 cards per row */
@media (min-width: 381px) and (max-width: 480px) {
    .sidebar {
        width: 100% !important;
        height: fit-content !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 10px 10px 0 0 !important;

    }

    .hostbox {
        max-height: 90vh !important;
        max-width: calc(100vw - 40px) !important;
        width: 100% !important;
    }

    .hostchoicesbox {
        flex-direction: row !important;
        max-height: 80vh !important;
        min-width: calc(100vw - 40px) !important;
        overflow: auto !important;
        scrollbar-width: none !important;
        padding: 20px 10px !important;
    }

    .hostchoicesbox a,
    .hostchoices {
        min-width: 100% !important;
        height: 100px !important;
        flex-direction: row !important;
        margin-bottom: 5px !important;
        gap: 10px !important;

    }

    .hostIcon,
    .post-btn,
    .sideHostIcon {
        display: none !important;
    }

    .float {
        display: flex !important;
    }

    .content-section {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .details_link,
    .postCard {
        flex: 1 1 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
        margin: 2px !important;
        padding: 0 !important;
    }

    .details_link div {
        max-width: 100%;
    }
}

/* 481px to 550px - 2 cards per row */
@media (min-width: 481px) and (max-width: 570px) {
    .sidebar {
        width: 95% !important;
        height: fit-content !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        border-radius: 10px 10px 0 0 !important;

    }

    .hostbox {
        max-height: 90vh !important;
        max-width: calc(100vw - 40px) !important;
        width: 100% !important;
    }

    .hostchoicesbox {
        flex-direction: row !important;
        max-height: 80vh !important;
        min-width: calc(100vw - 40px) !important;
        overflow: auto !important;
        scrollbar-width: none !important;
        padding: 20px 10px !important;
    }

    .hostchoicesbox a,
    .hostchoices {
        min-width: 100% !important;
        height: 100px !important;
        flex-direction: row !important;
        margin-bottom: 5px !important;
        gap: 10px !important;

    }

    .float {
        display: flex !important;
    }

    .hostIcon,
    .post-btn,
    .sideHostIcon {
        display: none !important;
    }

    .content-section {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .details_link,
    .postCard {
        flex: 1 1 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
        margin: 2px !important;
        padding: 0 !important;
    }

    .details_link div {
        max-width: 100%;
    }
}

/* 571px to 768px - 3 cards per row */
@media (min-width: 571px) and (max-width: 768px) {
    .hostbox {
        max-height: 90vh !important;
        max-width: 90vw !important;
        width: 100% !important;
    }

    .hostchoicesbox {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        max-height: 80vh !important;
        min-width: calc(100vw - 40px) !important;
        overflow: auto !important;
        scrollbar-width: none !important;
        padding: 20px 10px !important;
    }

    .hostchoicesbox a,
    .hostchoices {
        width: 200px !important;
        height: 200px !important;
        flex-direction: row !important;
        gap: 10px !important;
        margin: 5px !important;
    }

    .float {
        display: none !important;
    }

    .sideHostIcon {
        display: none !important;
    }

    .content-section {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .details_link,
    .postCard {
        flex: 1 1 calc(33.333% - 4px) !important;
        max-width: calc(33.333% - 4px) !important;
        margin: 2px !important;
        padding: 0 !important;
    }

    .details_link div {
        max-width: 100%;
    }
}

/* 769px and above - balanced cards with width cap */
@media (min-width: 769px) {
    .hostbox {
        max-height: 90vh !important;
        height: fit-content !important;
        max-width: 800px !important;
    }

    .hostchoicesbox {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        max-height: 80vh !important;
        min-width: 100% !important;
        overflow: auto !important;
        scrollbar-width: none !important;
        padding: 20px 10px !important;
    }

    .hostchoicesbox a,
    .hostchoices {
        width: 175px !important;
        height: 175px !important;
        flex-direction: row !important;
        margin-bottom: 5px !important;
        gap: 10px !important;
        margin: 5px !important;
    }

    .float {
        display: none !important;
    }

    .content-section {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 0 !important;
        padding: 15px !important;
    }

    .details_link,
    .postCard {
        flex: 0 1 calc(25% - 15px) !important;
        max-width: calc(30% - 15px) !important;
        margin: 2px !important;
        padding: 0 !important;
    }

    .details_link div {
        max-width: 100%;
    }
}