/* Apartments Page Styles */
.apartments-wrapper {
    min-height: 100vh;
}

/* Page Header */
.page-header {
    position: relative;
    height: 400px;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3b79a3 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.page-header-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background: linear-gradient(135deg, rgb(30 60 114 / 31%) 0%, rgb(42 82 152 / 38%) 50%, rgb(59 121 163 / 7%) 100%);
    backdrop-filter: blur(1px);
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.page-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
}

.page-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #ffd700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Apartments Section */
.apartments-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.apartment-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.apartment-card.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apartment-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.apartment-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.apartment-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.15);
}

.apartment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8), rgba(255, 215, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.apartment-card:hover .apartment-overlay {
    opacity: 1;
}

.view-btn {
    padding: 15px 40px;
    background: #ffffff;
    color: #2a5298;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.apartment-content {
    padding: 25px;
}

.apartment-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.apartment-location {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apartment-location i {
    color: #2a5298;
}

.apartment-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2a5298;
}

.apartment-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #999;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    padding: 12px 25px;
    background: #ffffff;
    border: 2px solid #2a5298;
    color: #2a5298;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover {
    background: #2a5298;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    color: #333;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    border-color: #2a5298;
    color: #2a5298;
    transform: translateY(-2px);
}

.pagination-number.active {
    background: linear-gradient(135deg, #2a5298 0%, #3b79a3 100%);
    color: #ffffff;
    border-color: #2a5298;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.pagination-dots {
    color: #999;
    padding: 0 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        height: 300px;
        margin-top: 60px;
    }

    .apartments-section {
        padding: 50px 15px;
    }

    .apartments-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }

    .apartment-card {
        border-radius: 15px;
    }

    .apartment-image {
        height: 220px;
    }

    .apartment-content {
        padding: 20px;
    }

    .apartment-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .apartment-location {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .apartment-price {
        font-size: 1.5rem;
    }

    .apartment-overlay {
        padding: 15px;
    }

    .view-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .pagination-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .pagination-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Apartment Detail Page */
.apartment-detail-wrapper {
    min-height: 100vh;
}

.breadcrumb-section {
    padding: 20px 0;
    margin-top: 80px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    padding: 0 15px;
}

.breadcrumb a {
    color: #2a5298;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1e3c72;
}

.breadcrumb span {
    color: #999;
}

/* Gallery */
.apartment-gallery {
    padding: 40px 20px;
    background: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 20px;
}

.gallery-main {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    background: #f0f0f0;
    transition: all 0.3s ease;
}

.gallery-main:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: translateY(-5px);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    display: block;
}

.gallery-main img.loading {
    opacity: 0.7;
    filter: blur(2px);
}

.gallery-main img.loaded {
    opacity: 1;
    filter: blur(0);
    animation: fadeInImage 0.5s ease-in-out;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-main:hover img {
    transform: scale(1.08);
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    padding-left: 2px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #2a5298 #f1f1f1;
}

.gallery-thumbs::-webkit-scrollbar {
    width: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #2a5298;
    border-radius: 10px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: #1e3c72;
}

.thumb-item {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumb-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 82, 152, 0.1), rgba(255, 215, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 12px;
}

.thumb-item:hover {
    border-color: #2a5298;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.3);
}

.thumb-item:hover::before {
    opacity: 1;
}

.thumb-item.active {
    border-color: #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}

.thumb-item.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.thumb-item:hover img {
    transform: scale(1.1);
}

.thumb-item.active img {
    transform: scale(1.05);
}

/* Details */
.apartment-details {
    padding: 60px 20px;
    background: #f8f9fa;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.apartment-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}

.apartment-detail-location {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apartment-detail-location i {
    color: #2a5298;
}

.apartment-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #666;
}

.stat-item i {
    color: #2a5298;
    font-size: 1.3rem;
}

.apartment-description {
    margin-bottom: 40px;
}

.apartment-description h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.apartment-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.apartment-amenities h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.amenity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.amenity-item i {
    color: #4CAF50;
    font-size: 1.2rem;
}

/* Booking Card */
.booking-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.booking-price {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2a5298;
}

.price-period {
    font-size: 1.2rem;
    color: #999;
    margin-left: 5px;
}

.booking-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #2a5298 0%, #3b79a3 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.booking-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.4);
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.95rem;
}

.booking-info i {
    color: #2a5298;
}

@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .booking-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 400px;
    }

    .gallery-thumbs {
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
        overflow-y: hidden;
        height: auto;
        max-height: none;
        padding-right: 0;
        padding-bottom: 5px;
    }

    .gallery-thumbs::-webkit-scrollbar {
        height: 6px;
        width: auto;
    }

    .gallery-thumbs::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .gallery-thumbs::-webkit-scrollbar-thumb {
        background: #2a5298;
        border-radius: 10px;
    }

    .thumb-item {
        flex: 0 0 calc(33.333% - 10px);
        min-width: 100px;
        height: 100px;
    }

    .apartment-stats {
        flex-direction: column;
        gap: 15px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .thumb-item {
        flex: 0 0 calc(50% - 7.5px);
    }
}

/* Tour Details Specific Styles */
.tour-highlights,
.tour-includes {
    margin-bottom: 40px;
}

.tour-highlights h2,
.tour-includes h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(42, 82, 152, 0.05), rgba(255, 215, 0, 0.05));
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.highlight-item i {
    color: #ffd700;
    font-size: 1.3rem;
}

.highlight-item span {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

.includes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.include-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.include-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.include-item i {
    color: #4CAF50;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .includes-grid {
        grid-template-columns: 1fr;
    }
}

