/* --- Samostalno hostovani fontovi (Self-hosted fonts) --- */
/* Poppins 300 */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url("/fonts/poppins-v23-latin-300.woff2") format("woff2");
}
/* Poppins 400 (Regular) */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/poppins-v23-latin-regular.woff2") format("woff2");
}
/* Poppins 600 */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url("/fonts/poppins-v23-latin-600.woff2") format("woff2");
}
/* Poppins 700 */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url("/fonts/poppins-v23-latin-700.woff2") format("woff2");
}

/* --- Globalni stilovi --- */

:root {
  --primary-color: #007bff;
  --dark-color: #333;
  --light-color: #f4f4f4;
  --white-color: #fff;
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  scroll-behavior: smooth; /* Omogućava glatko skrolovanje */
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Image Manager on Edit Ad Page */
.image-manager {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 25px;
}

.image-manager h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #34495e;
}
.image-manager.new-images {
  border-top: 2px solid var(--primary-color);
}

/* Feedback messages */
.image-feedback p {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}
.image-feedback .error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.image-feedback .success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Grid for new image previews */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.preview-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}
.preview-item img {
    width: 100%;
    height: 90px;
    object-fit: cover; 
    border-radius: 3px; /* Malo manje od roditelja */
}

.image-preview-container {
  width: 100%;
  height: 400px;
  background-color: #e9ecef;
  border-radius: 4px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-preview-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

/* ISPRAVKA: Spojena su konfliktna pravila i dodati su stilovi za bolji izgled i funkcionalnost. */
.btn-remove-preview {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #34495e;
  color: white;
  border: 2px solid var(--white-color);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: bold;
  line-height: 24px; /* Centriranje 'x' ili drugog karaktera */
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-slider {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #f8f9fa;


    flex-wrap: nowrap; /* Eksplicitno sprečavamo prelamanje */
}

.image-slider::-webkit-scrollbar { height: 8px; }
.image-slider::-webkit-scrollbar-track { background: #f8f9fa; }
.image-slider::-webkit-scrollbar-thumb {
    background-color: #bdc3c7;
    border-radius: 4px;
    border: 2px solid #f8f9fa;
}

.slider-item {
    position: relative;
    flex-shrink: 0;
}

.slider-thumb {
    width: 100px; height: 75px; object-fit: cover;
    border-radius: 4px; border: 3px solid transparent;
    cursor: pointer; transition: border-color 0.2s;
}
.slider-thumb:hover { border-color: #bdc3c7; }
.slider-thumb.active { border-color: #3498db; }

.btn-delete-thumb {
    position: absolute; top: -12px; right: -12px;
    background-color: #e74c3c; color: white;
    border: 2px solid white; border-radius: 50%;
    width: 30px; height: 30px; font-size: 18px;
    font-weight: bold; line-height: 26px; text-align: center;
    cursor: pointer; opacity: 0; transform: scale(0.8);
    transition: opacity 0.2s, transform 0.2s;
}
.btn-google {
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-google:hover {
    background-color: #f7f7f7;
    border-color: #ccc;
}
.btn-facebook {
    background-color: #1877F2;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-facebook:hover {
  background-color: #166fe5;
}
.btn-google img {
    width: 20px;
    height: 20px;
}
/* Pomoćna klasa za dugmad pune širine */
.btn-fullwidth {
    width: 100%;
    justify-content: center;
}
.btn-panel {
    background-color: #e74c3c; /* Upečatljiva crvena boja */
    color: white !important;
    padding: 8px 16px; 
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s;
    text-decoration: none;
}
.btn-panel:hover {
    background-color: #c0392b;
    color: white;
}
.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Navigacija --- */
/* Podrazumevana (tamna) navigacija */
.navbar {
    position: relative; /* Ključno za pozicioniranje mobilnog menija */
    background: var(--dark-color);
    color: var(--white-color);
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
}
.navbar .container {
    display: flex;
    justify-content: flex-start; /* Poravnava elemente na početak (levo) */
    align-items: center;
    gap: 25px; /* Smanjen razmak između logotipa i menija */
}
.navbar .logo {
    font-size: 1.7rem; /* Smanjeno radi uštede prostora */
    font-weight: 700;
    
    color: var(--white-color);
    text-decoration: none;
    flex-shrink: 0; /* Sprečava smanjivanje logotipa */
    display: flex; /* Omogućava vertikalno poravnanje slike unutar linka */
    align-items: center;
}
.navbar .logo img {
    height: 40px; /* Prilagodite visinu po potrebi */
    /* vertical-align: middle; Nije više potrebno */
}
.nav-links-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Omogućava da wrapper zauzme preostali prostor */
}
.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 15px; /* Bolji način za razmak između elemenata */
    width: 100%; /* Ključno da bi margin-left: auto radilo */
}

/* Novi stil za korisnički deo navigacije */
.nav-user-area {
    margin-left: auto; /* Gura ovaj element skroz desno */
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Prikaz kredita u navigaciji */
.nav-credits {
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    /*border: 1px solid var(--white-color);*/
}

.navbar .nav-links a {
    color: var(--white-color);
    text-decoration: none;
    margin: 0; /* Uklanjamo marginu, koristićemo gap */
    white-space: nowrap; /* Sprečava prelamanje linkova */
}
.navbar .btn-host {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-style: bold;
}
.navbar .btn-host:hover {
    background: #0069d9; /* Čistija plava boja */
    border-color: #0062cc;
    font-size: bold;
    transform: none; /* Uklanja efekat senke/pomeranja */
}

/* Hamburger Meni Taster */
.nav-toggle {
    display: none; /* Sakriven na desktopu */
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1000;
    margin-left: auto; /* Gura hamburger ikonicu skroz desno na mobilnom prikazu */
}


/* Izuzetak za navigaciju na početnoj stranici */
body.home-page .navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    background: transparent;
    box-shadow: none;
}
body.home-page .navbar .logo {
    font-size: 1.8rem;
   /* text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); /* Poboljšava čitljivost */
}
body.home-page .navbar {
    font-weight: 400;
    /*text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); /* Poboljšava čitljivost */
}
body.home-page .navbar .btn-host {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--white-color);
}
body.home-page .navbar .btn-host:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

/* --- Hero Sekcija (Početna) --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/uploads/icons/landing.webp') no-repeat center center/cover;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;

}
.hero h1 {
    /* ISPRAVKA: Dodat text-shadow za bolju čitljivost na pozadinskoj slici. */
    font-size: 3.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    margin-bottom: 0.5rem;
}
.hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}
.search-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 800px; 
}
.search-form input{
    flex: 1;
    padding: 15px; 
    border: 1px solid #ccc;
    font-size: 16px;
}
.search-form .search-form-guests {
    flex-basis: 150px;
    flex-grow: 0;
}
.search-form .btn {
    flex-basis: 150px;
}

/* --- Promo sekcija na naslovnoj --- */
.promo-section {
    background-color: #eaf2ff; /* Svetlo plava pozadina */
    padding: 40px 0;
    text-align: center;
}
.promo-section h2 {
    color: var(--primary-color);
    margin-top: 0;
}
.promo-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Zaglavlje stranice (Svi apartmani) --- */
.page-header {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 40px 0;
    text-align: center;
}
.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

