/* Main Layout */
.main-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
    padding: 1rem;
    margin-top: 10px;
    min-height: calc(100vh - 70px);
    background-color: var(--background-color);
}


/* Стилі для міст-кнопок */
.city-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 3px;
}

.city-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 12px;
    min-width: 80px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.city-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.city-btn span {
    position: relative;
    z-index: 2;
}

.city-btn:hover {
    border-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.city-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(43, 136, 217, 0.3);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.menu-item {
    margin-bottom: 0.5rem;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-item.active a,
.menu-item a:hover {
    background-color: var(--primary-color);
    color: white;
}

.menu-item i {
    margin-right: 0.8rem;
}

.badge {
   background: var(--secondary-color);
   color: white;
   padding: 4px;
   min-width: 24px;
   height: 24px;
   border-radius: 6px;
   font-size: 12px;
   font-weight: 600;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-left: auto;
   text-transform: uppercase;
}

/*.badge {*/
/*    background: var(--secondary-color);*/
/*    color: white;*/
/*    padding: 0.2rem 0.6rem;*/
/*    border-radius: 12px;*/
/*    font-size: 0.8rem;*/
/*    margin-left: auto;*/
/*}*/

/*!*.badge {*!*/
/*!*    padding: 0.3rem 0.6rem;*!*/
/*!*    border-radius: 4px;*!*/
/*!*    font-size: 0.75rem;*!*/
/*!*    font-weight: 500;*!*/
/*!*    text-transform: uppercase;*!*/
/*!*    color: white;*!*/
/*!*}*!*/

/* Main Content Styles */
.content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Property Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    position: relative;
    height: 200px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background: var(--primary-color);
    color: white;
}

.property-info {
    padding: 1rem;
}

.property-location {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    color: #666;
}

.property-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Filters Styles */
.filters {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.filter-header{
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
    margin-bottom: 1rem;
}
.reset-filters {
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h4 {
    margin-bottom: 1rem;
}

.filter-section button {
    margin-bottom: 1rem;
}

.price-range, .area-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input, .area-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
}


.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start; /* Вирівнюємо елементи вліво */
    width: 100%; /* Повна ширина групи */
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    width: 100%; /* Повна ширина лейбла */
    justify-content: flex-start; /* Вирівнюємо вміст лейбла вліво */
}

.checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-custom:after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkbox-custom:after {
    display: block;
}

.checkbox-text {
    font-size: 13px;
    color: #666;
}

/* Hover ефекти */
.checkbox-label:hover .checkbox-custom {
    border-color: var(--primary-color);
}

.checkbox-label:hover .checkbox-text {
    color: var(--primary-color);
}

.range-slider {
    margin-top: 0.5rem;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: #666;
}

.rooms-buttons {
    display: flex;
    gap: 0.5rem;
}

.room-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.room-btn.active,
.room-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.apply-filters {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apply-filters:hover {
    background: var(--secondary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.page-btn.active,
.page-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 200px 1fr 250px;
    }
}

@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .mobile-filters-btn {
        display: block;
    }
}

/* Медіа-запити для адаптивної сітки */
@media (min-width: 1400px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки для великих екранів */
    }
}

@media (min-width: 1600px) {
    .properties-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 колонки для дуже великих екранів */
    }
}

@media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки для середніх екранів */
    }
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr; /* 1 колонка для мобільних */
    }

    .main-container {
        grid-template-columns: 1fr;
        padding: 0.75rem;
        margin-top: 5px; /* Ще менший відступ для мобільних */
    }
}


/* Property Card Styles */
.property-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Image Container */
.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

/* Badges */
.property-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 0.5rem;
}


.badge-rent {
    background-color: #4CAF50;
}


/* Property Info */
.property-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.property-info h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    color: var(--text-color);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.map-link {
    color: var(--primary-color);
    margin-left: auto;
}



