/**
 * Cjenik.css - Stilovi za stranicu cjenika apartmana
 * Apartmani Šimićev - Moderni pricing layout s 3D efektima
 */

/* ========================================
   1. KEYFRAME ANIMACIJE
   ======================================== */

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes card-float {
    0%, 100% { 
        transform: translateY(0) rotateX(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotateX(2deg); 
    }
}

@keyframes price-pulse {
    0%, 100% { 
        transform: scale(1); 
        text-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        text-shadow: 0 0 30px rgba(0, 168, 255, 0.6);
    }
}

@keyframes badge-glow {
    0%, 100% { 
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                   0 0 15px rgba(0, 168, 255, 0.4);
    }
    50% { 
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                   0 0 25px rgba(0, 168, 255, 0.8),
                   0 0 35px rgba(255, 255, 255, 0.2);
    }
}

@keyframes slide-in-up {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95) rotateX(10deg);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.02) rotateX(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

@keyframes feature-sparkle {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1) rotate(180deg);
    }
}

@keyframes modal-zoom-in {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(5deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ========================================
   2. PRICING HERO SECTION
   ======================================== */

.pricing-hero {
    padding: 120px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    /* Fallback boja ako slika ne postoji */
    background: linear-gradient(rgba(0, 30, 60, 0.8), rgba(0, 102, 204, 0.7));
    background-image: 
        linear-gradient(rgba(0, 30, 60, 0.8), rgba(0, 102, 204, 0.7)),
        url('../images/slides/slide-5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
	
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            transparent 30%, 
            rgba(255, 255, 255, 0.05) 50%, 
            transparent 70%
        );
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
}

.pricing-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(10, 15, 28, 0.6) 50%, 
        #0a0f1c 100%
    );
    pointer-events: none;
}

.pricing-intro {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.pricing-intro h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, 
        #fff 0%, 
        #00a8ff 50%, 
        #fff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-flow 4s ease infinite;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-intro p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 168, 255, 0.3), 
        transparent
    );
    transition: left 0.8s ease;
}

.feature-badge:hover {
    border-color: #00a8ff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 168, 255, 0.4);
}

.feature-badge:hover::before {
    left: 100%;
}

.feature-badge i {
    font-size: 1.2rem;
    color: #00a8ff;
    animation: feature-sparkle 3s ease-in-out infinite;
}

/* ========================================
   3. PRICING PAGE LAYOUT
   ======================================== */

.pricing-page {
    padding: 80px 5% 60px;
    min-height: 100vh;
    position: relative;
    
    /* Postojeći background + dodana slika */
    background: 
        linear-gradient(180deg, rgba(10, 15, 28, 0.85) 0%, rgba(0, 30, 60, 0.8) 30%, rgba(10, 15, 28, 0.85) 100%),
        radial-gradient(ellipse at top left, rgba(0, 168, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 102, 204, 0.08) 0%, transparent 50%),
        url('../images/slides/slide-5.jpg'); /* DODANO */
    
    background-size: cover; /* DODANO */
    background-position: center; /* DODANO */
    background-attachment: fixed; /* DODANO */
}

.pricing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(0, 168, 255, 0.02) 100px,
            rgba(0, 168, 255, 0.02) 200px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(0, 168, 255, 0.02) 100px,
            rgba(0, 168, 255, 0.02) 200px
        );
    pointer-events: none;
    opacity: 0.3; /* Smanjeno za bolju vidljivost slike */
}

.pricing-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            transparent 30%, 
            rgba(255, 255, 255, 0.02) 50%, 
            transparent 70%
        );
    animation: shimmer 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}


.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Osiguraj da je sadržaj iznad background efekta */
.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Responsive podešavanja */
@media (max-width: 768px) {
    .pricing-page {
        background-attachment: scroll; /* Bolje performanse na mobilnim */
        padding: 60px 3% 40px;
    }
}

@media (max-width: 480px) {
    .pricing-page {
        padding: 40px 3% 30px;
    }
}

/* ========================================
   4. SEASON INFO SECTION
   ======================================== */

.season-info {
    text-align: center;
    margin-bottom: 4rem;
}

.season-info h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.season-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.season-card.low {
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.1) 0%, 
        rgba(0, 102, 204, 0.15) 100%
    );
}

.season-card.high {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1) 0%, 
        rgba(255, 87, 87, 0.15) 100%
    );
}