/* --- Sekcije --- */
.section {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Smanjivanje vertikalnih razmaka na mobilnim uređajima */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
}

/* --- Prikaz Apartmana (Grid) --- */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.listing-card {
    background: var(--white-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.listing-card-link {
    text-decoration: none;
    color: inherit;
}
.listing-card:hover {
    transform: translateY(-4px); /* Smanjen efekat podizanja */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); /* Suptilnija senka */
}
/* ISPRAVKA: Nedostajala je zatvorena zagrada '}' iznad, što je prekidalo CSS. */
 
.listing-card .image-container {
    position: relative;
    width: 100%;
    height: 180px; /* Smanjena visina slike */
}
.listing-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-badges {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}
.listing-card-content {
    padding: 15px; /* Smanjen padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.listing-card h3 {
    margin-bottom: 8px; /* Smanjena margina */
    font-size: 1.1rem; /* Smanjen font */
}
.listing-card .location {
    color: #666;
    margin-bottom: 10px; /* Smanjena margina */
    font-size: 0.9rem; /* Ujednačen font */
}
.listing-card .price {
    font-size: 1.1rem; /* Smanjen font */
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
}
.listing-card .price .price-eur {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}
.badge {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px; 
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Stil za istaknuti bedž na kartici oglasa */
.badge.badge-featured {
    background-color: #ffc107; /* Zlatno-žuta boja */
    color: #333; /* Tamniji tekst za bolji kontrast */
    border: 1px solid #ffc107;
}


.no-listings,
.no-results {
    grid-column: 1 / -1;
  text-align: center;
    font-size: 1.2rem;
    padding: 40px;
    background: var(--white-color); 
    border-radius: 4px;
}

/* --- Breadcrumbs (Modernizovano) --- */
.breadcrumbs {
    padding: 0.75rem 0; /* 12px */
    margin-bottom: 1.5rem; /* 24px */
    /* Uklonjen border-bottom za čistiji izgled */
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem; /* Još manji razmak */
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    font-size: inherit; /* Nasleđuje veličinu od parent elementa (nav) */
}

.breadcrumbs li a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.1rem 0.3rem; /* Smanjen padding */
    border-radius: 0.25rem; /* Zaobljene ivice */
    transition: background-color 0.2s ease;
}

.breadcrumbs li a:hover {
    background-color: #eaf2ff; /* Svetlo plava pozadina, usklađena sa ostalim hover efektima */
    text-decoration: none; /* Uklanjamo podvlačenje */
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 0.1rem; /* Minimalan razmak oko separatora */
    color: #b0b0b0; /* Svetlija, neutralnija boja */
}

.breadcrumbs li.active {
    color: #555; /* Malo tamnija boja za bolji kontrast */
    font-weight: 500;
    padding: 0.2rem 0.5rem; /* Dodajemo padding i ovde radi poravnanja */
}

/* --- Stranica sa detaljima oglasa --- */
.listing-details-container {
    background: var(--white-color);
    margin: 40px auto;
    padding: 30px; 
    border-radius: 4px;
    box-shadow: var(--box-shadow);
}
.listing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}
.listing-header .location {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}
.listing-rating-details {
    margin-bottom: 1rem;
}

.image-gallery {
    margin-bottom: 1.5rem; /* 24px */
}

/* --- Glavna slika --- */
.main-image {
    position: relative;
    width: 100%;
    overflow: hidden; 
    border-radius: 4px;
    background-color: #f0f0f0;
    margin-bottom: 15px;
    cursor: pointer;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 odnos stranica */
}
/* ISPRAVKA: Uklonjen duplirani selektor. */
.main-image picture,
.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* --- Minijature (Thumbnails) - NOVI PRISTUP: Fleksibilna mreža --- */


/* 1. Kontejner ostaje isti, bez posebnih stilova */
.thumbnails-container {
    width: 100%;
    position: relative;
}

/* 2. Mreža sa sličicama */
.thumbnails {
    display: grid;
    /*
     * repeat(): Ponovi obrazac.
     * auto-fit: Kreiraj onoliko kolona koliko može stati u dostupni prostor.
     * minmax(90px, 1fr): Svaka kolona će biti najmanje 90px široka, ali se može
     *                    proširiti (1fr) da popuni dostupan prostor.
     * Ovo automatski kreira responzivnu mrežu bez media queries.
    */
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;    
}

/* 3. Pojedinačne sličice */
.thumbnails img {
    /* Slike treba da popune svoju grid ćeliju */
    width: 100%;
    height: 65px; /* Fiksna visina za uniformnost */
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumbnails img:hover,
.thumbnails img.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* 4. Responzivna podešavanja */
@media (max-width: 768px) {
    .main-image {
        padding-bottom: 75%; /* Menjamo odnos na 4:3 za mobilne (3 / 4 * 100) */
    }
    /* Nema potrebe za posebnim podešavanjima za .thumbnails jer grid radi sam */
}

/* Opciono: Na većim ekranima, možemo postaviti veću minimalnu širinu za sličice */
@media (min-width: 992px) {
    .thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .thumbnails img {
        height: 80px;
    }
}

.map-wrapper { 
    grid-area: map; 
    margin-top: 30px; /* Odvaja mapu od gornjeg sadržaja */
}
.map-wrapper #map {
    height: 350px;
    width: 100%;
    border-radius: 4px;
    margin-top: 10px;
    z-index: 0; /* Osigurava da se mapa ne preklapa sa drugim elementima, npr. dropdown menijem */
}

