/* apartment.css - apartment_list.html / apartment_detail.html only (extracted from style.css). */

/* --- from style.css lines 3516-3683 --- */
/* SEO Block */
.content-wrapper {
    display: flex;
    flex-direction: column;
}

/* Порядок отображения элементов на страницах daily и hourly */
.content-wrapper .order-1 {
    order: 1;
}

.content-wrapper .order-2 {
    order: 2;
}

.content-wrapper .order-3 {
    order: 3;
}

.content-wrapper .order-4 {
    order: 4;
}

.seo-block {
    position: relative;
    overflow: hidden; /* Hide overflowing content */
    max-height: 40px; /* Initially show only the title */
    transition: max-height 0.5s ease; /* Smooth transition for reveal */
	background-color: #f0f0f0; /* Light gray background */
}

.seo-block:hover {
    max-height: 1000px; /* Expand to full height on hover */
}

.seo-title {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    text-align: center; /* Center align title */
}

.seo-content {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 10px;
    padding: 0 10px; /* Optional: Add padding for better readability */
}


/* Apartment List */
.apartment-list {
    margin: 20px 0;
}

.apartment-list h2 {
    text-align: center;
    text-transform: uppercase; /* Make text uppercase */
}

.apartment {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
	background-color: #f0f0f0; /* Light gray background */
}

.apartment-title {
    font-size: 20px;
    margin: 10px 0;
    text-align: center; /* Center align title */
    text-transform: uppercase; /* Make text uppercase */
}

/* Add hover effect to apartment photos */
.apartment-photo {
    display: block;
    margin: 0 auto; /* Center align image */
    transition: transform 0.3s ease; /* Smooth transition */
}

.apartment-photo:hover {
    transform: scale(1.05); /* Slightly enlarge the image */
}

.apartment-details {
    text-align: left; /* Align text to the left */
}

.apartment-details p {
    font-size: 16px;
    margin: 5px 0;
    display: flex;
}

.apartment-details .label {
    width: 80px; /* Adjust width to align text in column */
    font-weight: bold;
	text-align: right;
	margin-right: 10px;
}

.apartment-more {
    display: block; /* Make button block level */
    text-align: center; /* Center align button text */
    padding: 8px 16px; /* Smaller padding for button */
    margin: 10px auto; /* Center align button */
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px; /* Smaller font size for button */
    width: fit-content; /* Fit button width to content */
}

.apartment-more:hover {
    background-color: #0056b3;
}

/* Style for apartment link */
.apartment-link {
    text-decoration: none; /* Remove underline from link */
    color: inherit; /* Inherit color from parent */
    display: block; /* Make the link block-level to include image and title */
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.apartment-link:hover {
    transform: scale(1.05); /* Slightly enlarge the link on hover */
}

/* Styles for apartment card */
.apartment-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.apartment-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.apartment-address,
.apartment-rooms,
.apartment-floor,
.apartment-beds,
.apartment-price-daily,
.apartment-price-hourly {
    font-size: 16px;
    margin-bottom: 5px;
}

.booking-form {
    margin-top: 20px;
}

.contact-buttons {
    margin-top: 20px;
}

.contact-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}


/* --- from style.css lines 3689-3715 --- */
.row .col-md-4 p {
    display: flex;
    align-items: center;
}

.row .col-md-4 img {
    margin-right: 10px;
}