.season-card:hover {
    transform: translateY(-10px);
    border-color: #00a8ff;
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.3);
}

.season-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.season-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.season-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.season-card.low .season-label {
    background: rgba(0, 168, 255, 0.2);
    color: #00a8ff;
}

.season-card.high .season-label {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* ========================================
   5. APARTMENTS GRID
   ======================================== */

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.apartment-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
    animation: slide-in-up 0.8s ease forwards;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.apartment-card:nth-child(1) { animation-delay: 0.1s; }
.apartment-card:nth-child(2) { animation-delay: 0.2s; }
.apartment-card:nth-child(3) { animation-delay: 0.3s; }
.apartment-card:nth-child(4) { animation-delay: 0.4s; }
.apartment-card:nth-child(5) { animation-delay: 0.5s; }

.apartment-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    border-color: rgba(0, 168, 255, 0.5);
    box-shadow: 
        0 25px 50px rgba(0, 168, 255, 0.4),
        0 0 0 1px rgba(0, 168, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.apartment-card:hover .apartment-badge {
    transform: scale(1.1);
    animation: badge-glow 1s ease-in-out infinite;
}

.apartment-card:hover .apartment-badge .stars i {
    animation: star-twinkle 0.5s ease-in-out infinite;
    color: #fff700;
    transform: scale(1.2);
}

/* ========================================
   6. APARTMENT IMAGE
   ======================================== */

.apartment-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(0.9) contrast(1.1);
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(0.7) contrast(1.3);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
    color: white;
    text-align: center;
}

.apartment-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00a8ff;
}

.image-overlay span {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apartment-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    animation: badge-glow 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 90px;
}

.apartment-badge:not(.premium):not(.studio) {
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.9) 0%, 
        rgba(0, 102, 204, 0.95) 100%
    );
    color: white;
}

.apartment-badge.premium {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.95) 0%, 
        rgba(255, 140, 0, 0.9) 100%
    );
    color: white;
    border-color: rgba(255, 215, 0, 0.3);
}

.apartment-badge.studio {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.9) 0%, 
        rgba(72, 61, 139, 0.95) 100%
    );
    color: white;
    border-color: rgba(138, 43, 226, 0.3);
}

.apartment-badge .stars {
    display: flex;
    gap: 2px;
    font-size: 0.9rem;
}

.apartment-badge .stars i {
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    animation: star-twinkle 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.apartment-badge .stars i:nth-child(1) { animation-delay: 0s; }
.apartment-badge .stars i:nth-child(2) { animation-delay: 0.3s; }
.apartment-badge .stars i:nth-child(3) { animation-delay: 0.6s; }

.apartment-badge .category-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.8px;
}

.apartment-badge:hover .stars i {
    transform: scale(1.2) rotate(360deg);
    color: #fff700;
}

