/**
 * Vermietung Frontend CSS — css/vermietung-frontend.css
 *
 * Styles für die Frontend-Shortcodes [simpbook_unterkuenfte] und [simpbook_unterkunft].
 *
 * @package PocketBookingPro
 */

/* ===== Grid-Layout ===== */
.simpbook-unterkuenfte-grid {
    display: grid;
    grid-template-columns: repeat(var(--simpbook-spalten, 3), 1fr);
    gap: 24px;
    margin: 20px 0;
}

/* ===== Unterkunft-Karte ===== */
.simpbook-unterkunft-card {
    background: var(--simpbook-tile-bg, #fff);
    border-radius: var(--simpbook-tile-border-radius, 12px);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
    color: var(--simpbook-tile-text-color, #333);
}
.simpbook-unterkunft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.simpbook-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.simpbook-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.simpbook-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 48px;
}

.simpbook-card-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.simpbook-card-tag {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.simpbook-card-body {
    padding: 16px;
}
.simpbook-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--simpbook-tile-text-color, #1d2327);
}
.simpbook-card-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 10px 0;
}
.simpbook-card-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}
.simpbook-card-location:before {
    content: '📍';
    margin-right: 4px;
}

.simpbook-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}
.simpbook-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.simpbook-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f1;
}
.simpbook-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--simpbook-tile-text-color, #1d2327);
}
.simpbook-card-price small {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}
.simpbook-card-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-right: 6px;
}

.simpbook-card-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--simpbook-primary, #2271b1);
    color: var(--simpbook-button-text-color, #fff);
    text-decoration: none;
    border-radius: var(--simpbook-button-border-radius, 6px);
    font-size: 13px;
    font-weight: 600;
    transition: background .2s;
}
.simpbook-card-link:hover {
    background: var(--simpbook-primary-hover, #135e96);
    color: #fff;
}

/* ===== Detail-Seite ===== */
.simpbook-unterkunft-detail {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
}
.simpbook-detail-header {
    margin-bottom: 24px;
}
.simpbook-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
}
.simpbook-detail-subtitle {
    font-size: 16px;
    color: #666;
}

.simpbook-detail-galerie {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}
.simpbook-detail-galerie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.simpbook-detail-galerie img:first-child {
    grid-row: span 2;
}

.simpbook-detail-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.simpbook-detail-beschreibung h3,
.simpbook-detail-ausstattung h3 {
    font-size: 18px;
    margin-bottom: 12px;
}
.simpbook-detail-ausstattung ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.simpbook-detail-ausstattung li:before {
    content: '✓';
    color: #00a32a;
    margin-right: 8px;
    font-weight: 700;
}

/* ===== Buchungs-Sidebar ===== */
.simpbook-buchung-sidebar {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 80px;
}
.simpbook-buchung-sidebar h3 {
    margin-top: 0;
}
.simpbook-buchung-sidebar .simpbook-preis-gross {
    font-size: 24px;
    font-weight: 700;
}
.simpbook-buchung-sidebar .simpbook-preis-gross small {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.simpbook-buchung-sidebar label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 12px;
}
.simpbook-buchung-sidebar input,
.simpbook-buchung-sidebar select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.simpbook-buchung-sidebar .simpbook-btn-buchen {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: var(--simpbook-primary, #2271b1);
    color: var(--simpbook-button-text-color, #fff);
    border: none;
    border-radius: var(--simpbook-button-border-radius, 8px);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.simpbook-buchung-sidebar .simpbook-btn-buchen:hover {
    background: var(--simpbook-primary-hover, #135e96);
}

/* ===== Verfügbarkeitskalender ===== */
.simpbook-kalender {
    margin-top: 16px;
}
.simpbook-kalender-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
}
.simpbook-kalender-nav {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 16px;
}
.simpbook-kalender-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.simpbook-kalender-day-header {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    padding: 4px;
}
.simpbook-kalender-day {
    padding: 8px 4px;
    font-size: 13px;
    border-radius: 4px;
    cursor: default;
}
.simpbook-kalender-day.verfuegbar {
    background: #d4edda;
    color: #155724;
    cursor: pointer;
}
.simpbook-kalender-day.belegt {
    background: #f8d7da;
    color: #721c24;
}
.simpbook-kalender-day.anfrage {
    background: #fff3cd;
    color: #856404;
}
.simpbook-kalender-day.blockiert,
.simpbook-kalender-day.nicht_buchbar {
    background: #e2e3e5;
    color: #6c757d;
}
.simpbook-kalender-day.selected {
    background: var(--simpbook-primary, #2271b1);
    color: #fff;
}
.simpbook-kalender-day.in-range {
    background: rgba(34, 113, 177, 0.15);
}
.simpbook-kalender-day.empty {
    background: none;
}

/* ===== Preisaufstellung ===== */
.simpbook-preis-aufstellung {
    margin-top: 16px;
    font-size: 14px;
}
.simpbook-preis-aufstellung .simpbook-preis-zeile {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}
.simpbook-preis-aufstellung .simpbook-preis-total {
    font-weight: 700;
    padding-top: 8px;
    border-top: 2px solid #ddd;
    margin-top: 4px;
}

/* ===== Filter-Bar ===== */
.simpbook-filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.simpbook-filter-bar select,
.simpbook-filter-bar input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .simpbook-unterkuenfte-grid {
        grid-template-columns: 1fr !important;
    }
    .simpbook-detail-galerie {
        grid-template-columns: 1fr;
    }
    .simpbook-detail-galerie img:first-child {
        grid-row: span 1;
    }
    .simpbook-detail-info-grid {
        grid-template-columns: 1fr;
    }
    .simpbook-buchung-sidebar {
        position: static;
    }
}
@media (max-width: 480px) {
    .simpbook-detail-ausstattung ul {
        grid-template-columns: 1fr;
    }
}
