/* --- DGV2 Frontend Booking Form Styles --- */
.dgv2-frontend-wrapper {
    background: #fcfcfc;
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dgv2-search-box {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.dgv2-input-group {
    flex: 1;
}

.dgv2-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.9em;
}

.dgv2-input-group input[type="date"],
.dgv2-input-group input[type="time"],
.dgv2-input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.dgv2-btn-primary {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.dgv2-btn-primary:hover:not([disabled]) {
    background-color: #005a87;
}

.dgv2-btn-primary[disabled] {
    opacity: 0.7;
    cursor: default;
}

.dgv2-offer-card {
    border: 2px solid #0073aa;
    padding: 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e6f7ff;
}

.dgv2-offer-card h3 {
    margin: 0;
    font-size: 1.2em;
    color: #005a87;
}

.dgv2-offer-card .price-display {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin-right: 20px;
}

.dgv2-offer-card .price-display small {
    display: block;
    font-size: 0.5em;
    font-weight: normal;
    color: #666;
}

.dgv2-loading-message,
.dgv2-error-message {
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}

.dgv2-loading-message {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.dgv2-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* --- NEW SEARCH FLOW STYLES --- */

/* Search View */
#dgv2-search-view { text-align: center; padding: 40px 20px; }
.dgv2-hero-search { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.dgv2-hero-search input { padding: 15px; font-size: 16px; border: 1px solid #ddd; border-radius: 4px; }
.dgv2-btn-primary { background: #0073aa; color: #fff; border:none; padding: 15px; font-size:16px; font-weight:bold; cursor:pointer; border-radius:4px; }
.dgv2-btn-primary:hover { background: #005a87; }

/* Course Card (Results) */
.dgv2-course-card { display: flex; border: 1px solid #eee; margin-bottom: 20px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.dgv2-card-img { width: 150px; height: 120px; background: #f0f0f1; }
.dgv2-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dgv2-card-info { flex: 1; padding: 15px; }
.dgv2-card-info h3 { margin: 0 0 5px 0; font-size: 18px; }
.dgv2-card-info .location { color: #666; font-size: 14px; margin-bottom: 10px; display: block; }
.dgv2-card-action { padding: 15px; display: flex; align-items: center; justify-content: center; border-left: 1px solid #eee; background: #f9f9f9; }

.dgv2-price-tag { background: #dcfce7; color: #166534; padding: 4px 8px; border-radius: 4px; font-weight: bold; font-size: 12px; }
.dgv2-badge.closed { background: #fee2e2; color: #991b1b; padding: 4px 8px; border-radius: 4px; font-size: 12px; }

/* Tee Sheet Grid */
#dgv2-tee-sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 20px; }
.dgv2-time-slot { border: 1px solid #ddd; padding: 10px; text-align: center; border-radius: 4px; background: #fff; }
.ts-time { font-weight: bold; font-size: 16px; margin-bottom: 5px; }
.ts-price { font-size: 12px; color: #666; margin-bottom: 8px; }
.dgv2-book-slot-btn { background: #fff; border: 1px solid #0073aa; color: #0073aa; padding: 5px 10px; cursor: pointer; font-size: 12px; width: 100%; border-radius: 3px; }
.dgv2-book-slot-btn:hover { background: #0073aa; color: #fff; }

/* Modal Styles */
.dgv2-modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index:99999; display:none; align-items:center; justify-content:center; }
.dgv2-modal-box { background: #fff; width: 90%; max-width: 500px; padding: 25px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); position: relative; margin: 50px auto; }
.dgv2-modal-close-btn { position: absolute; top: 15px; right: 15px; cursor: pointer; font-size: 24px; color: #999; }

.dgv2-product-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding: 15px 0; }
.prod-info { display: flex; flex-direction: column; }
.prod-name { font-weight: bold; font-size: 15px; }
.prod-price { font-size: 18px; color: #0073aa; font-weight: bold; margin-top: 5px; }

.prod-actions { display: flex; align-items: flex-end; gap: 10px; }
.qty-wrapper label { font-size: 10px; text-transform: uppercase; color: #777; display: block; margin-bottom: 3px; }
.dgv2-qty-select { padding: 6px; border: 1px solid #ccc; border-radius: 4px; }
.dgv2-final-book-btn { background: #16a34a; color: #fff; border: none; padding: 8px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; height: 36px; }
.dgv2-final-book-btn:hover { background: #15803d; }