body {
    background-color: #f5f7fb;
}

.page-title {
    font-weight: 700;
    color: #243447;
    margin-bottom: 4px;
}

.page-description {
    color: #6c757d;
    margin-bottom: 0;
}

.filter-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(33, 37, 41, 0.06);
}

.property-card {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(33, 37, 41, 0.07);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(33, 37, 41, 0.12);
}

.property-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #e9ecef;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-status {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.property-code {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 12px;
}

.property-title {
    font-size: 18px;
    font-weight: 700;
    color: #253347;
    margin-bottom: 5px;
}

.property-location {
    color: #6c757d;
    font-size: 14px;
    min-height: 42px;
}

.property-price {
    font-size: 23px;
    font-weight: 700;
    color: #146c43;
}

.property-price-period {
    font-size: 13px;
    color: #6c757d;
    font-weight: 400;
}

.property-details {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    margin-top: 12px;
    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #536273;
    font-size: 13px;
}

.property-detail i {
    font-size: 17px;
    color: #3b7ddd;
}

.operation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

.operation-sale {
    background-color: #e8f2ff;
    color: #1b64b1;
}

.operation-rent {
    background-color: #fff3cd;
    color: #8a6300;
}

.empty-properties {
    padding: 70px 20px;
    text-align: center;
    color: #6c757d;
}

.empty-properties i {
    display: block;
    margin-bottom: 16px;
    font-size: 60px;
    color: #ccd3da;
}

.modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.modal-header {
    padding: 22px 26px;
    border-bottom: 1px solid #edf0f3;
}

.modal-body {
    padding: 26px;
    background-color: #f8f9fb;
}

.modal-footer {
    padding: 18px 26px;
    border-top: 1px solid #edf0f3;
}

.form-section {
    padding: 22px;
    margin-bottom: 20px;
    background-color: white;
    border: 1px solid #edf0f3;
    border-radius: 14px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    color: #243447;
}

.form-section-title i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 9px;
    background-color: #eaf2ff;
    color: #3b7ddd;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5968;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: #dce1e7;
    border-radius: 9px;
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(59, 125, 221, 0.12);
}

.switch-option {
    height: 100%;
    padding: 16px;
    border: 1px solid #e0e4e9;
    border-radius: 11px;
    background-color: #fafbfc;
}

.switch-option-title {
    font-weight: 600;
    color: #334155;
}

.switch-option-description {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #6c757d;
}

.image-upload-area {
    padding: 34px 20px;
    border: 2px dashed #cbd3dc;
    border-radius: 13px;
    background-color: #fafbfc;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.image-upload-area:hover,
.image-upload-area.dragging {
    border-color: #3b7ddd;
    background-color: #f1f6ff;
}

.image-upload-area i {
    display: block;
    margin-bottom: 12px;
    font-size: 42px;
    color: #3b7ddd;
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.image-preview-card {
    position: relative;
    overflow: hidden;
    height: 135px;
    border: 2px solid transparent;
    border-radius: 11px;
    background-color: #e9ecef;
}

.image-preview-card.cover {
    border-color: #3b7ddd;
}

.image-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-actions {
    position: absolute;
    right: 7px;
    top: 7px;
    display: flex;
    gap: 5px;
}

.image-preview-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background-color: rgba(0, 0, 0, 0.65);
    color: white;
}

.image-cover-label {
    position: absolute;
    left: 7px;
    bottom: 7px;
    padding: 5px 8px;
    border-radius: 6px;
    background-color: #3b7ddd;
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.image-counter {
    font-weight: 600;
    color: #3b7ddd;
}

.floating-add-button {
    display: none;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(59, 125, 221, 0.35);
}

.view-selector .btn {
    width: 42px;
}

@media (max-width: 767px) {
    .desktop-add-button {
        display: none;
    }

    .floating-add-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .property-image-wrapper {
        height: 205px;
    }

    .modal-body {
        padding: 14px;
    }

    .form-section {
        padding: 17px;
    }
}

/* ****************************************************************/
.icon-min-button {
    background: none; /* No background color */
    border: none; /* No border */
    padding: 0; /* Remove extra space */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20vw; /* Adjusts with screen size */
    max-width: 220px; /* Prevents it from getting too big */
    min-width: 220px; /* Prevents it from getting too small */
}

.icon-min-button img {
    width: 100%; /* Makes the image adapt to the button */
    height: auto; /* Maintains aspect ratio */
    transition: opacity 0.3s ease-in-out; /* Smooth transition */
}


@media (max-width: 600px) {
    .icon-min-button {
        width: 40vw; /* Increase size on smaller screens */
    }
}