
/* -------------------------------------------------------------------------- */
/*                             COMMUNITY NEW INDEX                            */
/* -------------------------------------------------------------------------- */

/* SweetAlert Custom Styles */
.swal-popup-custom {
    font-family: inherit;
    color: #0B1215;
    width: 500px !important;
    max-width: 90vw !important;
    padding: 2rem !important;
}

.swal-text-custom {
    font-family: inherit;
    color: #0B1215;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.swal-button-custom {
    border-radius: 4px;
    font-weight: 500;
    padding: 12px 24px !important;
    font-size: 14px !important;
    min-width: 120px !important;
}

.swal-title-custom {
    color: #0B1215;
    font-weight: 600;
    font-size: 20px !important;
    margin-bottom: 1rem !important;
}
.community-wrapper {
    display: flex;
    flex-direction: column;
}

.main {
    width: 100%;
    height: auto;
    position: relative;
}



/* -------------------------------------------------------------------------- */
/*                      Background Image & floating card                      */
/* -------------------------------------------------------------------------- */
.background-img {
    width: 60%;
    height: 75vh;
    min-height: 51.5rem;
    background-image: url("https://donotdisturb.leopi.store/caribbean_bluebook/v_2_0/images/community/background.png");
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 2;
}

.gradient {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 60%, white);
    z-index: 1;
}


/* ------------------------------ floating card ----------------------------- */
.main-card {
    position: absolute;
    width: 35vw;
    height: 20vw;
    left: 60%;
    top: 20%;
    background: #FFFFFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 13px;
    z-index: 10;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 2rem;
}

.main-card-small-heading {
    font-weight: 500;
    font-size: 1.4vw;
    /* margin: 2rem 3rem 0rem 3rem; */
}

.main-card-large-heading {
    font-weight: 500;
    font-size: 2.9vw;
    line-height: 120%;
    /* margin: 2rem 3rem 0rem 3rem; */
}

.main-card-button {
    /* width: 21rem;
    height: 4.7rem; */
    border-radius: 7px;
    background-color: var(--orange-color);
    font-weight: 300;
    font-size: 1.2vw;
    /* margin: 7% 7% 0rem 5%; */
    padding: 0.5rem 1rem;
    width: 90%;
}


/* -------------------------------------------------------------------------- */
/*                                Filter Sidebar                              */
/* -------------------------------------------------------------------------- */
.filter-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-sidebar.active {
    display: flex;
    opacity: 1;
}

.filter-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.filter-sidebar-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 520px;
    height: 100%;
    margin-left: auto;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.filter-sidebar.active .filter-sidebar-content {
    transform: translateX(0);
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    margin-top: 80px;
}

.filter-sidebar-header h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
}

.filter-close-btn {
    background: none;
    border: none;
    font-size: 1.875rem;
    color: #718096;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.filter-close-btn:hover {
    background: #f7fafc;
    color: #2d3748;
}

.filter-sidebar-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    position: relative;
}

.filter-section {
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out both;
    position: relative;
}

.filter-section:first-child {
    z-index: 100000;
}

.filter-section:nth-child(1) {
    animation-delay: 0.1s;
}

.filter-section:nth-child(2) {
    animation-delay: 0.15s;
}

.filter-section:nth-child(3) {
    animation-delay: 0.2s;
}

.filter-section:nth-child(4) {
    animation-delay: 0.25s;
}

.filter-section:nth-child(5) {
    animation-delay: 0.3s;
}

.filter-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.15);
    transform: translateY(-1px);
}

.filter-input:hover,
.filter-select:hover {
    border-color: #cbd5e0;
}

.filter-sidebar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
}

.btn-clear-all {
    background: none;
    border: none;
    color: #718096;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-clear-all:hover {
    background: #f7fafc;
    color: #2d3748;
}

.btn-show-results {
    padding: 14px 36px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-show-results:hover {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 54, 93, 0.35);
}

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

/* Select2 Customization - Matching Travel Advisories */
.select2-container {
    width: 100% !important;
}

.select2-selection {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    min-height: 48px !important;
}

.select2-selection:focus {
    border-color: #3182ce !important;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1) !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin: 12px 0px 0px 12px !important;
}

/* Ensure Select2 dropdowns don't overlap username dropdown */
.filter-sidebar-body .select2-container {
    z-index: 1 !important;
}

.filter-sidebar-body .select2-dropdown {
    z-index: 9999 !important;
}

/* Ensure username dropdown appears above everything */
.filter-sidebar-body .username-search-wrapper {
    z-index: 100000 !important;
    position: relative;
}

.filter-sidebar-body .username-dropdown {
    z-index: 100001 !important;
    position: absolute !important;
}

