/* style.css - Glavni stili za Maldivi.com */


        /* --- GLOBALNI STILI --- */
        body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; background-color: #f4f4f4; }
        a { text-decoration: none; }
        ul { list-style: none; padding: 0; margin: 0; }
        * { box-sizing: border-box; }

        /* --- HEADER --- */
        header {
            background: url('https://www.maldivi.com/images/body-bg.jpg') no-repeat center top;
            background-size: cover; 
            min-height: 180px; 
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: flex-end; 
            border-bottom: 1px solid #ccc;
        }

        .header-content {
            width: 100%;
            max-width: 980px; 
            margin: 0 auto;
            position: relative;
            padding-top: 20px;
        }

        /* ZGORNJA VRSTICA */
        .top-row {
            display: flex; justify-content: space-between; align-items: flex-end; 
            padding-bottom: 15px; padding-left: 10px; padding-right: 10px;
        }
        .logo img { max-width: 250px; height: auto; display: block; }
        .top-right { text-align: right; color: white; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
        
        .phone-display { font-size: 22px; font-weight: bold; margin-bottom: 8px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
        .search-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
        
        .social-icons a { color: #3b5998; background: white; padding: 2px 5px; border-radius: 2px; font-size: 14px; margin-left: 2px; }

        /* MALI ISKALNIK (HEADER) */
        /* Sprememba: position relative je nujen za autocomplete */
        .search-wrapper { 
            position: relative; 
            display: flex; 
            box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
            border-radius: 3px; 
            white-space: nowrap; 
        }
		
		/* Stil za naslove kategorij v iskalniku */
		.autocomplete-category {
			padding: 5px 10px;
			font-size: 11px;
			font-weight: bold;
			color: #888;
			background: #f9f9f9;
			border-bottom: 1px solid #eee;
			text-transform: uppercase;
			letter-spacing: 1px;
		}
        
        .search-input { padding: 6px 10px; border: none; border-radius: 3px 0 0 3px; width: 200px; font-size: 13px; outline: none; color: #333; box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); }
        
        .search-btn {
            background: linear-gradient(to bottom, #ffba00 0%, #ff9000 100%);
            border: none; color: white; padding: 6px 15px; font-weight: bold; font-size: 13px;
            border-radius: 0 3px 3px 0; cursor: pointer; text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
            transition: background 0.2s ease, box-shadow 0.2s ease;
        }
        .search-btn:hover { background: linear-gradient(to bottom, #ffca33 0%, #ffa500 100%); box-shadow: 0 0 10px rgba(255, 153, 0, 0.7); }

        /* --- AUTOCOMPLETE REZULTATI (POPRAVLJENO) --- */
        #autocomplete-list {
            position: absolute; 
            top: 100%;       /* Takoj pod iskalnikom */
            left: 0; 
            min-width: 100%; /* Širina vsaj toliko kot iskalnik */
            background: white;
            border: 1px solid #ccc; 
            border-radius: 0 0 3px 3px; 
            border-top: none; 
            z-index: 9999;   /* Zelo visoko, da prekrije sliko */
            display: none;   /* Skrito privzeto */
            color: #333; 
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            max-height: 300px; 
            overflow-y: auto; 
            text-align: left;
            margin-top: 1px;
        }
        #autocomplete-list li { 
            padding: 10px 12px; 
            cursor: pointer; 
            border-bottom: 1px solid #eee; 
            font-size: 13px; 
            background: #fff;
        }
        #autocomplete-list li:hover { 
            background-color: #f0f7fc; 
            color: #18a3d5;
        }

        /* MENI NAVIGACIJA */
        .main-nav {
            background: linear-gradient(to bottom, #ffcc00 0%, #ff9900 100%);
            border-radius: 5px 5px 0 0; box-shadow: 0 -2px 4px rgba(0,0,0,0.1); margin: 0 10px;
        }
        .main-nav ul { display: flex; width: 100%; }
        .main-nav li {
            flex-grow: 1; text-align: center; border-right: 1px solid rgba(255,255,255,0.2);
            position: relative; transition: all 0.3s ease;
        }
        .main-nav li:last-child { border-right: none; }
        .main-nav a {
            display: block; padding: 12px 5px; color: white; font-weight: bold; font-size: 14px;
            text-shadow: 1px 1px 1px rgba(0,0,0,0.3); white-space: nowrap;
        }
        
        /* HOVER STANJE */
        .main-nav li:hover { 
            box-shadow: 0 0 10px rgba(255, 153, 0, 0.5); 
            background: rgba(255,255,255,0.1); 
            border-radius: 5px 5px 0 0; 
        }
        
        /* AKTIVNO STANJE */
        .main-nav li.active {
            background: rgba(255, 255, 255, 0.25); 
            box-shadow: inset 0 -3px 0 #18a3d5; 
            border-radius: 5px 5px 0 0;
        }
        .main-nav li.active a {
            text-shadow: none; 
            color: #fff;
        }

        .main-nav i { margin-right: 6px; }

        /* LOGIKA ZA PRIKAZ (Desktop vs Mobile) */
        .mobile-only { display: none !important; }
        .desktop-only { display: flex !important; }

        @media screen and (max-width: 768px) {
            .phone-display, .social-icons, .desktop-only { display: none !important; }
            .mobile-only { display: flex !important; }
            .top-row { flex-direction: column; align-items: center; gap: 10px; }
            .top-right { width: 100%; text-align: center; }
            .search-row { justify-content: center; width: 100%; padding: 0 10px; }
            .search-wrapper { width: 100%; }
            .search-input { flex-grow: 1; width: auto; }
            .main-nav { margin: 0; border-radius: 0; width: 100%; }
            .main-nav ul { flex-wrap: wrap; }
            .main-nav li { flex-basis: 50%; border-bottom: 1px solid rgba(255,255,255,0.2); border-right: 1px solid rgba(255,255,255,0.2); }
            .main-nav li:nth-child(2n) { border-right: none; }
            .main-nav li:hover, .main-nav li.active { border-radius: 0; box-shadow: none; }
            .main-nav li.active { background: rgba(255,255,255,0.2); border-bottom: 3px solid #18a3d5; }
        }



/* GLAVNA MREŽA */
.container.main-content {
    display: flex;
    max-width: 980px;
    margin: 20px auto;
    padding: 0 10px;
    gap: 20px;
    font-family: 'Arial', sans-serif;
}
.sidebar-search { flex: 0 0 260px; }
.results-area { flex: 1; }

/* ISKALNIK (Sidebar) */
.search-box {
    background: #f4f9fc;
    padding: 15px;
    border: 1px solid #dcebf7;
    border-radius: 4px;
}
.search-title {
    color: #008cba;
    margin-top: 0;
    font-size: 18px;
    border-bottom: 1px solid #dcebf7;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.form-group { margin-bottom: 10px; }
.icon-input { position: relative; }
.icon-input i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #008cba;
}
.icon-input input {
    padding-left: 35px;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: white;
    box-sizing: border-box;
}
.form-row { display: flex; gap: 5px; }
.form-group.half { flex: 1; }

.search-submit-btn {
    width: 100%;
    background: #ff9900;
    color: white;
    border: none;
    padding: 10px;
    font-weight: bold;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
    text-transform: uppercase;
}
.search-submit-btn:hover { background: #e68a00; }

.custom-multiselect { position: relative; }
.select-box {
    position: relative;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.checkboxes {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    background: #fff;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.checkboxes label {
    display: block;
    padding: 8px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #333;
}
.checkboxes label:hover { background-color: #f0f7fc; }
.checkboxes input { width: auto; margin-right: 8px; vertical-align: middle; }

.sidebar-help {
    margin-top: 15px;
    font-size: 12px;
    color: #18a3d5;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.sidebar-help:hover { text-decoration: underline; }

/* AUTOCOMPLETE */
.custom-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    z-index: 1000;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}
.custom-autocomplete-list li {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #333;
}
.custom-autocomplete-list li:hover { background: #f0f7fc; }

/* REZULTATI - HEADER */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.results-header h1 {
    color: #18a3d5;
    font-size: 24px;
    margin: 0;
}

/* KARTICA HOTELA (Horizontalna) */
.hotel-card-horizontal {
    display: flex;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    min-height: 170px;
}

/* KARTICA - SLIKA & SLIDER */
.card-left {
    flex: 0 0 200px;
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 4px;
    border-right: 1px solid #eee;
}
.image-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 18px;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}
.card-left:hover .slider-arrow { opacity: 1; }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }

.heart-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    z-index: 3;
    font-size: 12px;
}

/* KARTICA - SREDINA */
.card-middle {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    border-right: 1px dotted #ccc;
}
.hotel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}
.hotel-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}
.stars {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.stars i {
    font-size: 9px !important;
    color: #ffcc00;
    margin-right: 2px;
}
.hotel-location {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}

/* Ocene */
.rating-grid {
    background: #f9f9f9;
    padding: 5px;
    border-radius: 3px;
    margin-bottom: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rating-main {
    text-align: center;
    border-right: 1px solid #ddd;
    padding-right: 10px;
    min-width: 60px;
}
.rating-score {
    background: #008cba;
    color: white;
    padding: 2px 5px;
    font-weight: bold;
    font-size: 12px;
    border-radius: 2px;
    display: inline-block;
}
.rating-label {
    display: block;
    font-size: 9px;
    color: #008cba;
    margin-top: 2px;
}
.rating-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 10px;
    font-size: 10px;
    color: #555;
}

/* Keywords */
.tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: auto;
}
.tags span {
    background: #eef7fb;
    color: #008cba;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    white-space: nowrap;
    border: 1px solid #dcebf7;
}

/* KARTICA - DESNA STRAN */
.card-right {
    flex: 0 0 190px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    background: #fdfdfd;
}
.offer-details {
    margin-bottom: 10px;
    text-align: left;
}
.offer-row {
    font-size: 11px;
    color: #444;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.offer-row i {
    color: #888;
    width: 15px;
    text-align: center;
    margin-right: 5px;
}
.price-box { margin-top: auto; }
.duration-text {
    font-size: 10px;
    color: #888;
    margin-bottom: 2px;
}
.total-price {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}
.per-person {
    font-size: 10px;
    color: #999;
    margin-bottom: 8px;
}
.btn-check {
    display: block;
    width: 100%;
    text-align: center;
    background: #ff9900;
    color: white;
    padding: 7px 0;
    font-weight: bold;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
}
.btn-check:hover { background: #e68a00; }

/* PAGINACIJA */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    margin-bottom: 20px;
}
.page-link {
    display: inline-block;
    padding: 8px 14px;
    background: white;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.2s;
}
.page-link:hover:not(.disabled) {
    background: #f0f7fc;
    border-color: #18a3d5;
    color: #18a3d5;
}
.page-link.active {
    background: #18a3d5;
    color: white;
    border-color: #18a3d5;
    pointer-events: none;
}
.page-link.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}
.dots { padding: 8px 5px; color: #777; }

/* OSTALO - Banner */
.contact-banner {
    margin-top: 20px;
    padding: 10px;
    text-align: left;
}
.contact-banner h3 {
    color: #ff9900;
    font-size: 16px;
    margin: 0 0 10px 0;
}
.banner-phone {
    color: #18a3d5;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.contact-banner p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}
.agent-img {
    width: 100%;
    border-radius: 4px;
    margin-top: 10px;
    opacity: 0.8;
}

/* TOP HOTEL značka na sliki */
.top-hotel-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #ff9900; /* Oranžna barva */
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

/* MOBILE */
@media screen and (max-width: 768px) {
    .container.main-content { flex-direction: column; }
    .sidebar-search { width: 100%; }
    .hotel-card-horizontal { flex-direction: column; }
    .card-left { height: 160px; }
    .card-middle { border-right: none; border-bottom: 1px dotted #ccc; }
    .card-right { text-align: left; align-items: flex-start; }
    .offer-details { text-align: left; }
    .offer-row { text-align: left; }
    .price-box { width: 100%; }
    .contact-banner { display: none; }
}