/* Apartmani stranica - CSS stilovi */

/* Page Header */
.page-header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.8), rgba(231, 76, 60, 0.6));
    z-index: 1;
}

.page-header-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-header-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.page-header-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 10px;
}

/* Filter Section */
.filter-section {
    padding: 40px 0;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

/* Apartments Section */
.apartments-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa, white);
}

.apartments-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.apartment-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    transition: all 0.4s ease;
    position: relative;
}

.apartment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.05), rgba(231, 76, 60, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: 1;
}

.apartment-item:hover::before {
    opacity: 1;
}

.apartment-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
/*
.apartment-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.apartment-item:nth-child(even) .apartment-gallery {
    order: 2;
}

.apartment-item:nth-child(even) .apartment-details {
    order: 1;
}
*/
/* Gallery Section */
.apartment-gallery {
    position: relative;
    background: #f8f9fa;
}

.main-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.gallery-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apartment-item:hover .gallery-main {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image:hover .gallery-overlay {
    opacity: 1;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-btn:hover {
    background: white;
    transform: scale(1.05);
}

.thumbnail-gallery {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: white;
    opacity: 1;
    transform: scale(1.1);
}

/* Apartment Details */
.apartment-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.apartment-header {
    margin-bottom: 20px;
}

.apartment-header h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.apartment-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.apartment-rating .fas {
    color: #ffd700;
    font-size: 1rem;
}

.apartment-rating span {
    color: #666;
    font-weight: 500;
    margin-left: 8px;
}

.apartment-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

/* Features Grid */
.apartment-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.feature-item span {
    font-weight: 500;
    color: var(--dark-color);
}

/* Amenities */
.apartment-amenities {
    margin-bottom: 30px;
}

.apartment-amenities h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.apartment-amenities ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.apartment-amenities li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.95rem;
}

.apartment-amenities i {
    color: var(--primary-color);
    width: 16px;
}

/* Pricing */
.apartment-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 2px solid #f1f3f4;
}

.price-info {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-from {
    color: #666;
    font-size: 0.9rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.price-period {
    color: #666;
    font-size: 1rem;
}

.booking-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, var(--primary-color));
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Modals */
.gallery-modal,
.booking-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.gallery-modal-content,
.booking-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-close,
.booking-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-close:hover,
.booking-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* Gallery Modal */
.gallery-slider {
    position: relative;
    height: 500px;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.gallery-prev,
.gallery-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: white;
    transform: scale(1.1);
}

/* Booking Modal */
.booking-form {
    padding: 40px;
}

.booking-form h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .apartment-item {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    /*
    .apartment-item:nth-child(even) .apartment-gallery,
    .apartment-item:nth-child(even) .apartment-details {
        order: 0 !important;
    }
    */
    
    .apartment-features-grid {
        grid-template-columns: 1fr;
    }
    
    .apartment-amenities ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 50vh;
        min-height: 300px;
    }
    
    .page-header-content h1 {
        font-size: 2.5rem;
    }
    
    .page-header-content p {
        font-size: 1.1rem;
    }
    
    .filter-controls {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .apartment-details {
        padding: 25px;
    }
    
    .apartment-header h2 {
        font-size: 1.8rem;
    }
    
    .apartment-pricing {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .booking-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .gallery-modal-content,
    .booking-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .booking-form {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .apartment-description {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .thumbnail-gallery {
        bottom: 10px;
        right: 10px;
    }
    
    .thumbnail {
        width: 40px;
        height: 40px;
    }
}

/* Animation za filter */
.apartment-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.apartment-item.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Loading animacija */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Dodatni efekti */
.apartment-item:hover .apartment-header h2 {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.wishlist-btn.active {
    background: var(--accent-color) !important;
    color: white !important;
    border-color: var(--accent-color) !important;
}

.wishlist-btn.active i {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}