:root {
    --bs-danger-rgb: 105, 35, 64;
    --bs-secondary: #51596C;
    --bs-primary-rehlo: #016EB3;
    --bs-border-color: rgba(220, 224, 229, 0.6);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --bs-light-grey: #f8fafc;
}

body {
    min-height: 100vh;
}

footer ul li {
    margin-bottom: .3rem;
}

.sticky-footer {
    position: sticky;
    top: 100%;
}

.validation-summary-errors ul {
    color: rgba(var(--bs-danger-rgb)) !important;
    padding-left: 1rem;
}

.field-validation-error span {
    font-size: 0.875em;
}

.input-validation-error {
    border-color: rgba(var(--bs-danger-rgb)) !important;
}

.maxlength-fs-6 {
    font-size: 0.6500rem !important;
}

.form-check {
    color: var(--bs-secondary);
}

.form-check-with-height {
    min-height: calc(1.5em + 1.625rem);
}

.form-check-select .form-check-stretched-bg::before {
    border: 0.0625rem solid transparent;
    border-radius: 3px;
}

.checkboxlist-container {
    display: grid;
}

/* Medium devices (tablets, less than 992px) */
@media only screen and (max-width: 991.98px) {
    .checkboxlist-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); /* Reduce min width for medium devices */
        grid-gap: 0.4rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .checkboxlist-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
        grid-gap: 0.4rem;
    }
}

.form-check-pinned-top-end .form-check-input:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-select .form-check-input:checked[type=radio], .form-check-select .form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

label.form-check.form-check-select:hover {
    background-color: #f8f9fa !important;
    box-shadow: 0px 3px 2px var(--bs-primary-rehlo);
    border-bottom: 2px solid var(--bs-primary-rehlo);
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.form-label-bold {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700 !important;
}

.form-label-bold.required:after {
    content: " *";
    color: #dc3545;
    font-size: 18px;
}

.form-label-bold-inline {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700 !important;
    padding-top: 15px;
}

    .form-label-bold-inline.required:after {
        content: " *";
        color: #dc3545;
        font-size: 18px;
    }

.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    /* Always center in viewport */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/*.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;*/
    /* Centering */
    /*position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}*/

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#previewGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    /*grid-template-columns: repeat(4, 1fr);*/ /* This will create a grid with 4 equal columns */
    gap: 16px;
}

.imageThumbnail {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This ensures maximum space between the image and the remove button */
    align-items: center;
    border: 1px solid #ccc;
    padding: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 100%; /* It will take full height based on the grid cell */
}


    .imageThumbnail img {
        margin-bottom: 8px;
        max-width: 100%;
    }

.imageDetails {
    text-align: center;
    word-wrap: break-word;
    padding: 0 5px;
    flex-grow: 1; /* This makes the imageDetails element grow to take up any available space */
}

.fileSize {
    margin-bottom: 5px;
}

.removeBtn {
    /*margin-top: 5px;*/
    align-self: center; /* This makes sure the button remains centered and doesn't stretch */
    cursor: pointer;
}

.accordion-collapse {
    background-color: #FFFFFF;
}

.form-switch .form-check-input {
    font-size: small;
    margin-top: 0px;
}

.rounded-circle-touchspin {
    border-radius: 50% !important;
    width: 50px;
    height: 50px;
}

.rounded-circle-touchspin-ml {
    margin-left: 0.1rem;
}
.rounded-circle-touchspin-mr {
    margin-right: 0.1rem;
}

.card-img-final-step {
    width: 100%;
    max-width: 100%;
    height: 300px;
    border-radius: 0.75rem;
}

.card-img-home-listing {
    width: 261px;
    height: 195.75px;
}

.gj-picker-md [role="header"] {
    color: rgba(255, 255, 255, 0.54);
    display: flex;
    background: var(--bs-primary-rehlo);
    align-items: baseline;
    user-select: none;
    justify-content: center;
}

.gj-picker-md [role="footer"] button.gj-button-md {
    color: var(--bs-primary-rehlo);
    font-weight: bold;
    font-size: 13px;
}

.gj-picker-md .arrow-begin {
    background-color: var(--bs-primary-rehlo);
}

.gj-picker-md .arrow-end {
    border: 16px solid var(--bs-primary-rehlo);
}