.carousel-item img {
    max-width: 100%;
    max-height: 450px; /* Set a max height */
    /*object-fit: contain;  Maintain aspect ratio */
    width: auto; /* Override the width to allow vertical images */
    height: auto; /* Override the height to allow vertical images */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure the carousel works well on mobile devices */
@media (max-width: 768px) {
    .carousel-item img {
        max-height: 300px; /* Adjust max height for smaller screens */
    }
}


/* --- from style.css lines 3956-3979 --- */
/* Выровнять текст по левой стороне и создать отступы после двоеточий */
.apartment-info .info {
    text-align: left;
    margin-left: 10px;
}

.apartment-info .info p {
    display: flex;
    justify-content: flex-start;
    gap: 10px; /* Регулируйте значение по необходимости */
}

.apartment-info .info .info-value {
    margin-left: 0;
    flex-grow: 1;
}

/* Оранжевая кнопка */
.btn-warning {
    background-color: #ff9800;
    border-color: #ff9800;
    color: #fff;
}


/* --- from style.css lines 4001-4076 --- */
/* Стиль для apartment-description */
.apartment-description {
    background-color: #f8f9fa; /* или другой нужный цвет */
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Выравнивание заголовка h3 по центру и отступы сверху и снизу */
.apartment-description h3 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Стиль для apartment-features */
.apartment-features {
    background-color: #ffffff; /* Белый фон */
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Выравнивание заголовка h3 по центру и отступы сверху и снизу */
.apartment-features h3 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.apartment-nearby {
    background-color: #f8f8f8; /* Светло-серый фон */
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.apartment-nearby h3 {
    text-align: center;
    margin-bottom: 20px;
}

.apartment-nearby ul {
    list-style: none;
    padding: 0;
}

.apartment-nearby li {
    font-size: 16px;
    margin-bottom: 10px;
}

.apartment-location {
    background-color: #fff; /* Белый фон */
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.apartment-location h3 {
    text-align: center;
    margin-bottom: 20px;
}

.map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}



/* --- from style.css lines 4150-4205 --- */
.carousel-inner {
    width: 100%;
    max-height: 400px; /* Устанавливаем максимальную высоту для изображений */
    overflow: hidden; /* Обрезаем слишком большие изображения */
}

.carousel-inner img {
    width: auto; 
    height: 100%; /* Задаем 100% высоты */
    max-height: 400px; /* Ограничиваем высоту */
    object-fit: contain; /* Сохраняем пропорции */
    display: block;
    margin: 0 auto; /* Центрируем изображение */
}

.apartment-info .info span {
    margin-left: 5px;
}

.apartment-info .info p {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.apartment-info .info {
    text-align: left;
}

@media (max-width: 768px) {
    .carousel-inner {
        max-height: 300px; /* Уменьшаем максимальную высоту для мобильных устройств */
    }
    
    .carousel-inner img {
        height: 100%; /* Сохраняем высоту на 100% */
        max-height: 300px; /* Ограничиваем высоту */
    }
    
    .apartment-info .info {
        font-size: 14px; /* Уменьшаем размер текста для мобильных устройств */
    }
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent; /* Transparent background */
    border-radius: 50%;
    padding: 10px;
    filter: invert(0.6); /* Turn white arrow to dark gray */
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    background-color: transparent; /* Ensure no inner background */
}


/* --- from style.css lines 4299-4338 --- */
/* FAQ Section Custom Styles */
.faq-section .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px !important;
    margin-bottom: 10px;
    box-shadow: none;
    overflow: hidden;
}

.faq-section .card-header {
    background-color: #fdfdfd !important; /* Very light, almost white */
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
}

.faq-section .btn-link {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600;
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    transition: background-color 0.2s;
}

.faq-section .btn-link:hover,
.faq-section .btn-link[aria-expanded="true"] {
    background-color: #f8f9fa !important; /* Pastel gray on hover/active */
    color: #ff6600 !important; /* Orange accent */
}

.faq-section .card-body {
    background-color: #fff;
    color: #555;
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
}


/* --- from style.css lines 4460-4964 --- */
/* --- Apartment Cards Improvements --- */
.apartment {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e0e0e0; /* Light border to define shape */
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    background-color: #f9f9f9; /* Slightly gray background */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    margin-bottom: 0; /* Removed margin-bottom to let grid handle gap */
}

.apartment:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: #fff; /* Highlight to white on hover */
    border-color: #d0d0d0;
}

.apartment-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.apartment-photo {
    width: 100%;
    height: 240px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image nicely */
    transition: transform 0.5s ease;
}

.apartment:hover .apartment-photo {
    transform: scale(1.05);
}

.apartment-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Push footer to bottom */
    text-align: left;
}

.apartment-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    text-transform: none; /* Remove uppercase forced */
    text-align: left;
    min-height: auto; /* Let it grow if needed, flex handles alignment */
}

.apartment-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.apartment-title a:hover {
    color: #ff6600;
}

.apartment-address {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.apartment-address i {
    margin-right: 5px;
    color: #999;
}

/* Price and Button at bottom */
.apartment-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apartment-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.apartment-price small {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
}

/* --- Filter Section Improvements --- */
.filter-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.filter-section form {
    border: none !important; /* Remove inline border style override */
    background: transparent !important;
    padding: 0 !important;
}

.filter-section label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 5px;
}

.filter-section .form-control-sm {
    height: calc(2.2rem + 2px);
    font-size: 0.95rem;
    border-color: #ddd;
}

.filter-section .form-control-sm:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.15);
}