@keyframes star-twinkle {
    0%, 100% { 
        opacity: 0.8;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ========================================
   7. APARTMENT CONTENT
   ======================================== */

.apartment-content {
    padding: 2rem;
}

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

.apartment-header h3 {
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
    background: linear-gradient(135deg, #fff, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apartment-capacity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.apartment-capacity i {
    color: #00a8ff;
}

.price-range {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.1) 0%, 
        rgba(0, 102, 204, 0.1) 100%
    );
    border-radius: 15px;
    border: 1px solid rgba(0, 168, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.price-range::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    transition: left 1s ease;
}

.apartment-card:hover .price-range::before {
    left: 100%;
}

.price-from,
.price-to {
    font-size: 2rem;
    font-weight: 700;
    color: #00a8ff;
    animation: price-pulse 4s ease-in-out infinite;
}

.price-range .price-from::after {
    content: ' – ';
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

.price-range small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   8. APARTMENT FEATURES
   ======================================== */

.apartment-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item:hover {
    background: rgba(0, 168, 255, 0.1);
    border-color: rgba(0, 168, 255, 0.3);
    transform: translateX(5px);
}

.feature-item i {
    color: #00a8ff;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.feature-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========================================
   9. APARTMENT ACTIONS
   ======================================== */

.apartment-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-check-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 15px 25px;
    background: linear-gradient(135deg, #00a8ff, #0066cc);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn-check-availability::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.6s ease;
}

.btn-check-availability:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-check-availability:hover::before {
    left: 100%;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-gallery,
.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-gallery {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.btn-contact {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.btn-gallery:hover,
.btn-contact:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.btn-gallery:hover {
    border-color: #ffc107;
    box-shadow: 0 15px 25px rgba(255, 193, 7, 0.4);
}

.btn-contact:hover {
    border-color: #4caf50;
    box-shadow: 0 15px 25px rgba(76, 175, 80, 0.4);
}

/* ========================================
   10. TERMS SECTION
   ======================================== */

.terms-section {
    margin-bottom: 4rem;
}

.terms-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.terms-card {
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.terms-card.included {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.1) 0%, 
        rgba(0, 168, 255, 0.1) 100%
    );
}

.terms-card.additional {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1) 0%, 
        rgba(255, 152, 0, 0.1) 100%
    );
}

.terms-card.schedule {
    background: linear-gradient(135deg, 
        rgba(156, 39, 176, 0.1) 0%, 
        rgba(63, 81, 181, 0.1) 100%
    );
}

.terms-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.2);
}

.terms-card h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-card h3 i {
    font-size: 1.8rem;
}

.terms-card.included h3 i { color: #4caf50; }
.terms-card.additional h3 i { color: #ffc107; }
.terms-card.schedule h3 i { color: #9c27b0; }

.terms-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-card li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.terms-card li:last-child {
    border-bottom: none;
}

.terms-card li:hover {
    color: #fff;
    transform: translateX(10px);
}

.terms-card li i {
    color: #00a8ff;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.terms-card li strong {
    color: #00a8ff;
    font-weight: 600;
}

/* ========================================
   11. PRICING CTA
   ======================================== */

.pricing-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.1) 0%, 
        rgba(0, 102, 204, 0.15) 100%
    );
    border-radius: 25px;
    border: 1px solid rgba(0, 168, 255, 0.2);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.pricing-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.03) 50%, 
        transparent 70%
    );
    animation: shimmer 8s ease-in-out infinite;
}

.pricing-cta h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #00a8ff, #0066cc);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.4);
}

.btn-primary:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00a8ff;
}

/* ========================================
   12. IMAGE MODAL
   ======================================== */

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal img {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modal-zoom-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    color: #ff4757;
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 71, 87, 0.2);
}

.modal-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 40px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    max-width: 80%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #00a8ff;
}

.modal-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ========================================
   13. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .apartments-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 100px 5% 60px;
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .pricing-intro h1 {
        font-size: 2.5rem;
    }
    
    .pricing-intro p {
        font-size: 1.1rem;
    }
    
    .pricing-features {
        gap: 1rem;
    }
    
    .feature-badge {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .apartments-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .apartment-card {
        margin: 0 1rem;
    }
    
    .apartment-features {
        grid-template-columns: 1fr;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .season-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .modal-info {
        padding: 15px 25px;
        bottom: 20px;
        width: 90%;
        max-width: none;
    }
    
    /* Prilagodi badge za tablet */
    .apartment-badge {
        padding: 10px 15px;
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .apartment-badge .stars {
        font-size: 0.85rem;
    }
    
    .apartment-badge .category-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .pricing-page {
        padding: 60px 3% 40px;
    }
    
    .pricing-intro h1 {
        font-size: 2rem;
    }
    
    .pricing-features {
        flex-direction: column;
        align-items: center;
    }
    
    .apartment-card {
        margin: 0;
    }
    
    .apartment-content {
        padding: 1.5rem;
    }
    
    .apartment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .apartment-header h3 {
        font-size: 1.5rem;
    }
    
    .price-from,
    .price-to {
        font-size: 1.5rem;
    }
    
    .terms-card {
        padding: 2rem 1.5rem;
    }
    
    .pricing-cta {
        padding: 3rem 1.5rem;
    }
    
    .pricing-cta h2 {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 15px 25px;
    }
    
    /* Prilagodi badge za mobilne */
    .apartment-badge {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        min-width: 70px;
        font-size: 0.7rem;
    }
    
    .apartment-badge .stars {
        font-size: 0.75rem;
        gap: 1px;
    }
    
    .apartment-badge .category-text {
        font-size: 0.65rem;
    }
    
    .apartment-image {
        height: 200px;
    }
    
    .image-overlay i {
        font-size: 2rem;
    }
    
    .image-overlay span {
        font-size: 1rem;
    }
}

/* ========================================
   14. PERFORMANSE OPTIMIZACIJE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
    }
}

/* GPU ubrzanje za smooth animacije */
.apartment-card,
.feature-badge,
.btn-check-availability,
.image-modal {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimizacija za touch uređaje */
@media (hover: none) {
    .apartment-card:hover {
        transform: none;
    }
    
    .feature-badge:hover {
        transform: none;
    }
    
    .image-overlay {
        opacity: 1;
    }
}

/* Poboljšanje readability na malim ekranima */
@media (max-width: 480px) {
    .apartment-image {
        height: 200px;
    }
    
    .image-overlay i {
        font-size: 2rem;
    }
    
    .image-overlay span {
        font-size: 1rem;
    }
}




/* ========================================
   POPRAVKA ZA VIDLJIVOST PRIJELAZA
   ======================================== */

/* Osiguraj da je prijelaz vidljiv */
.sea-horizon-transition {
    position: relative;
    height: 200px; /* Povećaj visinu */
    margin-top: 0; /* Ukloni negativnu marginu */
    margin-bottom: -50px; /* Samo malo preklapanje s footerom */
    overflow: visible; /* Promijeni na visible */
    z-index: 10;
    background: linear-gradient(to bottom, 
        #0a0f1c 0%, 
        rgba(10, 15, 28, 0.9) 50%,
        rgba(10, 15, 28, 0.7) 100%
    );
}

/* Osiguraj da su elementi vidljivi */
.sea-horizon-transition * {
    position: absolute;
}

/* Povećaj kontrast za zvijezde */
.sea-horizon-transition .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(3px 3px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(255,255,255,0.7), transparent),
        radial-gradient(3px 3px at 90% 40%, rgba(255,255,255,0.8), transparent);
    background-size: 300px 300px;
    animation: twinkle 5s ease-in-out infinite;
}

/* Pojačaj horizont liniju */
.sea-horizon-transition .horizon {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 2px; /* Deblja linija */
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 168, 255, 0.5) 10%,
        rgba(0, 168, 255, 1) 50%,
        rgba(0, 168, 255, 0.5) 90%,
        transparent 100%
    );
    box-shadow: 
        0 0 30px rgba(0, 168, 255, 0.8),
        0 0 60px rgba(0, 168, 255, 0.4);
    animation: horizonGlow 4s ease-in-out infinite;
}