.card-transition-zoom .card-img-final-step {
    transition: transform 0.4s;
}

.card-transition-zoom:hover .card-img-final-step {
    transform: scale(1.03);
}

@media only screen and (max-width: 384px) {
    .truncated-text {
        width: 350px; /* Adjust width for smaller screens */
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .truncated-text {
        width: 150px; /* Adjust width for medium screens */
    }
}

.truncated-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rounded-top-right {
    border-top-right-radius: var(--bs-border-radius) !important;
}

.rounded-bottom-right {
    border-bottom-right-radius: var(--bs-border-radius) !important;
}

hr {
    margin: 0 0 0.5rem;
}

.title-listing-highlights-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); /* Reduce min width for medium devices */
    grid-gap: 1rem;
}

/* Medium devices (tablets, less than 992px) */
/*@media only screen and (max-width: 991.98px) {
    .title-listing-highlights-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));*/ /* Reduce min width for medium devices */
        /*grid-gap: 0.4rem;
    }
}*/

/* Large devices (desktops, 992px and up) */
/*@media only screen and (min-width: 992px) {
    .title-listing-highlights-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
        grid-gap: 0.4rem;
    }
}*/



.accordion {
    margin-top: 5px;
}

    .accordion h5 {
        margin: 0;
        padding: 10px;
        background-color: rgba(1, 110, 179, 0.075);
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
        .accordion h5 span {
            margin-left: 110px;
        }

.panel {
    display: none; /* Hidden by default */
}

.panel.show {
    display: block; /* Shows the panel when expanded */
}

.panel ul {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0;
}

.panel ul li {
    margin-bottom: 5px;
}

.card-body-custom {
    flex: 1 1 auto;
    padding: 0.7rem 0.7rem 0.7rem 0.7rem;
}

    .card-body-custom:hover {
        background-color: #f8f9fa !important;
        box-shadow: 0px 1px 2px var(--bs-primary-rehlo);
        border-bottom: 2px solid var(--bs-primary-rehlo);
        border-radius: 10px;
        transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    }

.img-fluid-custom-large {
    width: 541px;
    height: 372px;
    object-fit: fill;
}
.img-fluid-custom-small {
    width: 264px;
    height: 182px;
    object-fit: fill;
}

.photo-preview-section {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.cover-photo-container {
    width: 50%;
}

.cover-photo-container,
.additional-four-photos-container,
.additional-four-photos-container-property-detail {
    border: 1px solid #ccc;
    box-sizing: border-box;
    height: 372px;
    position: relative;
    margin: 0;
    background-color: #f0f0f0;
}

.cover-photo-container img,
.additional-four-photos-container img,
.additional-four-photos-container-property-detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.additional-four-photos-container,
.additional-four-photos-container-property-detail {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    overflow: hidden;
}

    .additional-four-photos-container div {
        position: relative;
        overflow: hidden;
        cursor: move;
    }

    .additional-four-photos-container-property-detail div {
        position: relative;
        overflow: hidden;
    }

.additional-photos-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(auto-fit, minmax(169px, 1fr)); /* Adjust minmax values as needed */
    overflow-y: auto;
    gap: 5px;
    overflow: hidden;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
}

    .additional-photos-container img {
        width: 100%;
        height: 169px;
        object-fit: cover;
    }

    .additional-photos-container div {
        position: relative;
        overflow: hidden;
    }

.upload-cover-photo {
    top: 10px;
    right: 10px;
}

.upload-cover-photo,
.upload-additional-photos {
    background-color: #016eb3;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

    .upload-additional-photos.transparent {
        opacity: 0.3;
    }

    .upload-additional-photos:hover {
        opacity: 1;
    }

.upload-additional-photos {
    margin-top: 12px;
    right: 25px;
    position: absolute;
}

.remove-photo {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
}

input[type="file"] {
    display: none;
}

.cover-photo-placeholder,
.additional-photo-placeholder {
    width: 100%;
    height: 100%;
    background: url('/PropertyPhotos/no-image-available-small.webp') no-repeat center center;
    background-size: cover;
    top: 0;
    left: 0;
    z-index: 0;
}

@keyframes fadeInForListingContainer {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-for-listing-container {
    animation: fadeInForListingContainer 0.5s ease-in-out;
}

.loader-for-listing-container {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: 20px auto; /* Center horizontally */
    display: block; /* Ensure it takes up space */
    z-index: 9999;
}

.form-check-input-regular,
.form-check-label-regular {
    cursor: pointer;
}

.form-check-label-regular {
    font-size: 0.875rem;
}

.form-check-regular {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
    margin-bottom: 0.125rem;
}

    .form-check-regular .form-check-input-regular {
        float: left;
        margin-left: -1.5rem;
    }

.form-check-input-regular {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #dce0e5;
    appearance: none;
    print-color-adjust: exact;
}

    .form-check-input-regular[type=checkbox] {
        border-radius: 0.25em;
    }

    .form-check-input-regular:active {
        filter: 100%;
    }

    .form-check-input-regular:focus {
        border-color: rgba(140, 152, 164, 0.25);
        outline: 0;
        box-shadow: 0 0 1rem 0 rgba(140, 152, 164, 0.25);
    }

    .form-check-input-regular:checked {
        background-color: var(--bs-primary-rehlo);
        border-color: var(--bs-primary-rehlo);
    }

        .form-check-input-regular:checked[type=checkbox] {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
        }

    .form-check-input-regular[disabled] ~ .form-check-label-regular, .form-check-input-regular:disabled ~ .form-check-label-regular {
        cursor: default;
        opacity: 0.5;
    }

.form-check-label-regular {
    color: var(--bs-secondary);
}

.sw-btn-prev {
    float: left;
    margin-right: auto;
}


/* Start - For Listing Title Page */
.listing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.listing-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

    .listing-card:hover {
        transform: scale(1.05);
    }

.listing-fixed-height-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .listing-card-content h3 {
        margin: 0 0 10px;
        font-size: 1.2em;
    }

    .listing-card-content p {
        margin: 0 0 5px;
        color: #555;
    }

.listing-price {
    font-weight: bold;
    color: #000;
}
/* End - For Listing Title Page */


/* Start - For Property Details Page 5 Images Only */
.listing-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.listing-image-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 372px;
}

.listing-left-image {
    grid-row: span 2;
    height: 372px;
}

    .listing-left-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.listing-right-image {
    width: 100%;
    height: 182px;
}

    .listing-right-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

@media (max-width: 768px) {
    .listing-image-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        height: auto;
    }

    .listing-left-image {
        grid-row: span 1;
        height: 370px;
    }

    .listing-right-image img {
        height: 182px;
    }
}
/* End - For Property Details Page 5 Images Only */


@media (max-width: 768px) {
    .hide-footer {
        display: none;
    }
}



/* Start - Pricing Summary */
.summary {
    padding: 20px;
    text-align: left;
}

    .summary h3 {
        margin-bottom: 12px;
        font-size: 18px;
        color: #333;
        text-align: center;
    }

    .summary p {
        margin: 8px 0;
        font-size: 14px;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
    }

    .summary hr {
        border: none;
        border-top: 1px solid #ccc;
        margin: 10px 0;
    }
/* End - Pricing Summary */



.form-control-style {
    border-bottom: 3px solid var(--bs-border-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .form-control-style:focus {
        border-color: #eee;
        border-bottom-color: var(--bs-primary-rehlo);
        box-shadow: 0 4px 8px rgba(1, 110, 179, 0.3);
        border-radius: 5px;
    }

.radio-option-title {
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 4px;
}

.radio-option-title-nested {
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 4px;
}


/* Start - Operating Hours */

.day-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    width: 100%;
    gap: 12px;
}

.day-label {
    display: inline-block;
    min-width: 30px;
    text-align: left;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
    flex-shrink: 0;
    padding-right: 10px;
}

.time-slot-container {
    display: flex;
    flex-direction: column;
}

.time-slot {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto; /* Prevents squishing, adds scroll if needed */
}

.add-btn, .remove-btn {
    background: none;
    border: none;
    padding: 5px 5px;
    color: var(--bs-primary-rehlo);
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    min-width: 110px;
    text-align: left;
}

.remove-btn {
    color: rgba(var(--bs-danger-rgb)) !important;
}

.form-select {
    padding: 0.50rem 2.4375rem 0.50rem 0.8125rem;
    background-position: right 0.5rem center !important;
    min-width: 125px;
}

/* Mobile handling */
@media (max-width: 896px) {
    .day-row {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .toggle-container {
        width: auto;
    }

    .time-slot-container {
        flex: 1;
        flex-wrap: wrap;
        display: flex;
        min-width: 0;
    }

    .time-slot {
        flex-wrap: wrap;
        width: 100%;
    }

    .form-select {
        min-width: 100px;
        width: 100%;
    }
}

#instant-options {
    transition: all 0.3s ease;
}
/* End - Operating Hours */




.option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 15px;
}

.option-group {
    margin-bottom: 20px;
}

.option label {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.option select {
    width: 180px;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.hint {
    font-size: 13px;
    color: #6c757d;
    margin: 4px 0 0;
    line-height: 1.4;
    font-style: italic;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .radio-option:hover {
        background-color: #f8f9fa !important;
        box-shadow: 0px 3px 2px var(--bs-primary-rehlo);
        border-bottom: 2px solid var(--bs-primary-rehlo);
        transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    }

    .radio-option.selected {
        background-color: #f0f7ff;
        border: 1px solid #0076C0;
    }

    .radio-option input {
        margin-top: 4px;
    }

.option-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.option-description {
    font-size: 14px;
    color: #6c757d;
    margin-top: 4px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.nested-options {
    margin-top: 15px;
    margin-left: 24px;
}

.radio-simple {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.radio-simple-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.radio-simple .hint {
    margin-left: 0px;
    margin-top: 4px;
}

.nested-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.nested-options .radio-simple input[type="radio"] {
    margin: 0;
}

.suggestions-box .refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .suggestions-box .refresh-btn:hover {
        transform: rotate(180deg);
    }



.setup-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.setup-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}

    .setup-item i {
        color: var(--bs-primary-rehlo);
        font-size: 1.25rem;
        padding-top: 2.25rem;
    }

.setup-content h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.setup-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.confirmation-section {
    display: flex;
    flex-direction: column;
    /*gap: 1rem;*/
    padding: 1.5rem;
    background-color: var(--bs-light-grey);
    border-radius: 8px;
}

.confirmation-header {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 1.25rem 0;
}

.checkbox-wrapper {
    /*position: relative;*/
    /*padding-bottom: 1.2rem;*/ /* reserve space for the error */
    /*margin-bottom: 1rem;*/ /* space between each checkbox section */
}

.checkbox-error {
    display: block;
    min-height: 1rem; /* just enough for 1 line of text */
    font-size: 0.875rem;
    color: red;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

    .checkbox-item input[type="checkbox"] {
        min-width: 18px;
        width: 18px;
        height: 18px;
        margin-top: 0.125rem;
        border: 1px solid var(--text-secondary);
        border-radius: 4px;
        cursor: pointer;
        accent-color: var(--bs-primary-rehlo);
    }

    .checkbox-item label {
        color: var(--text-secondary);
        font-size: 0.875rem;
        line-height: 1.5;
        cursor: pointer;
    }

        .checkbox-item label a {
            color: var(--bs-primary-rehlo);
            text-decoration: none;
            font-weight: 500;
        }

            .checkbox-item label a:hover {
                text-decoration: underline;
            }

/* Rules Section */
.rule-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /*padding: 0.5rem 0;*/
}

.rule-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rule-label {
    font-size: 0.875rem;
    font-weight: 700 !important;
    flex: 1;
}

    .rule-label.required:after {
        content: " *";
        color: #dc3545;
        font-size: 18px;
    }

.rule-options {
    display: flex;
    gap: 0.5rem;
}

.rule-btn {
    flex: 1 1 0; /* Make all buttons share equal width */
    text-align: center; /* Center text inside the button */
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    min-width: 60px; /* Ensures buttons don’t shrink below this */
    max-width: 100%; /* Prevents overflow */
    word-wrap: break-word; /* Wraps long words if needed */
}

    .rule-btn:hover {
        border-color: var(--bs-border-color);
        background-color: rgba(var(--bs-primary-rehlo-rgb), 0.1);
        color: #3498db;
    }

    .rule-btn.active {
        background: var(--bs-primary-rehlo);
        color: #fff;
        border-color: var(--bs-border-color);
    }

.min-width-0 {
    min-width: 0;
}
@media (max-width: 576px) {
    .d-flex.flex-wrap > * {
        flex: 0 0 100%;
    }
}