.booking-box .share-buttons {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: left;
}
.booking-box .share-buttons h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.booking-box .share-buttons-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}
.booking-box .share-buttons img {
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.booking-box .share-buttons a:hover img {
    opacity: 1;
}

    /* Smanjuje razmak između cene i Booking.com dugmeta na mobilnim uređajima */
@media (max-width: 991px) {
    /* Ovaj media query se sada nalazi na dnu fajla, u glavnom bloku za responzivnost */
}

/* ==========================================================================
   DEFINITIVNO REŠENJE ZA RASPORED NA STRANICI OGLASA
   Ovaj blok koda zamenjuje sve prethodne (često konfliktne) stilove
   za .listing-info, .listing-main-content, .booking-box itd.
   Koristi se moderan, mobile-first pristup.
   ========================================================================== */

/* 1. Glavni kontejner za sadržaj i sidebar */
.listing-info {
    display: grid;
    grid-template-columns: 1fr; /* Podrazumevano: jedna kolona (mobile-first) */
    gap: 25px;
    margin-top: 1.5rem; /* 24px */
}

/* 2. Kontejner za glavni sadržaj (opis, sadržaji, recenzije...) */
.listing-main-content {
    min-width: 0; /* Važan fix za flex/grid koji sprečava prelivanje sadržaja */
}

/* 3. Sidebar sa cenom i kontaktom */
.booking-box {
    background: var(--light-color);
    padding: 20px; 
    border-radius: 4px;
    text-align: center;
    /* Na desktopu će biti lepljiv (sticky) */
    position: sticky;
    top: 35px;
    align-self: start; /* Poravnava ga na vrh grid oblasti */
}

/* 4. Prelazak na dve kolone za tablete i desktop */
@media (min-width: 992px) {
    .listing-info {
        /* Dve kolone: glavna kolona je fleksibilna, sidebar ima fiksnu širinu */
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 40px;
    }
}

/* 5. Prilagođavanje za mobilne uređaje (ispod 992px) */
@media (max-width: 991px) {
    .booking-box {
        order: -1; /* Pomera sidebar na vrh sadržaja na mobilnim uređajima */
        position: static; /* Uklanja 'sticky' ponašanje */
        margin-bottom: 0; /* Uklanjamo donju marginu jer gap radi posao */
    }
}

/* --- Stilovi za specifikacije (broj gostiju, kvadratura...) --- */
.listing-specs {
    display: grid;
    /* 2 kolone na manjim ekranima, 4 na većim */
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f8f9fa; 
    padding: 10px; 
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.spec-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.spec-icon svg {
    width: 1.8rem;
    height: 1.8rem;
}

.spec-text {
    display: flex;
    flex-direction: column;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.spec-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* --- Opšti stilovi unutar .listing-main-content --- */
.description-wrapper h2,
.amenities-wrapper h2,
.availability-wrapper h2,
.reviews-wrapper h2,
.map-wrapper h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.section-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2rem 0; /* 32px */
}

/* Reklama u sidebar-u */
.sidebar-ad-slot {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}
.ad-placeholder {
    background-color: #f0f0f0;
    padding: 20px;
    color: #999;
}

/* --- Stilovi za cenu u sidebar-u --- */
.desktop-price-box {
    padding: 15px;
    background-color: #eaf2ff; /* Svetlo plava pozadina da se istakne */
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #bde0ff;
}

.booking-box .price {
    font-size: 2.5rem; /* Povećana veličina fonta */
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2; /* Smanjen razmak */
}
.booking-box .price-eur-details {
    font-size: 1rem;
    color: #555;
    margin-top: 5px;
    font-weight: 500;
}
.booking-box .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* --- Kontakt podaci unutar booking box-a --- */
.contact-owner-box {
    border: 1px solid #e0e0e0; 
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    background-color: #f9f9f9;
}
.contact-owner-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.contact-owner-box .owner-name {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.contact-list li a {
    /* Omogućava prelamanje dugih linkova (npr. email adresa) */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Forma za slanje poruke vlasniku */
.contact-form-wrapper {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}
.contact-form-wrapper h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: left;
}
.contact-form-wrapper .form-group {
    margin-bottom: 10px;
}

/* --- Reviews Section --- */
.listing-rating-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.listing-rating-details .stars {
    font-size: 1.3rem;
}
.review-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.review-header strong {
    font-size: 1.1rem;
}
.review-comment {
    color: #555;
}
.review-form-wrapper {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa; 
    border-radius: 4px;
}
.review-form-wrapper h3 {
    margin-top: 0;
}
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 15px;
}
.star-rating input {
    display: none;
}
.star-rating label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating:not(:checked) > label:hover,
.star-rating:not(:checked) > label:hover ~ label {
    color: #ffc107;
}

.section-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 35px 0;
}

.contact-owner-box {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px; 
    background-color: #f9f9f9;
    margin-top: 20px;
}
.contact-owner-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}
.contact-actions-list { display: flex; flex-direction: column; gap: 10px; }
.contact-action-link { 
    display: flex; align-items: center; padding: 10px 12px; border-radius: 4px;
    background-color: #fff; border: 1px solid #e9ecef; text-decoration: none;
    color: #34495e; transition: all 0.2s ease; font-weight: 500;
    /* Dodaci za konzistentnost <button> i <a> elemenata */
    font-family: inherit; /* Nasleđuje 'Poppins' font od body-ja */
    font-size: inherit;   /* Nasleđuje podrazumevanu veličinu fonta */
    cursor: pointer;      /* Postavlja kursor na "ruku" za sve elemente */
}
.contact-action-link:hover {
    border-color: var(--primary-color); background-color: #f0f8ff;
    transform: translateY(-2px); box-shadow: 0 2px 5px rgba(0,0,0,0.07);
}
.contact-icon { font-size: 1.2rem; margin-right: 12px; width: 20px; text-align: center; }
.contact-icon-img { width: 20px; height: 20px; margin-right: 12px; }
.share-buttons-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.share-button-styled { display: flex; align-items: center; padding: 8px 12px; border-radius: 4px; text-decoration: none; color: #fff; font-size: 0.85rem; font-weight: 500; transition: opacity 0.2s; }
.share-button-styled:hover { opacity: 0.9; }
.share-button-styled img { width: 18px; height: 18px; margin-right: 8px; }
.share-button-styled.facebook { background-color: #3b5998; }
.share-button-styled.twitter { background-color: #1da1f2; }

/* --- Calendar Management Page --- */
.calendar-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    background-color: #f8f9fa; 
    padding: 15px; 
    border-radius: 4px;
    border: 1px solid #e9ecef;
}
.calendar-header-info img {
    width: 120px;
    height: 80px; 
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.calendar-header-info h2 {
    margin-bottom: 5px;
    font-size: 1.8rem;
}
.calendar-header-info p {
    text-align: left;
    margin-bottom: 0;
    color: #666;
}

/* --- Custom Calendar Styles --- */
.calendar-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.calendar-month {
    background: #fff;
    padding: 15px; 
    border-radius: 4px;
    box-shadow: var(--box-shadow);
    flex-grow: 1;
    min-width: 300px;
    border: 1px solid #e9ecef;
}
.calendar-month h4 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.calendar-month table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.calendar-month th {
    padding-bottom: 10px;
    font-weight: 600;
    color: #999;
    font-size: 0.9rem;
}
.calendar-month td {
    padding: 8px;
    height: 40px;
    vertical-align: middle;
    border-radius: 50%;
}
.calendar-month td.booked {
    background-color: #f8d7da;
    color: #721c24;
    text-decoration: line-through;
    font-weight: 600;
}
.calendar-month td.past {
    color: #ccc;
}

/* Forma za unos datuma u kalendaru */
.calendar-form .date-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.calendar-form .date-inputs .form-group {
    flex: 1;
    margin-bottom: 0;
}


/* Lista blokiranih termina */
.blocked-periods-list {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.blocked-periods-list h3 {
    margin-bottom: 20px;
}


/* Podešavanje za jednostavne forme unutar centriranog kontejnera */
.form-page-main .form-page-container {
    width: 100%;
    max-width: 420px; /* Usklađeno sa admin login formom */
    margin: 0;
    padding: 2.5rem; /* 40px */
    background: var(--white-color);
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-color);

}

.form-page-container h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-align: center;
}
.form-page-container p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}
.form-page-container #map {
    cursor: pointer; /* Pokazuje korisniku da je mapa interaktivna */
}

/* --- Kontejner za centrirane forme (Login, Register, etc.) --- */
.form-page-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* Stavlja logo iznad forme */
    align-items: center;
    justify-content: center;
    padding: 40px 15px; /* Smanjen bočni padding za bolji prikaz na telefonu */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Dugme za slanje forme (login, registracija...) */
.btn-submit {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem; /* Veći padding za glavna dugmad */
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px; 
    border: 1px solid #ccc;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group input[type="file"] {
    padding: 8px;
}
.form-group small {
    color: #777;
}

/* Dvokolonski red u formama */
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
}

/* --- Ostale sekcije (Početna) --- */
#how-it-works {
    background: var(--light-color);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.step .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}
