/* Reset i osnovni stilovi */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9fbff;
}

#pocetna, #kontakt, #o-nama {
    scroll-margin-top: 120px;
}

/* Gornji kontakt bar */
.top-bar {
    background-color: #f8f8f8;
    text-align: center;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* dodato2 da ne prelazi sirinu*/
}

.top-bar p {
    margin: 0;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    white-space: nowrap; /*dodato2 Omogućava prelom teksta */
    overflow: visible; /*dodato2 Sprečava isečenje */
    text-overflow: initial; /*dodato2 Uklanja elipsu */
    text-align: center; /*dodato2 Pomeramo tekst u levo */
    padding-left: 15px; /*dodato2 Mali padding za estetiku */
    padding-right: 15px; /*dodato2 Osigurava da tekst nije zalepljen za desnu ivicu */
    word-break: keep-all; /*dodato3 Sprečava prelom unutar reči poput 20:00 */
    overflow-wrap: anywhere; /*dodato3 Omogućava prelom samo ako nema prostora za celu liniju */
}

/* Navigacija i logo */
.logo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 40px;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    justify-content: flex-start;
}

.logo {
    max-width: 110px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 25px;
    margin-right: 50px;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* Hero slika + overlay */
.villa-image {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.villa-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.25));
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-text {
    position: absolute;
    z-index: 2;
    top: 60%; /*pomeranje ka dole*/
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 25px;
    max-width: 90%;
    animation: fadeIn 2s ease-out;
}

.hero-text h1 {
    font-size: 2.5rem;/*manji naslov o nama*/
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.register-text {
    position: absolute;
    top: 160px; /* Pozicionira u odnosu na viewport, želimo top: 8px */
    right: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 10px;
    text-align: right;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    max-width: 50%;
    line-height: 1.4;
    box-sizing: border-box;
}

.hero-button {
    background: linear-gradient(90deg, #007bff, #00aaff);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.hero-button:hover {
    background: linear-gradient(90deg, #0056b3, #007bff);
    transform: translateY(-3px);
}

/* Animacija */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Filter */
.filter {
    padding: 25px;
    background: linear-gradient(to right, #e6f0ff, #f0f8ff);
    text-align: center;
    position: relative;
    z-index: 1;
    border-bottom: 3px solid #007bff;
}

.filter form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter input,
.filter select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 200px;
}

.filter input:focus,
.filter select:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    outline: none;
}

.filter button {
    padding: 10px 20px;
    background: linear-gradient(90deg, #007bff, #00aaff);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.filter button[type="reset"] {
    background: linear-gradient(90deg, #dc3545, #e4606d);
}

.filter button:hover {
    transform: translateY(-2px);
}

/* Sortiranje */
.sort-section {
    display: flex;
    justify-content: center;
    padding: 25px;
    position: relative;
    z-index: 1;
}

.sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort label {
    font-weight: 600;
    color: #333;
}

.sort select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
}

/* Nekretnine */
.properties {
    padding: 30px 20px;
    padding-bottom: 120px;
    position: relative;
    z-index: 1;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Kartica nekretnine */
.property-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: cardFadeIn 0.6s ease-out;
    border: 1px solid #e0e0e0;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.25);
    background: linear-gradient(135deg, #f9fbff, #e6f0ff);
}

/* Galerija slika za kartice */
.gallery-container {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f0f0f0;
    padding-bottom: 20px;
}

.gallery-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1);
}

.gallery-image.active {
    opacity: 1;
}

.property-card:hover .gallery-image.active {
    transform: scale(1.1);
}

/* Strelice za galeriju */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 12px;
    cursor: pointer;
    font-size: 22px;
    z-index: 2;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-arrow:hover {
    background: #007bff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-prev {
    left: 15px;
}

.gallery-arrow-next {
    right: 15px;
}

/* Sadržaj kartice */
.property-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    background: transparent;
}

.property-content h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    text-transform: capitalize;
}

.property-content p {
    margin: 0;
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.property-content p:hover {
    color: #222;
}

.property-content .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #007bff;
    margin-top: 12px;
}