/* Use default Select2 styling for choices - matching Travel Advisories */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.search-form {
    display: flex;
    flex-direction: column;
}

.modal-one-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1.2rem;
}


.search-section {
    display: flex;
    flex-direction: row;
    width: 70%;
    align-items: center;
    gap: 1rem;
}

.search-button {
    flex: 1;
}

.clear-search {
    padding-top: 5px;
    white-space: nowrap;
}


/* -------------------------------------------------------------------------- */
/*                              Multi Select List                             */
/* -------------------------------------------------------------------------- */
.multiselect {
    width: calc(50% - 0.6rem);
    position: relative;
    display: inline-block;
}
  
.selectBox {
    position: relative;
}
  
.selectBox select {
    font-weight: bold;
    height: 5rem;
    border-radius: 0.5rem;
    width: 100%;
    padding: 0 5px !important;
    font-size: 1.8rem;
    color: black;
    border-color: var(--gray-color);
}

.selectBox input.searchable-input {
    font-weight: 400;
    height: 4.2rem;
    border-radius: 0.5rem;
    width: 100%;
    padding: 0 1.3rem !important;
    font-size: 1.5rem;
    color: #333;
    border: 1px solid #d0d0d0;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    transition: all 0.2s ease;
    background-color: #fff;
}

.selectBox input.searchable-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 72, 154, 0.1);
}
  
.overSelect {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none; /* Allow clicks to pass through when not needed */
}

/* Hide overSelect for searchable inputs - using class-based approach */
.selectBox .searchable-input {
    z-index: 10;
}

.selectBox:has(.searchable-input) .overSelect,
.multiselect:has(.searchable-input) .overSelect {
    display: none !important; /* Hide overSelect for searchable inputs */
}
  
.checkboxes {
    display: none;
    border: 2px solid var(--primary-color);
    border-top: none;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    position: absolute;
    background-color: #fff;
    width: 100%;
    max-height: 16rem;
    top: 100%;
    left: 0;
    margin-top: -2px;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.3rem 0;
}

.checkboxes::-webkit-scrollbar {
    width: 8px;
}

.checkboxes::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.checkboxes::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.checkboxes::-webkit-scrollbar-thumb:hover {
    background: #233d7a;
}

.search-loading {
    padding: 1.2rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 500;
}
  
.checkboxes label {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    min-height: 2.8rem;
}

.checkboxes label:last-child {
    border-bottom: none;
}

.checkboxes > label > input {
    margin-right: 0.9rem;
    width: 1.3rem;
    height: 1.3rem;
    cursor: pointer;
    flex-shrink: 0;
}
  
.checkboxes label:hover {
    background-color: #f5f7fa;
}

.checkboxes label:has(input:checked) {
    background-color: rgba(41, 72, 154, 0.08);
    font-weight: 500;
}

/* Username search dropdown with profile images */
.username-search-wrapper {
    position: relative;
    margin-bottom: 0;
    z-index: 100000;
    isolation: isolate;
}

.username-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 20rem;
    overflow-y: auto;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100001;
    margin-top: -2px;
    padding: 0.5rem 0;
}

.username-dropdown.show {
    display: block !important;
}

.username-dropdown .search-loading {
    display: none;
    padding: 1.2rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 500;
}

.username-dropdown.show .search-loading {
    display: block;
}

.username-results {
    max-height: 19rem;
    overflow-y: auto;
}

.username-result-item {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    gap: 1rem;
}

.username-result-item:last-child {
    border-bottom: none;
}

.username-result-item:hover {
    background-color: #f5f7fa;
}

.username-profile-img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
}

.username-profile-placeholder {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d4a8f 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
}

.username-info {
    flex: 1;
    min-width: 0;
}

.username-name {
    font-size: 1.4rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.username-email {
    font-size: 1.2rem;
    color: #7f8c8d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#username {
    height: 4.2rem;
    border-radius: 0.5rem;
    width: 100%;
    padding: 0 1.3rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    border: 1px solid #d0d0d0;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background-color: #fff;
    /* Disable browser autocomplete styling */
    -webkit-autofill: none;
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    box-shadow: 0 0 0 1000px white inset !important;
}

#username:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 72, 154, 0.1);
    /* Override autofill shadow on focus */
    -webkit-box-shadow: 0 0 0 3px rgba(41, 72, 154, 0.1), 0 0 0 1000px white inset !important;
    box-shadow: 0 0 0 3px rgba(41, 72, 154, 0.1), 0 0 0 1000px white inset !important;
}

#username::placeholder {
    color: #999;
}

/* Hide browser autocomplete dropdown */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    box-shadow: 0 0 0 1000px white inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