#host-cta {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}
#host-cta h2 {
    font-size: 2.5rem;
}
#host-cta h3 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}
#host-cta p {
    max-width: 600px;
    margin: 0 auto 30px auto;
}
#host-cta .btn {
    background: var(--white-color);
    color: var(--primary-color);
}
#host-cta .btn:hover {
    background: #eee;
}

/* --- Footer --- */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 30px 0;
    margin-top: auto; /* Ključno za "lepljivo" podnožje */
}
.footer-nav {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-nav a {
    color: var(--white-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.footer-nav a:hover {
    opacity: 1;
}
.footer-copyright {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-creator a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-creator a:hover {
    color: rgba(255, 255, 255, 0.8);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
}

.footer-creator {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
}


.footer-logo img {
    height: 35px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 1;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-social a {
    display: inline-block;
}

.footer-social img {
    height: 24px;
    width: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-social a:hover img {
    opacity: 1;
}

/* Sakrivanje reklame u podnožju na stranicama za prijavu i registraciju */
.form-page-main + .footer-ad-slot {
    display: none;
}

/* Stilovi za baner obaveštenja o nekompletnom profilu */
.profile-nag-banner {
    background-color: #fef3c7; /* Žuta pozadina */
    color: #92400e;
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid #fde68a;
    font-size: 0.9rem;
    position: relative; /* Omogućava pozicioniranje close dugmeta */
    z-index: 1001; /* Da bude iznad navigacije ako je sticky */
}
.profile-nag-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.profile-nag-banner p { margin: 0; }
.profile-nag-banner a { color: #92400e; font-weight: 600; text-decoration: underline; }
.close-nag-btn {
    background: none; border: none; font-size: 1.5rem; color: #92400e;
    cursor: pointer; position: absolute; right: 25px; top: 50%;
    transform: translateY(-50%); line-height: 1; padding: 0 10px;
}
.close-nag-btn:hover { opacity: 0.7; }

/* --- Amenities Checkbox Grid (in forms) --- */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px; 
    background-color: #f8f9fa; 
    padding: 15px; 
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.amenity-item {
    display: flex;
    align-items: center;
}

.amenity-item input[type="checkbox"] {
    margin-left: 5px; /* Pomera checkbox udesno radi lakšeg klika */
    margin-right: 10px;
    width: auto; /* Override default form input width */
    transform: scale(1.2);
}

.amenity-item label {
    margin-bottom: 0; /* Override default form label margin */
    font-weight: 400;
}

/* --- Amenities Display (details page) --- */
.listing-amenities {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.amenity-display-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.amenity-display-item .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px; /* for alignment */
    text-align: center;
}

/* --- Sortiranje i dodatni filteri --- */
.sort-and-results-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 15px;
}

.sort-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.sort-links span {
    color: #555;
    font-weight: 600;
}
.sort-links a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px; 
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}
.sort-links a:hover {
    background-color: #f0f0f0;
}
.sort-links a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Sakrivamo mobilne linkove za sortiranje na desktopu */
.sort-links-mobile {
    display: none;
}

/* --- Responsive Meni (Hamburger) --- */
@media (max-width: 1024px) {
    .navbar .container {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block; /* Prikazujemo hamburger na manjim ekranima */

    }
    .hamburger {
        display: block;
        position: relative;
        width: 25px;
        height: 2px;
        background-color: var(--white-color);
        transition: background-color 0s 0.25s;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--white-color);
        transition: transform 0.25s ease-in-out, top 0.25s ease-in-out 0.25s, bottom 0.25s ease-in-out 0.25s;
    }

    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .nav-toggle.active .hamburger { background-color: transparent; }
    .nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; transition: top 0.25s ease-in-out, transform 0.25s ease-in-out 0.25s; }
    .nav-toggle.active .hamburger::after { transform: rotate(-45deg); bottom: 0; transition: bottom 0.25s ease-in-out, transform 0.25s ease-in-out 0.25s; }

    .nav-links-wrapper {
        display: none; /* Sakrivamo linkove */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-color);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 999; /* Osigurava da je meni iznad ostalog sadržaja (npr. filtera) */
    }

    .nav-links-wrapper.active {
        display: block; /* Prikazujemo kad je meni aktivan */
    }

    .navbar .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .navbar .nav-links a,
    .navbar .nav-links span {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .navbar .btn-host {
        margin-top: 10px;
    }

    .nav-user-area {
        margin-left: 0;
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
    }
    
    .nav-user-area > * {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
}

/* --- Mapa na početnoj stranici sa Sidebarom --- */
#listings-map-section {
    background-color: var(--light-color);
    padding-top: 0; /* Uklanjamo gornji padding jer već postoji od prethodne sekcije */
}

.map-container-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Mapa zauzima 2/3, sidebar 1/3 */
    gap: 25px;
    height: 600px; /* Fiksna visina za ceo kontejner */
}

#home-map {
    height: 100%; /* Mapa popunjava visinu svog grid kontejnera */ 
    width: 100%; 
    border-radius: 4px;
    box-shadow: var(--box-shadow);
    z-index: 0; /* Osigurava da se mapa pravilno prikazuje */
}

.map-sidebar {
    background-color: var(--white-color);
    border-radius: 4px;
    box-shadow: var(--box-shadow); 
    padding: 20px;
    overflow-y: auto; /* Dozvoljava skrolovanje ako je sadržaj predugačak */
    display: flex;
    flex-direction: column;
}

.sidebar-placeholder {
    text-align: center;
    color: #666;
    margin: auto; /* Centriranje poruke */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.sidebar-content {
    position: relative; /* Potrebno za pozicioniranje dugmeta za zatvaranje */
}

.close-sidebar-btn {
    position: absolute;
    top: -10px;
    right: -5px;
    background: none;
    border: none;
    font-size: 2.2rem;
    font-weight: 300;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}
.close-sidebar-btn:hover {
    color: #333;
}

.sidebar-image {
    width: 100%;
    height: 180px;
    object-fit: cover; 
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Stil za linkove u sidebar-u */
.sidebar-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
}
.sidebar-content h3 a:hover {
    text-decoration: underline;
}
.sidebar-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Leaflet Marker Cluster Custom Styles --- */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
	background-clip: padding-box;
	border-radius: 50%;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
	width: 30px;
	height: 30px;
	margin-left: 5px;
	margin-top: 5px;
	text-align: center;
	border-radius: 50%;
	font-size: 12px;
    font-weight: bold;
    color: var(--white-color);
}
.marker-cluster-small div span,
.marker-cluster-medium div span,
.marker-cluster-large div span {
	line-height: 30px;
}
.marker-cluster-small { background-color: rgba(0, 123, 255, 0.6); }
.marker-cluster-small div { background-color: rgba(0, 123, 255, 0.8); }
.marker-cluster-medium { background-color: rgba(240, 173, 78, 0.6); }
.marker-cluster-medium div { background-color: rgba(240, 173, 78, 0.8); }
.marker-cluster-large { background-color: rgba(217, 83, 79, 0.6); }
.marker-cluster-large div { background-color: rgba(217, 83, 79, 0.8); }

/* --- Filter Bar --- */
.filter-container {
    background-color: var(--white-color);
    padding: 20px;
    margin-bottom: 30px; 
    border-radius: 4px;
    box-shadow: var(--box-shadow);
}

/* Dodavanje plave linije na vrh glavnih filtera (početna i svi apartmani) */
.home-page .filter-container,
.svi-apartmani-page .filter-container {
    border-top: 4px solid var(--primary-color);
}

.filter-bar h3 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1.4rem;
}

