﻿/* Daser BOOKING ENGINE - PUBLIC STYLES */
/* DBE Public CSS */
/* Glassmorphism Variables */
:root {
    --dbe-glass-bg: rgba(255, 255, 255, 0.2);
    --dbe-glass-border: rgba(255, 255, 255, 0.3);
    --dbe-glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --dbe-blur: 10px;
    --dbe-primary: #800000;
    /* Fallback */
    --dbe-gold: #c5a47e;
    /* Fallback */
    --dbe-text: #333;
    --dbe-radius: 12px;
}

/* Base Widget Container */
.dbe-widget-vertical,
.dbe-widget-horizontal {
    background: var(--dbe-glass-bg);
    backdrop-filter: blur(var(--dbe-blur));
    -webkit-backdrop-filter: blur(var(--dbe-blur));
    border: 1px solid var(--dbe-glass-border);
    box-shadow: var(--dbe-glass-shadow);
    border-radius: var(--dbe-radius);
    font-family: 'Outfit', sans-serif;
    position: relative;
    z-index: 10;
}

/* Vertical Widget Specifics */
.dbe-widget-vertical {
    padding: 25px;
    max-width: 350px;
    width: 100%;
}

.dbe-widget-title {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: var(--dbe-primary);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--dbe-gold);
    display: inline-block;
    padding-bottom: 5px;
}

/* Horizontal Widget Specifics */
.dbe-widget-horizontal {
    padding: 15px 25px;
    display: inline-block;
    width: auto;
    min-width: 800px;
}

.dbe-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.dbe-bar-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
}

.dbe-icon {
    font-size: 1.2rem;
    color: var(--dbe-primary);
    margin-right: 10px;
}

/* Inputs */
.dbe-input-transparent {
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--dbe-text);
    width: 100%;
}

.dbe-input-transparent::placeholder {
    color: #555;
    opacity: 0.8;
}

/* Guest Selector Trigger */
.dbe-guests-trigger {
    cursor: pointer;
    font-size: 1rem;
    color: var(--dbe-text);
    width: 100%;
    user-select: none;
}

/* Dropdown */
.dbe-guest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-top: 10px;
}

.dbe-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dbe-guest-row:last-child {
    margin-bottom: 0;
}

.dbe-label span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.dbe-sublabel {
    font-size: 0.75rem;
    color: #888;
}

.dbe-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dbe-btn-count {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dbe-primary);
    transition: all 0.2s;
}

.dbe-btn-count:hover {
    background: var(--dbe-primary);
    color: #fff;
    border-color: var(--dbe-primary);
}

.dbe-guest-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dbe-guest-val {
    font-weight: 600;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.dbe-ctrl-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #ddd;
    background: #f8f8f8;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--dbe-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dbe-ctrl-btn:hover {
    border-color: var(--dbe-primary);
    background: var(--dbe-primary);
    color: #fff;
}

.dbe-ctrl-btn-sm {
    padding: 4px 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #555;
    transition: all 0.2s;
}

.dbe-ctrl-btn-sm:hover {
    background: #f0f0f0;
    color: #000;
    border-color: #ccc;
}


/* Buttons */
.dbe-btn-search,
.dbe-btn-search-slim {
    background: var(--dbe-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.dbe-btn-search {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    font-size: 1rem;
}

.dbe-btn-search-slim {
    padding: 10px 25px;
    font-size: 1rem;
    white-space: nowrap;
}

.dbe-btn-search:hover,
.dbe-btn-search-slim:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Field Group (Vertical) */
.dbe-field-group {
    margin-bottom: 15px;
}

.dbe-field-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
}

.dbe-date-range,
.dbe-guests-selector {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    outline: none;
    cursor: pointer;
}

.dbe-guests-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dbe-btn-small-confirm {
    background: var(--dbe-gold);
    color: white;
    border: none;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive - Mobile Stack */
@media (max-width: 768px) {
    .dbe-widget-horizontal {
        min-width: 100%;
        width: 100%;
        display: block;
    }

    .dbe-search-bar {
        flex-direction: column;
    }

    .dbe-bar-item {
        width: 100%;
    }

    .dbe-bar-btn {
        width: 100%;
    }

    .dbe-btn-search-slim {
        width: 100%;
    }
}

/* --- RESULTS & CHECKOUT --- */

#dbe-results-container {
    margin-top: 30px;
}

.dbe-no-results {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dbe-room-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border: 1px solid #eee;
}

.dbe-room-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dbe-room-image {
    width: 35%;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 220px;
}

/* Placeholders */
.dbe-room-img-0 {
    background-image: url('https://images.unsplash.com/photo-1611892440504-42a792e24d32?auto=format&fit=crop&w=800&q=80');
}

.dbe-room-img-1 {
    background-image: url('https://images.unsplash.com/photo-1582719508461-905c673771fd?auto=format&fit=crop&w=800&q=80');
}

.dbe-room-img-2 {
    background-image: url('https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=800&q=80');
}

.dbe-room-img-3 {
    background-image: url('https://images.unsplash.com/photo-1566665797739-1674de7a421a?auto=format&fit=crop&w=800&q=80');
}

.dbe-room-badges {
    position: absolute;
    top: 15px;
    left: 15px;
}

.dbe-badge-popular {
    background: var(--dbe-gold);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dbe-room-details {
    flex: 1;
    display: flex;
    padding: 20px;
}

.dbe-room-info {
    flex: 1;
    padding-right: 20px;
}

.dbe-room-info h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: var(--dbe-primary);
}

.dbe-room-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.dbe-room-features span i {
    color: var(--dbe-gold);
    margin-right: 5px;
}

.dbe-room-desc-short {
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

.dbe-room-pricing {
    width: 200px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.dbe-price-group {
    margin-bottom: 15px;
}

.dbe-price-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

.dbe-price-amount {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.dbe-price-amount small {
    font-size: 1rem;
    font-weight: 400;
}

.dbe-deposit-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 4px;
    text-align: center;
}

.dbe-btn-book {
    background: var(--dbe-primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s;
}

.dbe-btn-book:hover {
    background: #600000;
}

/* Checkout */
.dbe-checkout-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 30px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.dbe-summary-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.dbe-form-group {
    margin-bottom: 20px;
}

.dbe-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.dbe-form-group input,
.dbe-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.dbe-btn-primary {
    background: var(--dbe-primary);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.dbe-btn-lg {
    width: 100%;
}

.dbe-btn-back {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 0;
    font-size: 0.9rem;
}

.dbe-btn-back:hover {
    color: var(--dbe-primary);
    text-decoration: underline;
}

/* Mobile Results */
@media (max-width: 768px) {
    .dbe-room-card {
        flex-direction: column;
    }

    .dbe-room-image {
        width: 100%;
        height: 200px;
    }

    .dbe-room-details {
        flex-direction: column;
    }

    .dbe-room-info {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .dbe-room-pricing {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 20px;
        text-align: center;
    }
}

/* Child Age Styling */
.dbe-child-ages-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px dashed #eee;
}

.dbe-age-wrapper {
    display: flex;
    flex-direction: column;
}

.dbe-age-wrapper label {
    font-size: 0.7em;
    color: #666;
    margin-bottom: 2px;
}

.dbe-age-select {
    width: 100%;
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85em;
    background: #fff;
}

/* Capacity Icons */
.dbe-capacity-visual {
    display: inline-flex;
    align-items: center;
    color: #666;
}

.dbe-person-icon {
    font-size: 1.1em;
    margin-right: 1px;
}

.dbe-child-icon {
    font-size: 0.9em;
    opacity: 0.7;
    margin-right: 1px;
}