.property-content .location i,
.property-content .price i,
.property-content .area i,
.property-content .rooms i {
    color: #007bff;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.property-content p:hover i {
    transform: scale(1.3);
}

/* Dugme za detalje */
.property-button {
    display: inline-block;
    margin-top: auto;
    padding: 12px 24px;
    background: linear-gradient(90deg, #007bff, #00aaff);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.property-button:hover {
    background: linear-gradient(90deg, #0056b3, #007bff);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* Animacija za učitavanje kartica */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Paginacija */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 12px;
}

.pagination button {
    padding: 10px 18px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.pagination button:disabled {
    background-color: #eee;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-number {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 6px;
    font-weight: 600;
}

.pagination .page-number.active {
    background: linear-gradient(90deg, #007bff, #00aaff);
    color: white;
    border-color: #007bff;
}

.pagination .page-number:hover:not(.active) {
    background-color: #e0e0e0;
}

.pagination .ellipsis {
    padding: 10px 14px;
    margin: 0 6px;
    color: #666;
}

/* Kontakt sekcija */
.contact {
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a1a;
    font-size: 2.2rem;
}

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: center; /*dodato Centrira tekst i inline elemente */
    display: flex; /*dodato*/
    flex-direction: column; /*dodato*/
    align-items: center; /*dodato Centrira fleks elemente horizontalno */
}

.contact-info h3 {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 1.8rem;
}

.contact-info p {
    margin: 8px 0;
    font-size: 1.1rem;
    display: flex; /*dodato*/
    align-items: center; /*dodato*/
    gap: 12px; /*dodato Razmak između ikonice i teksta*/
    justify-content: center; /* Horizontalno centriranje */
    width: 100%; /* Osigurava punu širinu za centriranje */
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0056b3;
}

.contact-info i {
    margin-right: 12px;
    color: #007bff;
}

#contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

#contact-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #007bff, #00aaff);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

#contact-form button:hover {
    background: linear-gradient(90deg, #0056b3, #007bff);
    transform: translateY(-2px);
}

/* O nama */
.about-us {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 30px;
    max-width: 90%;
    z-index: 2;
    animation: fadeIn 2s ease-out;
}

.about-us h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 0.75rem; /* Smanjeno sa 1.3rem na 1rem (oko 16px) za manji tekst */
    margin: 0 8px 0 0;
    /*color: #1a1a1a; Tamnija boja teksta za bolju čitljivost (može se menjati) */
    /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); Smanjen i pojačan text-shadow za kontrast */
    line-height: 1.6;
    text-align: left;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.social-media {
    margin-bottom: 30px;
}

.social-media h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.social-media a {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #007bff;
}

.contact-info h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #007bff;
}

.map {
    margin-top: 25px;
}

.map iframe {
    border-radius: 10px;
}

.copyright {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #444;
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
}

/* Detalji stranica */
.property-details {
    padding: 60px 20px;
    background: linear-gradient(to right, #e6f0ff, #f0f8ff);
    position: relative;
    z-index: 1;
    margin-top: 120px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.property-details h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    text-transform: capitalize;
    max-width: 100%;
    word-wrap: break-word;
    animation: fadeInTitle 1.2s ease-out;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Galerija slika za detalje */
.property-details .gallery-container {
    height: 500px; /* Smanjena visina za bolji fit */
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    display: block;
}

.property-details .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1);
    padding: 10px;
    box-sizing: border-box;
}

.property-details .gallery-image.active {
    opacity: 1;
}

.property-details .gallery-container:hover .gallery-image.active {
    transform: scale(1.1);
}

.property-details .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 2;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.property-details .gallery-arrow:hover {
    background: #007bff;
    transform: translateY(-50%) scale(1.1);
}

.property-details .gallery-arrow-prev {
    left: 20px;
}

.property-details .gallery-arrow-next {
    right: 20px;
}

/* Tumbnali ispod galerije */
.property-details .gallery-thumbnails {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 10px; /* Smanjen razmak */
    padding: 10px;
    width: 100%;
    min-height: 80px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #f5f7fb; /* Svetlosiva, usklađena sa gradijentom */
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    border: none; /* Uklonjen crveni okvir */
}

/* Sakrivanje skrolbara */
.property-details .gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.property-details .gallery-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    flex: 0 0 auto;
    background: #e8ecef; /* Tamnija siva za kontrast */
    display: block;
    visibility: visible;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.property-details .gallery-thumbnail.active {
    border-color: #007bff;
    transform: scale(1.1);
}

.property-details .gallery-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

/* Full-screen galerija */
.fullscreen-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.fullscreen-gallery.active {
    display: flex;
}

.fullscreen-gallery img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-fullscreen:hover {
    color: #007bff;
}

.fullscreen-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 2;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.fullscreen-arrow:hover {
    background: #007bff;
    transform: translateY(-50%) scale(1.1);
}

.fullscreen-arrow-prev {
    left: 20px;
}

.fullscreen-arrow-next {
    right: 20px;
}

/* Informacije o nekretnini */
.property-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    animation: cardFadeIn 0.6s ease-out;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    border: 1px solid #e0e0e0;
}