.amenities-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.filter-bar .btn {
    padding: 10px 25px;
    font-size: 1rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-bar h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.filter-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.filter-actions .btn {
    flex-grow: 1;
}

/* Stilovi za dugme i kontejner dodatnih filtera */
.advanced-filters {
    margin-top: 15px;
}

.advanced-filters-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-filters-toggle .arrow {
    font-size: 1.2rem;
    line-height: 1;
}

.amenities-filter-grid.collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-top: 0;
    margin-bottom: 0;
}

.amenities-filter-grid.collapsible.expanded {
    max-height: 500px; /* Dovoljna visina da se vide svi filteri */
    padding-top: 15px;
    margin-bottom: 20px; /* Vraćamo donju marginu kada su filteri vidljivi */
}

/* Kartica za reklamu u listi oglasa */
.ad-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    border: 2px dashed #ccc;
    min-height: 350px; /* Da bude slične visine kao kartica oglasa */
}

.user-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.radio-group {
    display: flex;
    gap: 20px;
}

/* --- User Dropdown Menu --- */
.user-menu {
    position: relative;
    background: transparent;
    color: var(--white-color); 

    border: none; 
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s;
    /* margin-left: 15px; Uklonjeno, koristi se gap na .nav-links */
}


.user-menu-toggle {
    background: transparent;
    color: var(--white-color); 
    border: none; 
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.user-menu-normal {
    background: transparent;
    color: var(--white-color); 
    border: none; 
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.user-menu-normal:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


.user-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-menu-toggle .dropdown-arrow {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.2s ease-in-out;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: var(--white-color); 
    border-radius: 4px;
    min-width: 240px;
    z-index: 100;
    overflow: hidden;
    border: 1px solid #eee;
    font-size: 1rem;
}

.user-menu.active .user-menu-dropdown {
    display: block;
}

.user-menu.active .user-menu-toggle .dropdown-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-color) !important; /* Osigurava da boja teksta bude tamna */
    text-align: left;
    margin: 0 !important;
    white-space: nowrap;
}

.user-menu-dropdown a:hover {
    background-color: var(--light-color);
}

.user-menu-dropdown .dropdown-header {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    color: #6c757d;
    font-size: 0.9em;
}

.user-menu-dropdown .dropdown-header small {
    color: var(--primary-color);
    font-weight: bold;
}

.user-menu-dropdown .admin-link {
    color: var(--primary-color) !important; /* Plava boja za bolju čitljivost */
}
.user-menu-dropdown .admin-link:hover {
    background-color: #eaf2ff; /* Svetlo plava pozadina za hover */
}

.user-menu-dropdown .logout-link {
    border-top: 1px solid #eee;
}

/* --- Notifications Dropdown --- */
.nav-notifications {
    position: relative;
}

.notification-bell {
    background: transparent;
    border: none;
    color: var(--white-color);
    font-size: 1.0rem; /* Povećava ikonicu zvona */
    cursor: pointer;
    position: relative;
    padding: 5px;
    line-height: 1;
}

.notification-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--white-color); 
    border-radius: 4px;
    width: 600px;
    z-index: 100;
    border: 1px solid #eee;
    max-height: 400px;
    overflow-y: auto;
}
.notification-dropdown.active {
    display: block;
}
.notification-header {
    padding: 12px 15px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    color: var(--dark-color) !important; /* Osigurava da boja teksta bude tamna, čak i ako je unutar .navbar */
}
.notification-item, .notification-item-empty {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--dark-color) !important; /* Osigurava da boja teksta bude tamna, čak i ako je unutar .navbar */
}
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background-color: #f8f9fa; }
.notification-item p { margin: 0 0 5px 0; font-size: 0.9rem; }
.notification-item small { color: #999; font-size: 0.8rem; }
.notification-item.unread {
    background-color: #eaf2ff;
}

/* --- RESPONSIVE DIZAJN ZA MANJE EKRANE --- */

@media (max-width: 768px) {
    /* --- Početna stranica --- */
    .hero h1 {
        font-size: 2.2rem;
    }
    .search-form {
        flex-direction: column;
    }
    .search-form .btn {
        width: 100%;
    }

    /* Prilagođavanje filtera na stranici Svi Apartmani za mobilne */
    .svi-apartmani-page .filter-grid {
        grid-template-columns: 1fr 1fr; /* Zadržavamo dve kolone kao osnovu */
        gap: 15px;
    }
    /* Redosled i širina filtera na mobilnom */
    /* Grad (prvi element) */
    .svi-apartmani-page .filter-grid .form-group:nth-child(1) {
        order: 1;
    }
    /* Period boravka (drugi element) */
    .svi-apartmani-page .filter-grid .form-group:nth-child(2) {
        order: 3; /* Pomera se u drugi red */
        grid-column: 1 / -1; /* Zauzima punu širinu */
    }
    /* Broj gostiju (treći element) */
    .svi-apartmani-page .filter-grid .form-group:nth-child(3) {
        order: 2;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .listing-specs {
        grid-template-columns: repeat(2, 1fr); /* 2 kolone na mobilnom */
    }

    .listing-header h1 {
        font-size: 1.8rem; /* Smanjuje naslov oglasa */
    }

    /* Proširivanje sadržaja na stranici oglasa za mobilne uređaje */
    main.container {
        padding-left: 0;
        padding-right: 0;
    }
    .listing-details-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 20px; /* Ostavljamo padding da sadržaj ne dodiruje ivice */
    }

    /* Dodatno smanjivanje razmaka na mobilnim uređajima */
    .section-divider {
        margin: 1.5rem 0; /* 24px */
    }
    .listing-info {
        gap: 1.25rem; /* 20px */
    }

    /* Responzivnost za formu za unos datuma */
    .calendar-form .date-inputs {
        flex-direction: column;
        gap: 10px;
    }

    /* Vraćanje form-row na jednu kolonu na mobilnom */
    .form-row {
        flex-direction: column;
    }
        /* Prilagođavanje svih formi na mobilnom */
    .form-page-container {
        margin: 0;
        padding: 30px 20px;
        border-radius: 0;
        box-shadow: none;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    /* Vraćamo izgled kartice za jednostavne forme na mobilnom */
    .form-page-main .form-page-container {
        flex-grow: 0;
        display: block;
        border-radius: 4px;
        box-shadow: var(--box-shadow); 
        padding: 30px 20px;
    }

    /* Responzivnost za mapu sa sidebarom */
    .map-container-with-sidebar {
        grid-template-columns: 1fr; /* Slaže mapu i sidebar vertikalno */
        height: auto;
    }
    #home-map {
        height: 450px; /* Fiksna visina za mapu na mobilnom */
    }
    .map-sidebar {
        min-height: 200px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    .footer-left {
        align-items: center;
    }

    /* Prilagođavanje sortiranja za mobilne uređaje */
    .sort-and-results-count {
        flex-direction: column; /* Slažemo vertikalno */
        align-items: center;    /* Centriramo elemente */
        gap: 10px;
    }
    .sort-links-desktop {
        display: none;
    }
    .sort-links-mobile {
        display: flex;
        width: 100%;
        justify-content: space-around;
    }
    .sort-links {
        width: 100%;
    }
    .sort-links span {
        display: none; /* Sakrivamo tekst "Sortiraj po:" da uštedimo prostor */
    }
}
/* Dodatna responzivnost za list view na tabletima */
@media (max-width: 992px) {
    .listings-list-view .listing-card {
        flex-direction: column;
    }
    .listings-list-view .listing-card .image-container {
        flex-basis: 250px; /* Postavlja visinu slike na mobilnom */
    }
    .listings-list-view .listing-card .image-container img { 
        border-radius: 4px 4px 0 0; /* Zaobljene ivice samo na vrhu */
    }
    .listings-list-view .listing-card-details {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .listing-meta-actions {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Forsira 2 kolone za dugmad */
    }
    .feature-action-wrapper {
        grid-column: 1 / -1; /* Dugme "Istakni" zauzima celu širinu */
    }
}

/* --- Hero Search Form (Početna stranica) --- */
.hero-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.95); 
    padding: 25px; 
    border-radius: 4px;
    margin-top: 30px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-end; /* Poravnava elemente na dno */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.hero-search-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
    text-align: left; /* Osigurava da labela bude levo poravnata */
}
.hero-search-form .form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}
.hero-search-form .form-group input,
.hero-search-form .choices__inner {
    height: 50px; /* Ujednačena visina za sve elemente */
    padding-top: 12px;
    padding-bottom: 12px;
}
.hero-search-form .btn {
    flex-shrink: 0; /* Sprečava smanjivanje dugmeta */
    height: 50px; /* Ista visina kao i inputi */
    padding: 0 35px;
    font-size: 1.1rem;
}
@media (max-width: 991px) {
    .hero-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-search-form .form-group,
    .hero-search-form .btn {
        width: 100%;
    }
    .btn-submit { /* Specifično dugme za forme na mobilnom */
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }
}