/* --- FAQ Section Improvements --- */
.faq-section {
    background-color: #f4f6f8; /* Muted pastel blue-gray */
    padding: 60px 0;
}

.faq-section h2 {
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
}

.faq-section .card {
    border: none;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    background: #fff;
    border-radius: 8px !important;
    overflow: hidden;
}

.faq-section .card-header {
    background-color: #fff !important;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
}

.faq-section .btn-link {
    padding: 20px 25px;
    color: #444 !important;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
}

.faq-section .btn-link:hover {
    background-color: #fffbf7 !important; /* Very light orange tint on hover */
    color: #ff6600 !important;
}

.faq-section .card-body {
    padding: 20px 25px 30px;
    color: #666;
    line-height: 1.7;
}

/* Badges */
.badge-top {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ffc107;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* --- Elegant Room Badge --- */
.badge-rooms {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px; /* Pill shape like stars */
    font-weight: 600;
    z-index: 2;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Metro Colors */
.text-metro-red { color: #e74c3c !important; font-weight: 600; }
.text-metro-blue { color: #3498db !important; font-weight: 600; }
.text-metro-green { color: #27ae60 !important; font-weight: 600; }

/* Filter Sidebar */
.filter-sidebar .form-group {
    margin-bottom: 1rem;
}

.filter-sidebar label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.btn-block {
    display: block;
    width: 100%;
}


/* --- Elegant Buttons --- */
.filter-section .btn {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    font-weight: 700;
    border-radius: 50px; /* Pill shape for elegance */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.filter-section .btn + .btn {
    margin-top: 10px;
}

/* Find Button (removed orange duplicate) */

/* Reset Button (removed duplicate) */

/* --- Apartment Card Location Info --- */
.apartment-location-info {
    margin-bottom: 15px;
    line-height: 1.4;
}

.info-district {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-address {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.info-address i {
    margin-right: 5px;
    font-size: 1.1rem;
    color: #999;
}

.info-metro {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.info-metro i {
    font-size: 1rem;
    margin-right: 4px;
}

/* --- Elegant FAQ --- */
.faq-section .card {
    border: none;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0 !important;
    margin-bottom: 0;
}

.faq-section .card:last-child {
    border-bottom: none;
}

.faq-section .card-header {
    background: transparent !important;
    border: none;
    padding: 0;
}

.faq-section .btn-link {
    padding: 20px 0;
    color: #333 !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-section .btn-link:hover,
.faq-section .btn-link[aria-expanded="true"] {
    color: #ff6600 !important;
    text-decoration: none !important;
    background-color: transparent !important;
}

.faq-section .card-body {
    padding: 0 0 25px 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* Rotate icon on expand */
.faq-section .btn-link .material-icons {
    transition: transform 0.3s ease;
}

.faq-section .btn-link[aria-expanded="true"] .material-icons {
    transform: rotate(180deg);
}



/* --- Reset Button Readability --- */
.filter-section .btn-outline-secondary {
    background-color: #6c757d !important; /* Gray background */
    border-color: #6c757d !important;
    color: #fff !important; /* White text */
    font-weight: 700;
}

.filter-section .btn-outline-secondary:hover {
    background-color: #dc3545 !important; /* Red background */
    border-color: #dc3545 !important;
    color: #fff !important; /* White text */
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* --- Checkboxes: Label Left, Box Right --- */

/* --- Elegant More Button --- */
.apartment-footer .btn,
.apartment-footer .btn.btn-outline-primary {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: #007bff !important; /* Blue background */
    background-image: none !important; /* Ensure no gradient */
    border-color: #007bff !important;
    color: #fff !important; /* White text */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.apartment-footer .btn:hover,
.apartment-footer .btn.btn-outline-primary:hover {
    background-color: #28a745 !important; /* Green background on hover */
    background-image: none !important; /* Ensure no gradient */
    border-color: #28a745 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
}

/* --- Rating Stars --- */
.rating-stars {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rating-stars i {
    color: #ffc107;
    font-size: 1rem;
    margin-right: 1px;
}

.rating-stars i:last-child {
    margin-right: 0;
}

/* --- Filter Buttons: Common Styles --- */
.filter-section .btn {
    background-image: none !important; /* Remove gradient */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    font-weight: 700;
    border-radius: 50px;
}

/* Find Button (Найти) */
.filter-section .btn-primary {
    background-color: #007bff !important; /* Blue background */
    border-color: #007bff !important;
    color: #fff !important; /* White text */
}

.filter-section .btn-primary:hover {
    background-color: #28a745 !important; /* Green background on hover */
    border-color: #28a745 !important;
    color: #fff !important; /* White text */
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}
.filter-section .custom-control.custom-checkbox {
    padding-left: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.filter-section .custom-control-label {
    position: relative;
    padding-left: 0;
    padding-right: 2rem; /* Space for box on right */
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.filter-section .custom-control-label::before,
.filter-section .custom-control-label::after {
    left: auto !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%);
}

/* --- Disable Ripple Effect for Filter Buttons to prevent Blue Overlay --- */
.filter-section .btn .el-ripple-circle {
    display: none !important;
}

/* --- Disable Ripple Effect for Apartment Buttons too --- */
.apartment-footer .btn .el-ripple-circle {
    display: none !important;
}

/* --- Video Button Red (YouTube Style) --- */
button[data-target="#videoModal"],
button[data-toggle="modal"][data-target="#videoModal"] {
    background: #FF0000 !important; /* YouTube Red */
    background-image: none !important; /* Remove gradient */
    border-color: #FF0000 !important;
    color: #fff !important;
}

button[data-target="#videoModal"]:hover,
button[data-toggle="modal"][data-target="#videoModal"]:hover {
    background: #CC0000 !important; /* Darker red on hover */
    background-image: none !important;
    border-color: #CC0000 !important;
    color: #fff !important;
}



/* --- from style.css lines 5046-5116 --- */
/* Beautiful Pagination Styles */
.pagination {
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-item .page-link {
    color: #ff6600;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    background-color: #fff;
}

.page-item .page-link:hover:not(.disabled) {
    background-color: #fff5f0;
    border-color: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15);
}

.page-item.active .page-link {
    background-color: #ff6600;
    border-color: #ff6600;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
    border-color: #f0f0f0;
}

.page-item .page-link .material-icons {
    display: inline-block;
    vertical-align: middle;
}

.pagination .ms-3 {
    margin-left: auto !important;
    margin-right: 0;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination {
        gap: 0.25rem;
        font-size: 0.9rem;
    }

    .page-item .page-link {
        padding: 0.4rem 0.6rem;
        min-width: 36px;
        font-size: 0.9rem;
    }

    .pagination .ms-3 {
        margin-left: 0.5rem !important;
    }

    .pagination .gap-2 {
        gap: 0.25rem !important;
    }
}