.property-info p {
    margin: 0;
    font-size: 1.2rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.property-info p.hidden {
    display: none;
}

.property-info p strong {
    color: #1a1a1a;
    margin-right: 10px;
    font-weight: 600;
}

.property-info p:hover {
    color: #222;
}

.property-info p i {
    color: #007bff;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.property-info p:hover i {
    transform: scale(1.3);
}

.property-info p:last-child {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
}

.property-info p:last-child span {
    color: #333;
    line-height: 1.6;
}

/* Login sekcija */
.login-section {
    padding: 60px 20px;
    background: linear-gradient(to right, #e6f0ff, #f0f8ff);
    margin-top: 120px;
}

.login-section h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 15px;
}

/* Property grid (isti kao na index.html) */
.property-grid {
    padding: 60px 20px;
    background: linear-gradient(to right, #e6f0ff, #f0f8ff);
    margin-top: 120px;
}

.property-grid h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.property-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0 0 15px;
    text-transform: capitalize;
}

.property-info p {
    font-size: 1.1rem;
    color: #555;
    margin: 8px 0;
}

.btn-delete {
    display: block;
    width: 100%;
    padding: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-delete:hover {
    background: #b02a37;
}

/* Sekcija za dodavanje nekretnine */
.add-property-section {
    padding: 60px 20px;
    background: linear-gradient(to right, #e6f0ff, #f0f8ff);
    margin-top: 120px;
}

.add-property-section h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
}

.add-property-section form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
}

.form-group input[type="radio"] {
    margin-right: 10px;
}

.form-group label:not(:first-child) {
    margin-left: 20px;
}

/* CTA dugme blizu donje ivice hero sekcije */
.cta-bottom-button {
    position: absolute;
    bottom: 1px; /* Povećano da izbegne preklapanje sa hero-text */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.cta-bottom-button:hover {
    background: #ffd700; /* Žuta boja na hover */
    color: #1a1a1a;
    transform: translateX(-50%) translateY(-2px); /* Zadržava centriranje */
}
/*izdvajamo iz ponude*/
.featured-section {
    padding: 30px 20px;
    background: linear-gradient(to right, #e6f0ff, #f0f8ff);
    text-align: center;
    position: relative;
    z-index: 1;
}

.featured-section h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.divider {
    border: 0;
    height: 2px;
    background: #007bff;
    margin: 20px auto;
    width: 80%;
    max-width: 1200px;
}

/*DODATO za skrolovanje*/
#o-nama .villa-image {
    position: relative;
    width: 100%;
    height: 100vh; /* Slika završava na dnu ekrana */
    margin-top: 120px; /* Prostor za header i nav */
    overflow: hidden;
}

#o-nama .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

#o-nama .villa-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.25));
    z-index: 1;
}

#o-nama .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 60vh; /* Povećavamo visinu za bolji prostor, ali ograničavamo */
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 15px;
    width: 60%;
    max-width: 800px;
    box-sizing: border-box;
    z-index: 10;
    text-align: center;
}