.credit-package h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.package-description {
    color: #666;
    margin-bottom: 25px;
}

/* --- FAQ Page --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}
.faq-item details {
    padding: 15px 0;
}
.faq-item summary {
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    list-style: none; /* Uklanja podrazumevani marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker {
    display: none; /* Uklanja marker za Chrome/Safari */
}
.faq-item summary::after {
    content: '+'; /* Naš custom marker */
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

/* --- Lightbox za galeriju slika --- */
.lightbox {
    position: fixed;
    z-index: 9999;
    padding: 10px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 95vh;
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform:scale(0.8)}
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover, .lightbox-close:focus { color: #bbb; text-decoration: none; }

.lightbox-prev, .lightbox-next {
    cursor: pointer; position: absolute; top: 50%; width: auto;
    padding: 16px; margin-top: -50px; color: white; font-weight: bold;
    font-size: 24px; transition: 0.3s ease; border-radius: 0 3px 3px 0;
    user-select: none; -webkit-user-select: none;
}
.lightbox-next { right: 10px; border-radius: 3px 0 0 3px; }
.lightbox-prev { left: 10px; }
.lightbox-prev:hover, .lightbox-next:hover { background-color: rgba(255,255,255,0.1); }



.faq-content {
    padding-top: 15px;
    color: #555;
    line-height: 1.7;
}
.faq-content a {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- About Us Page --- */
.about-us-content {
    display: flex;
    gap: 40px;
    align-items: center; 
    background: var(--white-color); 
    padding: 40px; 
    border-radius: 4px;
    box-shadow: var(--box-shadow);
}
.about-us-image {
    width: 40%;
    max-width: 400px; 
    border-radius: 4px;
    flex-shrink: 0;
}
.about-us-text {
    flex-grow: 1;
}
.about-us-text h2 {
    color: var(--primary-color);
}
.about-us-text ul {
    list-style-position: inside;
    margin: 15px 0;
    padding-left: 10px;
}
.about-us-text li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    /* Responzivnost za O Nama stranicu */
    .about-us-content {
        flex-direction: column;
        padding: 20px;
    }
    .about-us-image {
        width: 100%;
        max-width: 100%;
    }

    /* Optimizacija: Učitavanje manje pozadinske slike za hero sekciju na mobilnim uređajima */
    .hero {
        /* Optimizacija: Učitavanje manje pozadinske slike (landing1.webp) za mobilne uređaje */
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/uploads/icons/landing1.webp');
    }
}

/* --- Popular Cities Section --- */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
}
.city-card { position: relative; display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; }
.city-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.city-card img { display: block; width: 100%; height: 120px; object-fit: cover; transition: filter 0.3s ease; }
.city-card:hover img { filter: brightness(0.8); }
.city-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.city-card-overlay h4 { color: white; font-size: 1rem; margin: 0; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }


/* --- Blog Page --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    background: var(--white-color);
    border-radius: 4px;
    overflow: hidden; 
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}
.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-content h3 {
    font-size: 1.4rem;
}
.blog-card-content h3 a {
    text-decoration: none;
    color: inherit;
}
.blog-card-excerpt {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}
.blog-card-content .btn {
    align-self: flex-start;
}

/* --- Blog Post Page --- */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white-color); 
    padding: 40px; 
    border-radius: 4px;
}
.blog-post-image {
    width: 100%;
    height: auto;
    max-height: 450px; 
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 30px;
}
.blog-post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}
.blog-post-content blockquote {
    background-color: #f8f9fa;
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic; 
    color: #555;
    border-radius: 0 4px 4px 0;
}
.blog-post-content blockquote p {
    margin-bottom: 0;
    font-style: normal;
}

/* --- Events Page --- */
.events-list {
    margin-top: 40px;
}
.event-item {
    background: var(--white-color);
    padding: 20px; 
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
}
.event-meta {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   Stilizovanje padajućih menija sa Choices.js
   ========================================================================== */

/* Osnovni kontejner */
.choices {
    margin-bottom: 0; /* Uklanjamo podrazumevanu marginu */
}

.choices__inner {
    background-color: #fff;
    border: 1px solid #ccc; 
    border-radius: 4px;
    padding: 7px 7px 4px 10px; /* Prilagođen padding */
    font-size: 1rem;
    min-height: auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: var(--dark-color); /* Osigurava da tekst bude vidljiv */
}

.is-open .choices__inner {
    border-radius: 4px 4px 0 0;
    border-color: var(--primary-color);
}

.is-focused .choices__inner {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Lista sa opcijama */
.choices__list--dropdown {
    border: 1px solid var(--primary-color);
    border-top: none; 
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Pojedinačna opcija */
.choices__list--dropdown .choices__item--selectable {
    padding: 10px;
    font-size: 1rem;
    text-align: left; /* ISPRAVKA: Osigurava levo poravnanje teksta */
    color: var(--dark-color); /* Osigurava da tekst bude vidljiv */
}

/* Stanje kada se pređe mišem preko opcije */
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Strelica */
.choices[data-type*="select-one"]::after {
    content: '';
    height: 0;
    width: 0;
    border-style: solid;
    border-color: var(--dark-color) transparent transparent transparent;
    border-width: 5px;
    position: absolute;
    right: 11.5px;
    top: 50%;
    margin-top: -2.5px;
    pointer-events: none;
    color: #0056b3;
}

.choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent var(--dark-color) transparent;
    margin-top: -7.5px;
}

/* Stilovi za formu za pretragu na početnoj strani */
.search-form .choices {
    flex: 1;
    min-width: 200px;
}
.search-form .choices__inner {
    padding: 15px 40px 15px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff; 
    min-height: auto;
    height: 100%;
}
.search-form .choices[data-type*="select-one"]::after {
    right: 20px;
}

/* Stilovi za prikaz slika za brisanje u formi */
.image-delete-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px; 
    background-color: #f8f9fa; 
    padding: 15px; 
    border-radius: 4px;
}
.image-delete-item {
    text-align: center;
}
.image-delete-item img {
    width: 100%;
    height: 90px; 
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 5px;
}
.image-delete-item label {
    font-size: 0.9rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-delete-item input[type="checkbox"] {
    margin-right: 5px;
    width: auto;
}

/* --- Reklama u podnožju (Footer Ad) --- */
.footer-ad-slot {
    padding: 30px 0;
    background-color: #f0f0f0; /* Malo drugačija pozadina da se istakne */
    text-align: center;
}

.footer-ad-slot .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Modal za potvrdu brisanja --- */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.delete-modal-content {
    background: var(--white-color);
    padding: 30px; 
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: background-color 0.4s ease;
}

.delete-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: 300;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
}

.delete-modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #dc3545; /* Crvena boja za upozorenje */
}

