/* package-details.css */

/* GLOBAL */
* { box-sizing: border-box; }
body { font-family: 'Arial', sans-serif; color: #333; background: #f4f4f4; }

/* ŠIRINA USKLAJENA S HEADERJEM */
.container.main-content { 
    max-width: 980px; 
    margin: 20px auto; 
    display: flex; 
    gap: 20px; 
    align-items: flex-start; 
}

/* LEVI STOLPEC */
.sidebar-search { flex: 0 0 260px; }

/* DESNI STOLPEC */
.hotel-details-area { flex: 1; min-width: 0; width: 100%}

/* HEADER */
.compact-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 15px; border-bottom: 1px solid #ddd; }
.ch-title h1 { color: #0088cc; font-size: 24px; margin: 0; }
.ch-loc { color: #666; font-size: 14px; }
.ch-stars { color: #ffcc00; font-size: 18px; }

/* SLIKE */
.big-hotel-image { position: relative; width: 100%; height: 350px; border-radius: 4px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.big-hotel-image img, .big-hotel-image iframe { width: 100%; height: 100%; object-fit: cover; }
.image-rating-badge { position: absolute; bottom: 15px; right: 15px; background: #0088cc; color: white; padding: 5px 10px; font-weight: bold; border-radius: 3px; }

/* GUMBI ZA SLIKE */
.compact-controls { margin-bottom: 20px; }
.control-btn { background: white; border: 1px solid #ccc; padding: 4px 13px; margin-right: 5px; cursor: pointer; border-radius: 3px; font-weight: bold; color: #555; }
.control-btn.active { background: #0088cc; color: white; border-color: #0088cc; }

/* --- TABELA REZULTATOV --- */
.results-table-container {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.offers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

/* Glava tabele */
.offers-table thead th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: bold;
    text-align: left;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
    font-size: 12px;
}

/* Vrstice */
.offers-table tbody tr { border-bottom: 1px solid #eee; }
.offers-table tbody tr:last-child { border-bottom: none; }
.offers-table tbody tr:hover { background-color: #fdfdfd; }

.offers-table td { padding: 15px; vertical-align: top; color: #333; }

/* STOLPCI */
.col-flight { width: 35%; }
.col-date { width: 10%; white-space: nowrap; font-weight: bold; }
.col-dur { width: 8%; text-align: center; }
.col-info { width: 30%; }
.col-price { width: 17%; text-align: right; vertical-align: middle !important; }

/* Podrobnosti leta */
.flight-airport { font-size: 14px; font-weight: bold; color: #000; display: flex; align-items: center; gap: 5px; }
.flight-airline { font-size: 11px; color: #666; margin-top: 4px; margin-bottom: 4px; font-style: italic;}
.flight-schedule { font-size: 11px; color: #444; line-height: 1.4; }
.flight-schedule span { display: block; }

/* Soba in Storitev */
.room-name { font-weight: bold; display: block; margin-bottom: 3px; font-size: 13px; }
.board-name { color: #555; font-size: 12px; }

/* Cena in Gumb */
.price-tag { font-size: 16px; font-weight: bold; color: #000; display: block; }
.price-per { font-size: 11px; color: #777; margin-bottom: 8px; display: block; }
.price-total { font-size: 10px; color: #999; display: block; margin-bottom: 5px; }

/* GUMB PREVERI - ORANŽEN (kot na sliki) */
.btn-check-avail {
    background: #ff9900; 
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: all 0.2s;
}
.btn-check-avail:hover { background: #e68a00; }
.btn-check-avail:disabled { background: #ccc; cursor: not-allowed; }

.btn-final-book {
    background-color: #ff9900; color: white; border: none; padding: 8px 10px;
    font-weight: bold; font-size: 12px; border-radius: 3px; cursor: pointer;
    width: 100%; margin-top: 3px;
}
.btn-final-book:hover { background-color: #e68a00; }

/* Gumb Rezerviraj (Zelen po preverjanju) */
.btn-book-success {
    background: #2e7d32 !important;
}

/* Skriti detajli */
tr.details-row { display: none; background: #fff8e1; }
tr.details-row td { padding: 10px 15px; border-top: 1px dashed #ddd; }

@media screen and (max-width: 900px) {
    .container.main-content { flex-direction: column; padding: 0 10px; }
    .sidebar-search { width: 100%; margin-bottom: 20px; }
    .big-hotel-image { height: 200px; }
    
    /* --- TABLE CARD LAYOUT --- */
    .offers-table thead { display: none; }
    
    .offers-table tr { 
        display: block; 
        position: relative; /* Essential for positioning the price */
        border: 1px solid #ddd; 
        margin-bottom: 4px; 
        border-radius: 6px; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        background: #fff;
        min-height: 120px; /* Ensure height for the price box */
    }

    /* Convert cells to blocks */
    .offers-table td { 
        display: block; 
        border: none; 
    }
    
    /* LEFT SIDE: Flight, Date, Info (60% width) */
    .col-flight, .col-date, .col-info { 
        width: 60% !important; 
        padding: 4px 10px !important;
        text-align: left;
        box-sizing: border-box;
    }

    /* RIGHT SIDE: Price & Button (Absolute Position) */
    .col-price { 
        position: absolute !important;
        top: 0;
        right: 0;
        width: 40% !important; 
        height: 100%;
        text-align: right !important; 
        padding: 10px !important; 
        background: transparent !important;
        border-top: none !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column;
        justify-content: center; /* Center vertically */
        align-items: flex-end;
    }

    /* Visual adjustments for mobile */
    .price-tag { 
        font-size: 22px; 
        color: #0093d9; 
        font-weight: bold;
        display: block;
    }
    .price-per {
        font-size: 11px;
        color: #777;
        margin-bottom: 5px;
    }
    .btn-check-avail { 
        width: 100%; 
        max-width: 140px; /* Limit button width */
        padding: 8px; 
        font-size: 13px; 
    }
    
    /* Adjust text sizes for left columns */
    .flight-airport { font-size: 13px; font-weight: bold; }
    .flight-schedule { font-size: 11px; }
    .col-date div { font-size: 12px; }
    .room-name, .board-name { display: block; font-size: 12px; }
}