#o-nama .hero-text h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#o-nama .hero-text p {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

#o-nama .hero-text::-webkit-scrollbar {
    width: 6px;
}

#o-nama .hero-text::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

#o-nama .hero-text::-webkit-scrollbar-track {
    background: transparent;
}

#o-nama .register-text {
    position: absolute;
    top: 8px !important;
    right: 8px !important;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 4px;
    max-width: 40%;
    z-index: 10;
}

#o-nama .cta-bottom-button {
    bottom: 10px;
    width: 50%;
    max-width: 300px;
    font-size: 1rem;
    padding: 8px 15px;
}
/*BANERII*/
/* Stilovi za panele u footeru */
.footer-panels {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 30px;
    gap: 20px;
}

.footer-panel {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 22%; /* Četiri panela u redu na desktopu */
    text-align: center;
    transition: transform 0.3s ease;
    overflow: hidden; /* Sprečava prelivanje slike */
}

.footer-banner {
    width: 100%; /* Slika popunjava ceo panel */
    height: auto; /* Zadržava proporcije */
    border-radius: 5px; /* Blagi zaobljeni uglovi */
    display: block; /* Uklanja dodatni razmak ispod slike */
}

.footer-panel:hover {
    transform: translateY(-5px);
}
/*BAERI KRAJ*/