.modal-error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb; 
    padding: 10px; 
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* --- Sistem za brisanje poruka --- */
.conversation-item-wrapper {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #eee;
}
.conversation-item-wrapper:last-child {
    border-bottom: none;
}
.conversation-item {
    flex-grow: 1;
}
.delete-conversation-form {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}
.btn-delete-conversation {
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0 10px;
    line-height: 1;
}
.btn-delete-conversation:hover {
    color: #dc3545;
}

/* --- Modal za slanje emaila --- */
.email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    padding: 20px;
}

.email-modal-content {
    background: var(--white-color);
    padding: 30px; 
    border-radius: 4px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.email-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: 300;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
}

.email-modal-content h3 { margin-top: 0; margin-bottom: 10px; }
.email-modal-content p { margin-bottom: 20px; color: #666; font-size: 0.9rem; }
.email-modal-content .modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}
.delete-message-form {
    line-height: 1;
}
.delete-message-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}
.message-bubble:hover .delete-message-btn {
    opacity: 0.8;
}

/* --- Sistem za poruke --- */
.conversations-list {
    background: var(--white-color);
    border-radius: 4px;
    overflow: hidden; 
    box-shadow: var(--box-shadow);
}
.conversation-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}
.conversation-item:last-child {
    border-bottom: none;
}
.conversation-item:hover {
    background-color: #f8f9fa;
}
.conversation-item.unread {
    background-color: #eaf2ff;
    font-weight: bold;
}
.conversation-info {
    flex-grow: 1;
}
.conversation-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}
.unread-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem; 
    padding: 2px 8px; 
    border-radius: 4px;
}
.unread-badge-menu {
    background-color: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 10px;
    vertical-align: top;
    margin-left: 5px;
}
.conversation-last-message {
    color: #666;
    font-size: 0.9rem;
}
.conversation-item.unread .conversation-last-message {
    color: var(--dark-color);
}
.conversation-time {
    flex-shrink: 0;
    margin-left: 20px;
    font-size: 0.8rem;
    color: #999;
}

/* Prikaz razgovora (chat) */
.chat-container {
    background: var(--white-color);
    border-radius: 4px;
    box-shadow: var(--box-shadow); 
    display: flex;
    flex-direction: column;
    height: 70vh; /* Visina prozora za chat */
}
.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
}
.message-bubble.sent {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}
.message-bubble.received {
    background-color: #e9ecef;
    color: var(--dark-color);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.message-time {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.4);
    margin-top: 5px;
    text-align: right;
}
.message-bubble.sent .message-time {
    color: rgba(255,255,255,0.7);
}
.chat-form-wrapper {
    padding: 15px;
    border-top: 1px solid #eee;
}
.chat-form {
    display: flex;
    gap: 10px;
}
.chat-form textarea {
    flex-grow: 1;
    resize: none;
    padding: 10px;
    border: 1px solid #ccc; 
    border-radius: 4px;
    height: 50px;
}
.chat-form .btn {
    flex-shrink: 0;
}
.no-messages {
    margin: auto;
    color: #999;
}
.host-benefits-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
    max-width: 600px; /* Ograničava širinu za bolju čitljivost */
    margin: 20px auto; /* Centira listu */
}
.host-benefits-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Dodatak za prikaz dva oglasa u redu na mobilnim uređajima --- */

/* Ovaj kod se primenjuje samo na ekranima širine do 768px */
@media (max-width: 768px) {
    /* Ciljamo grid oglasa na stranici "Svi apartmani" i na početnoj stranici */
    .svi-apartmani-page .listings-grid,
    .home-page .listings-grid {
        /* Vraćamo na jednu kolonu za bolju preglednost na telefonima */
        grid-template-columns: 1fr;
        /* Povećavamo razmak jer su kartice sada jedna ispod druge */
        gap: 20px;
    }

    /* Prilagođavanje visine slike za jednu kolonu na mobilnim uređajima */
    .svi-apartmani-page .listing-card .image-container,
    .home-page .listing-card .image-container {
        height: 200px; /* Povećana visina slike da izgleda bolje u punoj širini */
    }

    .svi-apartmani-page .listing-card-content,
    .home-page .listing-card-content {
        padding: 12px; /* Dodatno smanjen padding */
    }
    .svi-apartmani-page .listing-card-content h3,
    .home-page .listing-card-content h3 {
        font-size: 1rem; /* Malo smanjujemo naslov */
        margin-bottom: 5px;
    }

    .svi-apartmani-page .listing-card-content .location, .home-page .listing-card-content .location { font-size: 0.85rem; margin-bottom: 8px; }
    .svi-apartmani-page .listing-card-content .price, .home-page .listing-card-content .price { font-size: 1rem; }
    .svi-apartmani-page .listing-card-content .price .price-eur, .home-page .listing-card-content .price .price-eur { display: none; } /* Sakrivamo cenu u evrima da stane sve */
}

/* --- Stilovi sa stranice oglas-detalji.php --- */
.amenities-list-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.amenity-display-item { display: flex; align-items: center; gap: 12px; }
.amenity-display-item .icon { font-size: 1.4em; }
.amenity-display-item.hidden-amenity { display: none; }
#show-all-amenities { margin-top: 20px; }
@media (max-width: 576px) {
    .amenities-list-details { grid-template-columns: 1fr; }
}