.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    background: white;
    color: var(--text-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Іконки в кнопках */
.page-btn i {
    font-size: 0.8rem;
}

/* Адаптивність */
@media (max-width: 768px) {

    .page-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 0.4rem;
    font-size: 0.75rem;
}
}
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
    margin-bottom: 2rem;
}

/* Додаткова інформація про сторінки */
.pagination-info {
    text-align: center;
    color: #666;
    font-size: 0.3rem;
    margin-top: 0.1rem;
}


.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.monitor-badge {
   background: #ff4444;
   color: white;
   padding: 4px;
   min-width: 24px;
   height: 24px;
   border-radius: 6px;
   font-size: 12px;
   font-weight: 600;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-left: auto;
   text-transform: uppercase;
}


.user-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.user-email {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover ефект */
.sidebar-header:hover .user-avatar {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Адаптивність */
@media (max-width: 768px) {

    .user-profile {
        gap: 8px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .user-email {
        font-size: 13px;
    }
}

.sidebar-header {
    padding: 16px;
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
}

.sidebar-header.active {
    background-color: var(--primary-color);
}

.sidebar-header.active .user-email {
    color: white;
}

.user-profile-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease;
}

.user-profile:hover {
    transform: translateX(5px);
}

.sidebar-header:hover {
    background-color: var(--primary-color);
    cursor: pointer;
}

.sidebar-header:hover .user-email {
    color: white;
}

.content-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 200px;
}

.search-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
}

.search-btn:hover {
    color: var(--primary-color);
}

/* Оновлені стилі для групи валют */
.currency-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap; /* Запобігаємо переносу на новий рядок */
    justify-content: flex-start;
    gap: 16px;
    width: 100%; /* Займає всю ширину батьківського елемента */
    max-width: 300px; /* Обмежуємо максимальну ширину */
    padding: 8px 0;
}

.currency-group .checkbox-label {
    flex: 0 0 auto; /* Не розтягуємо елементи */
    width: auto; /* Ширина по контенту */
    min-width: unset; /* Прибираємо мінімальну ширину */
}

/* Для кращого вирівнювання тексту */
.currency-group .checkbox-text {
    margin-left: 4px;
    white-space: nowrap;
}


.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 8px;
    padding: 8px 4px;
    margin-top: -10px;
    margin-bottom: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px;
    width: 100%;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background: var(--secondary-color);
}

/* Кнопка зворотнього зв'язку */
.feedback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Стилі форми */
.feedback-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.sort-container {
    display: flex;
    align-items: center;
    margin: 5px 0 5px;
    padding: 0 5px;
}

.sort-label {
    margin-right: 10px;
    font-size: 14px;
    color: #666;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    margin-right: 8px;
    background-color: var(--secondary-color);
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.sort-btn:hover {
    background-color: var(--primary-color);
}

.sort-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--secondary-color);
}

.sort-btn i {
    margin-left: 5px;
}

.form-group select,
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-group label{
    display: flex;
    align-items: center;
    gap: 2px;
}
.checkbox-group span {
    font-size: 14px;
    color: #666;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Повідомлення про успіх */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.logo-fed{ display: flex;
    align-items: center;
    gap: 8px;
    background-color: #8C9052;
    opacity: 0.7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-fed:hover {
    background: #5C6344;
    transform: translateY(-2px);
}


.scrollable-group {
        max-height: 200px;
        overflow-y: auto;
        padding-right: 10px;
    }

    .checkbox-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .checkbox-label {
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .checkbox-wrapper {
        margin-right: 8px;
    }

    /* Стилізація скролбару */
    .scrollable-group::-webkit-scrollbar {
        width: 6px;
    }

    .scrollable-group::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .scrollable-group::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    .scrollable-group::-webkit-scrollbar-thumb:hover {
        background: #555;
    }


        ::-webkit-scrollbar {
  display: none;
}

/* Для Firefox */
html {
  scrollbar-width: none;
}