#search-button {
    background: var(--primary-color);
    color: var(--white-color);
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#search-button:hover {
    background-color: #233d7a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(41, 72, 154, 0.3);
}

#search-button:active {
    transform: translateY(0);
}


.show {
    display: none !important;
}

.section-padding {
    padding: 2rem;
}


.search-results .checkbox-label input{
    margin-right: 5px !important;
}


/* -------------------------------------------------------------------------- */
/*                                 SORT DIV                                 */
/* -------------------------------------------------------------------------- */

/* .sort-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end
}

.sort-container {
    width: 20%;
    position: relative;
    margin-right: 2rem;
}

.sort-button {
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 7px;
    color: white;
    cursor: pointer;
    padding: 1rem;
}

.sort-button {
    text-align: center;
}

.sort-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 6;
    display: none;
    position: absolute;
    width: 100%;
    right: 0;
    top: 4rem;
    padding: 1rem;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.sort-dropdown span {
    cursor: pointer;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    border-color: white;
    width: fit-content;
    font-weight: 400;
    transition: .2s border-color ease-in-out, .2s font-weight ease-in-out;
}

.sort-dropdown span:hover {
    border-color: var(--primary-color);
    font-weight: 700;
}


.toggle-open {
    display: flex;
} */


/* -------------------------------------------------------------------------- */
/*                                 USER CARDS                                 */
/* -------------------------------------------------------------------------- */
.community-cards {
    z-index: 5;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4rem 2rem;
    justify-content: space-evenly;
    margin-top: -9rem;
}

.one-card {
    /* height: 47rem; */
    border-radius: 13px;
    background: #FFFFFF;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: row;
    /* width: calc(30% - 1.5rem); */
    width: 20%;
}

.card-blue-line {
    background: var(--primary-color);
    border-radius: 13px 0px 0px 13px;
    width: 5%;
}

.card-content {
    width: calc(100% - 2rem);
    padding: 5%;
    gap: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* -------------------------------- Card top -------------------------------- */
.card-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.card-img {
    width: 9rem;
    height: 9rem;
    min-width: 9rem;
    min-height: 9rem;
    max-width: 9rem;
    max-height: 9rem;
    background-repeat: no-repeat;
    object-fit: cover;
    border-radius: 50%;
}

.card-icons-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-one-icon-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background-size: 3rem 3rem;
    background-repeat: no-repeat;
}

.card-info {
    line-height: 20px;
    font-weight: 700;
    font-size: 1.3rem;
    color: black;
    letter-spacing: 0.205em;
    text-transform: uppercase;
}

/* ------------------------------- Card middle ------------------------------ */
.card-middle {
    display: flex;
    flex-direction: column;
    height: 20rem;
    justify-content: space-between;

}

.card-user-name {
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 99%;
    height: 3rem;
}

.card-line {
    border: 1px solid var(--primary-color);
    width: 89px;
}

.card-user-description {
    font-weight: 300;
    font-size: 1.6rem;
    line-height: 120%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-user-hobbies {
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 133.69%;
}

/* ------------------------------- Card bottom ------------------------------ */
.card-bot {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 2rem;
}

.card-button {
    width: 50%;
    height: 4.5rem;
    border-radius: 7px;
    font-size: 1.8rem;
    line-height: 33px;
    white-space: nowrap;
}

#card-button-see-more {
    background-color: var(--orange-color);
    font-weight: 300;
    padding: 0.6rem 2rem;
    text-align: center;
    color: black;
}

#card-button-follow {
    background-color: var(--green-btn-color);
    font-weight: 700;
    color: var(--white-color);
}