/* Stilovi za poruku o uspešnom kreiranju oglasa */
.listing-creation-success {
    background-color: #f0f9f4;
    border: 1px solid #a5d6a7;
    border-left: 5px solid #4caf50; 
    border-radius: 4px;
    padding: 30px 40px;
    text-align: center;
    margin: 20px 0 40px 0;
}
.listing-creation-success .success-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1;
}
.listing-creation-success h2 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 10px;
}
.listing-creation-success p {
    font-size: 1.1rem;
    color: #333;
    max-width: 700px;
    margin: 0 auto 25px;
}
.listing-creation-success .success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- Stilovi sa stranice svi-apartmani.php --- */
.collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; 
    background-color: #f8f9fa; 
    border-radius: 0 0 4px 4px;
}
.collapsible.expanded {
    max-height: 2000px; /* Povećana vrednost da stanu svi filteri na mobilnom */ 
    transition: max-height 0.5s ease-in;
    border: 1px solid #dee2e6;
    border-top: none;
}
.amenities-filter-wrapper { padding: 20px; }
.amenity-group-filter { margin-bottom: 20px; }
.amenity-group-filter:last-child { margin-bottom: 0; }
.amenity-group-filter h5 { margin: 0 0 10px 0; font-size: 1rem; font-weight: 600; border-bottom: 1px solid #e9ecef; padding-bottom: 8px; }
.amenities-filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.amenity-item label { display: flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Prilagođavanje redosleda i stila na stranici oglasa za mobilne uređaje
   ========================================================================== */
@media (max-width: 991px) {
    /* 1. Glavni kontejner postaje flex kolona */
    .listing-info {
        display: flex;
        flex-direction: column;
        gap: 1.5rem; /* 24px - ovo je glavni razmak između svih sekcija na mobilnom */
    }

    /* 2. "Promovišemo" decu glavnih kontejnera da budu direktni flex item-i */
    .listing-main-content,
    .booking-box {
        display: contents;
    }

    /* 3. Definišemo novi redosled elemenata pomoću 'order' */

    /* Cena ide odmah na početak, ispod slika */
    .desktop-price-box { order: 1; }

    /* Opcioni elementi iz sidebar-a (ako postoje) */
    .booking-com-section { order: 2; }
    .sidebar-ad-slot { order: 3; }

    /* Zatim ide glavni sadržaj */
    .description-wrapper { order: 4; }
    .description-wrapper + .section-divider { order: 5; }
    .amenities-wrapper { order: 6; }
    .amenities-wrapper + .section-divider { order: 7; }
    .house-rules-wrapper { order: 8; }
    .house-rules-wrapper + .section-divider { order: 9; }
    .availability-wrapper { order: 10; }
    .availability-wrapper + .section-divider { order: 11; }
    .reviews-wrapper { order: 12; }
    .reviews-wrapper + .section-divider { order: 13; }
    .map-wrapper { order: 14; }

    /* Na samom kraju idu kontakt, deljenje i akcije za vlasnika */
    .contact-owner-box { order: 100; }
    .share-buttons { order: 101; }
    .booking-box > a.btn-secondary,
    .booking-box > form[action="/obrisi-oglas"] {
        order: 102;
    }

    /* 4. Stilizujemo elemente da budu od ivice do ivice i da izgledaju kao sekcije */

    /* Cena - dodajemo razmak ispod */
    .desktop-price-box {
        margin-bottom: 0; /* Uklanjamo, oslanjamo se na gap od .listing-info */
    }

    /* Kontakt, Deljenje i Akcije - dodajemo razmak iznad */
    .contact-owner-box,
    .share-buttons,
    .booking-box > a.btn-secondary[href*="izmeni-oglas"] { /* Ciljamo samo prvi element u grupi akcija */
        margin-top: 0; /* Uklanjamo, oslanjamo se na gap od .listing-info */
    }

    /* Smanjivanje razmaka između dugmadi za vlasnika oglasa na mobilnom */
    .booking-box > a.btn-secondary.my-10 {
        margin-bottom: 0.5rem; /* Smanjeno sa 0.625rem (10px) */
    }
    .booking-box > form[action="/obrisi-oglas"] {
        margin-top: 0; /* Uklanjamo bilo kakav gornji razmak sa forme za brisanje */
    }

    /* Uklanjamo stilove "kutije" sa elemenata koji su bili u sidebar-u */
    .contact-owner-box,
    .share-buttons {
        background: none;
        border: none;
        padding: 0;
    }

    /* Stilizujemo naslove da liče na naslove iz glavnog sadržaja (h2) */
    .booking-box .contact-owner-box h4,
    .booking-box .share-buttons h4 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        text-align: left;
    }

    /* Uklanjamo dupli border-top sa dugmića za deljenje */
    .booking-box .share-buttons {
        border-top: none;
        padding-top: 0;
    }

    /* 5. Smanjivanje ostalih vertikalnih razmaka */
    .oglas-detalji-page .listing-details-container {
        padding: 20px 15px; /* Smanjujemo padding celog kontejnera */
    }
    .oglas-detalji-page .image-gallery,
    .oglas-detalji-page .listing-info {
        margin-top: 1rem; /* Smanjujemo razmak ispod naslova i ispod galerije */
        margin-bottom: 0;
    }
    .oglas-detalji-page .section-divider {
        display: none; /* Sakrivamo linije, jer gap sada pravi razmak */
    }
    .oglas-detalji-page .map-wrapper {
        margin-top: 0; /* Uklanjamo marginu */
    }
}

/* --- Kućni red (House Rules) na stranici oglasa --- */
/* Stilovi su prilagođeni da sekcija bude manje upadljiva ("sitnim slovima") */
.house-rules-wrapper h2 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.4rem; /* Smanjen naslov */
    color: #6c757d; /* Neutralnija boja */
    font-weight: 600;
}

.house-rules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px; /* Smanjen razmak */
}

.house-rule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0; /* Smanjen vertikalni padding, uklonjen bočni */
    background-color: transparent !important; /* Uklanja pozadinu */
}

/* Vraćamo boju teksta na podrazumevanu, jer smo uklonili pozadinu */
.house-rule-item.allowed,
.house-rule-item.not-allowed { color: var(--dark-color); }

.rule-icon { font-size: 1.1rem; line-height: 1; }
.house-rule-item.allowed .rule-icon { color: #28a745; } /* Zelena za da */
.house-rule-item.not-allowed .rule-icon { color: #dc3545; } /* Crvena za ne */

.rule-text {
    font-weight: 400; /* Normalna debljina fonta */
    font-size: 0.9rem; /* Smanjen font */
    color: var(--dark-color); /* Usklađeno sa ostatkom teksta */
}

/* --- Stranica: Uputstvo za korisnike --- */
.uputstvo-container {
    background-color: var(--white-color);
    padding: 30px 40px;
    border-radius: 4px;
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.uputstvo-intro,
.uputstvo-outro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.uputstvo-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e9ecef;
}
.uputstvo-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.uputstvo-container h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.uputstvo-container h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.uputstvo-container p { line-height: 1.8; margin-bottom: 1rem; }
.uputstvo-container ul { list-style-type: none; padding-left: 0; }
.uputstvo-container li { position: relative; padding-left: 30px; margin-bottom: 1rem; line-height: 1.7; }
.uputstvo-container li::before { content: '✔'; position: absolute; left: 0; top: 0; color: var(--primary-color); font-weight: bold; font-size: 1.2rem; }
.uputstvo-container a { color: var(--primary-color); font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--primary-color); }
.uputstvo-container a:hover { color: #0056b3; border-bottom-style: solid; }

@media (max-width: 768px) {
    .uputstvo-container { padding: 20px; }
}