/* stay22-hotels.css — Wiederverwendbares Live-Hotel-Such-Widget (Stay22 Direct Travel API)
   Selbst-enthaltend: eigene CSS-Variablen auf .live-hero-band (vererben an alle .lhc-*),
   überschreibbar pro Seite. Klassen-Präfixe: .live-* / .lhc-* (kollidieren mit nichts).
   Gehört zu /js/stay22-hotels.js + stay22-hotels-proxy.php. */

.live-hero-band {
    /* Theme-Variablen (pro Seite überschreibbar) */
    --lhc-primary: #0056b3;
    --lhc-accent: #ffc107;
    --lhc-accent-hover: #ffcd39;
    --lhc-bg: #f8f9fa;
    --lhc-border: #dee2e6;
    --lhc-text: #212529;
    --lhc-muted: #6c757d;

    background: var(--lhc-bg);
    border-bottom: 1px solid var(--lhc-border);
    padding: 1.75rem 0 2rem;
}

.live-hero-band h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--lhc-text);
}

@media (min-width: 768px) {
    .live-hero-band h2 { font-size: 1.9rem; }
}

/* Steuerung (Datum / Aufenthalt / Reisende / Filter) */
.live-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    background: #fff;
    border: 1px solid var(--lhc-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.live-controls label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lhc-muted);
}

.live-controls input,
.live-controls select {
    border: 1px solid var(--lhc-border);
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--lhc-text);
    min-width: 140px;
    background: #fff;
}

/* Karten-Raster */
.live-hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.live-hotel-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--lhc-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.live-hotel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: var(--lhc-primary);
}

.lhc-thumb {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
}

.lhc-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.9rem 1rem 1rem;
    flex: 1;
}

.lhc-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--lhc-text);
}

.lhc-stars {
    color: #ffb400;
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.lhc-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--lhc-muted);
}

.lhc-sub i { color: #9098a0; }

.lhc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--lhc-muted);
}

.lhc-rating-badge {
    background: var(--lhc-primary);
    color: #fff;
    border-radius: 6px;
    padding: 0.1rem 0.45rem;
    font-weight: 700;
    font-size: 0.78rem;
}

.lhc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lhc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 5px;
    padding: 0.14rem 0.45rem;
}

.lhc-badge.cancel { background: #e8f5e9; color: #2e7d32; }
.lhc-badge.instant { background: #e3f2fd; color: #1565c0; }
.lhc-badge.best { background: #fff3cd; color: #8a6d00; }

.lhc-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.lhc-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lhc-primary);
    line-height: 1.1;
}

.lhc-price small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--lhc-muted);
}

.lhc-btn {
    background: var(--lhc-accent);
    color: #212529;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid var(--lhc-accent);
    transition: all 0.2s ease;
}

.lhc-btn:hover,
.lhc-btn:focus {
    background: var(--lhc-accent-hover);
    color: #212529;
    transform: translateY(-1px);
}

.lhc-provider {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.1rem;
    font-size: 0.72rem;
    color: #9098a0;
}

.lhc-provider img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: contain;
}

.lhc-skeleton {
    height: 232px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: lhc-shimmer 1.4s ease infinite;
}

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

.lhc-more-wrap {
    text-align: center;
    margin-top: 1.25rem;
}

.lhc-more-btn {
    background: #fff;
    color: var(--lhc-primary);
    border: 2px solid var(--lhc-primary);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lhc-more-btn:hover,
.lhc-more-btn:focus {
    background: var(--lhc-primary);
    color: #fff;
}

@media (max-width: 575px) {
    .live-controls label { flex: 1; }
    .live-controls input,
    .live-controls select { min-width: 0; width: 100%; }
}