/* -------------------------------------------------------------------------- */
/*                                 Pagination                                 */
/* -------------------------------------------------------------------------- */
.pagination {
    margin: 5rem 0 9rem 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

.pagination-div-previous {
    display: flex;
    justify-content: flex-end;
    width: 2%;
}

.pagination-div-next {
    display: flex;
    justify-content: flex-start;
    width: 2%;
}

.pagination-arrows {
    width: 20px;
    height: 20px;
}
.pagination-div-previous a{
    display: block;
    border: 1px solid var(--primary-color);
    padding: 5px 7px 1px 5px;
    border-radius: 50%;
}
.pagination-div-next a {
    display: block;
    border: 1px solid var(--primary-color);
    padding: 5px 5px 1px 7px;
    border-radius: 50%;
}
.pagination-number {

    color:var(--text-gray-color);
}

/* -------------------------------------------------------------------------- */
/*                                 RESPONSIVE                                 */
/* -------------------------------------------------------------------------- */


@media (min-width: 1250px) and (max-width: 1600px) {
    .one-card {
        width: 25%;
    }
}


@media (min-width: 768px) and (max-width: 1250px) {
    .one-card {
        width: 40%;
    }
}


@media (max-width: 1200px) {

    .background-img {
        width: 80%;
        min-height: 70rem;
    }

    .sort-wrapper {
        justify-content: center;
        align-items: center;
        margin-bottom: 3rem;
    }

    .sort-container {
        width: 90%;
    }

    .sort-button,
    .sort-dropdown {
        right: auto;
    }
}



/* Filter Sidebar responsive styles */
@media (max-width: 768px) {
    .filter-sidebar-content {
        width: 100%;
        max-width: 100%;
    }
    
    .filter-sidebar-header {
        margin-top: 70px;
    }
    
    .filter-sidebar-header,
    .filter-sidebar-body,
    .filter-sidebar-footer {
        padding: 20px;
    }
    
    .filter-section {
        margin-bottom: 24px;
    }
    
    .filter-sidebar-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-show-results,
    .btn-clear-all {
        width: 100%;
    }
}

/* Modal responsive styles */
@media (max-width: 1040px) {
    .main-card {
        left: 9%;
        width: 80%;
        height: 20rem;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        padding: 1rem;
    }

    .main-card-large-heading {
        font-weight: 500;
        font-size: 2.5rem;
    }

    .main-card-small-heading {
        font-size: 1.8rem;
        margin: 0 0 0 0;
    }

    .main-card-large-heading {
        font-size: 2.2rem;
        text-align: center;
    }

    .main-card-small-heading {
        font-size: 1.5rem;
        text-align: center;
    }

    .main-card-button {
        font-size: 1.6rem;
        width: 90%;
    }

    .search-button, 
    .clear-search {
        flex: 1;
    }
}

    .card-img {
        width: 7rem;
        height: 7rem;
        min-width: 7rem;
        min-height: 7rem;
        max-width: 7rem;
        max-height: 7rem;
    }

    .card-icon {
        background-size: 2rem 2rem;
        width: 2rem;
        height: 2rem;
    }

    .card-icons-info {
        gap: 0.2rem;
    }

    .card-info {
        font-size: 1.3rem;
        line-height: 15px;
        font-weight: 400;
    }

    .card-user-name {
        font-size: 1.8rem;
    }

    .card-user-description {
        font-size: 1.6rem;
    }

    .card-user-hobbies {
        font-size: 1.5rem;
    }

    .card-bot {
        gap: 1.5rem;
    }

    .card-button {
        height: 3.5rem;
        font-size: 1.5rem;
    }

    #card-button-see-more {
        padding: 0.2rem;
    }



@media (max-width: 768px) {

    .one-card {
        width: 45%;
    }
    
    .main-card .search-section {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
        align-items: center !important;
    }
    
    .main-card .search-button {
        width: 100% !important;
        flex: none !important;
        flex-basis: auto !important;
    }
    
    .main-card .main-card-button {
        width: 100% !important;
    }
    
    .main-card .clear-search {
        text-align: center !important;
        font-size: 1.3rem !important;
        padding-top: 0 !important;
        white-space: nowrap !important;
        width: 100% !important;
        display: block !important;
        flex: none !important;
        flex-basis: auto !important;
        margin-top: 0.5rem;
        order: 2 !important;
    }
    
    .main-card .search-link {
        white-space: nowrap;
    }
    .card-content,
    .card-top {
        gap: 1rem;
    }
    
    .card-middle {
        height: 17rem;
    }

    .community-cards {
        margin-top: -7rem;
    }
    
    .background-img {
        width: 100%;
        max-height: 70vh;
    }

    .section-padding {
        padding: 1rem;
    }

    #username,
    .selectBox select,
    .checkbox-label {
        font-size: 1.6rem;
    }

    #search-button {
        font-size: 1.6rem;
    }

    #username {
        margin: 1rem 0rem 0rem 0rem;
    }

    /* Modal responsive improvements */
    .modal-content {
        width: 95%;
        padding: 1.5rem 1rem;
    }

    .modal-one-row {
        flex-direction: column;
        gap: 1rem;
    }

    .multiselect {
        flex: 1 1 100%;
        min-width: 100%;
    }


    /* ---------------------------------- MODAL --------------------------------- */
    .modal-content {
        width: 90%;
    }

    .modal-one-row {
        flex-direction: column;
        margin-bottom: 1rem;
        gap: 1rem;
    }

    .search-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #username {
        height: 4rem;
        font-size: 1.4rem;
        padding: 0 1rem !important;
    }
}


@media (max-width: 570px) {
    #username {
        height: 3.8rem;
        font-size: 1.3rem;
        padding: 0 0.9rem !important;
    }

    .one-card {
        width: 95%;
    }

    .card-middle {
        height: 20rem;
    }
}