/* Responzivnost */
@media (max-width: 768px) {
    .top-bar {
        padding: 10px 15px; /* Vraćeno na originalno */
        min-height: 80px; /* Vraćeno na originalno */
    }

    .top-bar p {
        font-size: 0.3rem; /* Duplo manje od 0.6rem */
        white-space: nowrap; /* Tekst u jednom redu */
        line-height: 1.4;
        max-width: 100%;
        overflow: visible;
        text-overflow: initial;
        text-align: left;
        padding-left: 10px; /* Smanjeno za više prostora */
        padding-right: 10px;
        font-weight: 500; /* Zadržano za čitljivost */
    }

    .contact-info p { /*dodato*/
        font-size: 0.95rem; /* Smanjeno za mobilne uređaje */
        line-height: 1.6;
    }

    /*.hero-button {
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: nowrap;
        width: auto;
        max-width: 90%;
        text-align: center;
    }*/
    .hero-button {
        display: none; /* Sakriva dugme na mobilnim uređajima */
    }
    
    . {
        bottom: 1px; /* Niže nego prethodnih 20px */
        font-size: 0.9rem;
        padding: 8px 15px;
        width: 90%;
        max-width: 280px;
    }

    .logo-nav {
        flex-direction: column;
        padding: 15px;
        top: 35px;
    }

    .logo-container {
        justify-content: center;
        margin-bottom: 15px;
    }

    .logo {
        max-width: 90px;
    }

    .nav-links {
        justify-content: center;
        gap: 15px;
        margin-right: 0;
    }

    /*.villa-image {
        height: 80vh;
    }*/
    .villa-image {
        margin-top: 150px; /* Ispod .top-bar (~80px) + .logo-nav (~35px top + ~70px visina) */
        height: auto; /* Visina se prilagođava slici */
        width: 100%;
        overflow: visible;
        position: relative !important; /* Osigurava da je roditelj za apsolutne elemente */
        background-color: transparent; /* Uklanja crnu pozadinu */
    }

    .hero-image {
        width: 100%;
        height: auto; /* Visina se prilagođava proporcijama slike */
        object-fit: contain; /* Cela slika vidljiva */
        position: static; /* Menjamo na static da slika određuje visinu kontejnera */
        z-index: 0;
    }

    .villa-image::before {
        display: none; /* Uklanja gradient jer slika popunjava prostor */
    }
    /*dodato*/

    /*.hero-text {
        padding: 20px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 15px;
        line-height: 1.7;
    }

    .register-text {
        top: 170px; 
        right: 8px; 
        font-size: 0.6rem; 
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); 
        background-color: rgba(0, 0, 0, 0.6); 
        padding: 3px 8px; 
        border-radius: 8px; 
        max-width: 100%; 
        z-index: 10; 
        line-height: 1.3; 
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }*/

    .hero-text {
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 15px; /* Smanjen padding za manje ekrane */
        max-width: 90%;
        width: 100%;
        box-sizing: border-box;
        z-index: 10 !important; /* Iznad slike */
        text-align: center;
        /*background-color: rgba(0, 0, 0, 0.5); /* Dodaje pozadinu za čitljivost */
        border-radius: 10px;
    }

    .hero-text h1 {
        font-size: 1.6rem; /* Smanjeno za mobilne */
        margin-bottom: 10px;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .hero-button {
        padding: 10px 18px;
        font-size: 0.9rem;
        max-width: 80%;
    }

    .cta-bottom-button {
        position: absolute;
        bottom: 15px; /* Više prostora od dna */
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 15px;
        font-size: 0.85rem;
        width: 90%;
        max-width: 260px;
        z-index: 10 !important;
        border-radius: 15px;
    }

    .register-text {
        position: absolute !important;
        top: 8px !important; /* U odnosu na vrh .villa-image */
        right: 8px !important;
        font-size: 0.7rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
        background-color: rgba(0, 0, 0, 0.6);
        padding: 3px 8px;
        border-radius: 8px;
        max-width: 80%;
        z-index: 10 !important;
        line-height: 1.3;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    .filter {
        padding: 20px;
    }

    .filter form {
        flex-direction: column;
        align-items: center;
    }

    .filter input,
    .filter select {
        width: 100%;
        max-width: 280px;
    }

    .filter button {
        padding: 10px 18px;
    }

    .sort select {
        width: 100%;
        max-width: 280px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .property-card {
        border-radius: 16px;
    }

    .gallery-container {
        height: 220px;
        padding-bottom: 15px;
    }

    .property-content {
        padding: 20px;
    }

    .property-content h3 {
        font-size: 1.3rem;
    }

    .property-content .price {
        font-size: 1.2rem;
    }

    .property-button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .gallery-arrow {
        padding: 10px;
        font-size: 18px;
    }

    .pagination button,
    .pagination .page-number {
        padding: 8px 12px;
    }

    .contact {
        margin: 30px auto;
        padding: 20px;
    }

    .contact h2 {
        font-size: 1.8rem;
    }

    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }

    .about-us h2 {
        font-size: 2rem;
    }

    .about-content {
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .about-content p {
        font-size: 0.75rem; /* Smanjeno sa 0.95rem na 0.85rem (oko 13.6px) za manji tekst */
        line-height: 1.7;
        text-align: left;
        margin: 10px 0;
        /*color: #1a1a1a; Tamnija boja teksta za bolju čitljivost */
        /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); Dodata suptilna senka za kontrast */
    }

    .footer {
        padding: 30px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: center;
    }

    .footer h3 {
        font-size: 1.5rem;
    }

    .social-media a {
        font-size: 1.5rem;
    }

    .map {
        margin-top: 15px;
        width: 100%;
    }

    .map iframe {
        height: 300px;
        width: 100%;
        border-radius: 8px;
    }

    .copyright p {
        font-size: 0.85rem;
    }

    .property-details {
        padding: 40px 10px;
        margin-top: 100px;
    }

    .property-details h2 {
        font-size: 1.8rem;
    }

    .property-details .gallery-container {
        height: 300px; /* Smanjena visina za mobilne */
    }

    .property-details .gallery-arrow {
        padding: 12px;
        font-size: 20px;
    }

    .property-details .gallery-thumbnails {
        gap: 8px;
        margin-top: 8px; /* Još manji razmak */
        padding: 8px;
        min-height: 60px;
        background: #f5f7fb;
        border: none;
    }
    .property-details .gallery-thumbnail {
        width: 60px;
        height: 45px;
        border-radius: 6px;
        background: #e8ecef;
    }

    .property-info {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .property-info p {
        font-size: 1.1rem;
    }

    .property-info p i {
        font-size: 1.2rem;
    }

    .fullscreen-gallery img {
        max-width: 95%;
        max-height: 95%;
    }

    .close-fullscreen {
        font-size: 2rem;
        right: 20px;
    }

    .login-section {
        padding: 40px 10px;
        margin-top: 100px;
    }

    .login-section h2 {
        font-size: 1.8rem;
    }

    .form-group input {
        padding: 10px;
    }

    .btn {
        padding: 10px;
        font-size: 1.1rem;
    }

    .property-grid {
        padding: 40px 10px;
        margin-top: 100px;
    }

    .property-grid h2 {
        font-size: 1.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .property-image img {
        height: 180px;
    }

    .add-property-section {
        padding: 40px 10px;
        margin-top: 100px;
    }

    .add-property-section h2 {
        font-size: 1.8rem;
    }

    .add-property-section form {
        gap: 15px;
    }
    /*SKROLOVANJE*/
     #o-nama .villa-image {
        position: relative;
        width: 100%;
        height: auto; /* Prilagođava se slici */
        min-height: 25vh; /* Smanjeno sa 30vh za još kompaktniji kontejner */
        margin-top: 150px; /* Zadržano zbog .top-bar i .logo-nav */
        overflow: hidden; /* Sprečava prelivanje */
        background-color: #f9fbff; /* Pozadina usklađena sa body-jem */
    }

    #o-nama .hero-image {
        width: 100%;
        height: auto;
        object-fit: contain; /* Slika nerastegnuta, cela vidljiva */
        position: static;
        z-index: 0;
        display: block; /* Osigurava popunjavanje prostora */
    }

    #o-nama .hero-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 20vh; /* Smanjeno sa 22vh za maksimalnu kompaktnost */
        overflow-y: auto; /* Skrolovanje za višak teksta */
        overflow-x: hidden; /* Sprečava horizontalno prelivanje */
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 5px; /* Smanjeno sa 6px */
        padding: 4px; /* Smanjeno sa 5px */
        width: 80%;
        max-width: 80%;
        box-sizing: border-box;
        z-index: 10 !important;
        text-align: center;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
    }

    #o-nama .hero-text h1 {
        font-size: 0.95rem; /* Smanjeno sa 1rem */
        margin-bottom: 3px; /* Smanjen razmak */
    }

    #o-nama .hero-text p {
        font-size: 0.65rem; /* Smanjeno sa 0.7rem */
        margin-bottom: 4px;
        line-height: 1.2; /* Zgusnuto */
    }

    #o-nama .hero-text::-webkit-scrollbar {
        width: 3px;
    }

    #o-nama .hero-text::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 2px;
    }

    #o-nama .hero-text::-webkit-scrollbar-track {
        background: transparent;
    }

    #o-nama .register-text {
        position: absolute;
        top: 8px !important;
        right: 8px !important;
        font-size: 0.5rem; /* Smanjeno sa 0.55rem */
        background-color: rgba(0, 0, 0, 0.6);
        padding: 2px 3px; /* Smanjen padding */
        border-radius: 4px;
        max-width: 80%;
        z-index: 10 !important;
    }

    #o-nama .cta-bottom-button {
        bottom: 4px; /* Smanjeno sa 5px */
        width: 75%;
        max-width: 160px; /* Smanjeno sa 180px */
        font-size: 0.6rem; /* Smanjeno sa 0.65rem */
        padding: 3px 6px;
    }

    /*izdvajamo iz ponude*/
    .featured-section {
        padding: 20px 10px;
    }

    .featured-section h2 {
        font-size: 1.8rem;
    }

    .divider {
        width: 90%;
    }
    /*BANERII*/
    .footer-panels {
        flex-direction: column;
        align-items: center;
    }

    .footer-panel {
        width: 80%; /* Širina panela na telefonu */
        margin-bottom: 15px;
    }

    .footer-panel:last-child {
        margin-bottom: 0;
    }
}