/* Pojačaj refleksiju mjeseca */
.sea-horizon-transition .moon-reflection {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 80px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(0, 168, 255, 0.2) 30%,
        rgba(0, 168, 255, 0.1) 60%,
        transparent 80%
    );
    filter: blur(15px);
    animation: moonReflection 6s ease-in-out infinite;
}

/* Vidljiviji valovi */
.sea-horizon-transition .waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(0,168,255,0.2)'/%3E%3C/svg%3E");
    background-size: 120% 100%;
    animation: waveMotion 8s ease-in-out infinite;
    opacity: 0.8;
}

/* Dodatni val za dubinu */
.sea-horizon-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    background-size: 150% 100%;
    animation: waveMotion 12s ease-in-out infinite reverse;
    opacity: 0.5;
}

/* Veća jedrilica */
.sea-horizon-transition .sailboat {
    position: absolute;
    bottom: 90px;
    left: -60px;
    width: 50px;
    height: 50px;
    animation: sailing 25s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.5));
}

/* Svjetlucanje vidljivije */
.sea-sparkles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: sparkle 3s linear infinite;
}

/* Dodatni sjaj */
.sea-horizon-transition::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 168, 255, 0.05) 80%,
        rgba(0, 168, 255, 0.1) 100%
    );
    pointer-events: none;
}

/* Ukloni suvišne stilove koji mogu sakriti prijelaz */
.gallery-page {
    padding-bottom: 60px !important; /* Smanji padding */
}

.gallery-page::after {
    display: none !important; /* Privremeno ugasi */
}

/* Osiguraj vidljivost footera */
footer {
    position: relative;
    z-index: 5;
    background: #0a0f1c !important;
}

/* Debug - privremeno dodaj border da vidiš gdje je prijelaz */
.sea-horizon-transition {
    /* border: 2px solid red; */ /* Ukloni ovo nakon testiranja */
}

/* Animacije */
@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% { 
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }
}

@keyframes sailing {
    0% { 
        left: -60px;
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(3deg);
    }
    50% {
        transform: translateY(3px) rotate(-2deg);
    }
    75% {
        transform: translateY(-3px) rotate(1deg);
    }
    100% { 
        left: calc(100% + 60px);
        transform: translateY(0) rotate(0deg);
    }
}