/* =========================================
   1. PRODUCT WIZARD CARD (Tour Page)
   ========================================= */
.otb-wizard-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    margin: 20px 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: visible !important; 
    position: relative;
    z-index: 10;
}

.otb-header-price { padding: 20px 20px 10px; }
.otb-header-price h3 { margin: 0; font-size: 1.5rem; color: #222; }
.otb-header-price span { font-size: 0.9rem; color: #666; }

/* Input Grid (Wizard) */
.otb-grid-inputs {
    display: grid; grid-template-columns: 1fr 1fr;
    border: 1px solid #ccc; border-radius: 8px;
    margin: 0 20px 15px; position: relative; background: #fff;
}
.otb-input-box { padding: 10px 15px; border-right: 1px solid #ccc; cursor: pointer; transition: background 0.2s; }
.otb-input-box:last-child { border-right: none; }
.otb-input-box:hover { background: #f9f9f9; }

.otb-label-small { display: block; font-size: 0.75rem; font-weight: 700; color: #222; margin-bottom: 5px; }
.otb-date-hidden { border: none; font-size: 0.95rem; width: 100%; background: transparent; cursor: pointer; outline: none; }

/* Guest Popover */
.otb-guest-popover {
    display: none; position: absolute; top: 100%; left: 0; width: 250px;
    background: white; border: 1px solid #ddd; border-radius: 8px;
    padding: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 99999; margin-top: 5px;
}
.otb-guest-popover.show { display: block; }

.otb-guest-row { display: flex; justify-content: space-between; margin-bottom: 12px; align-items: center; }
.otb-guest-ctrl { display: flex; align-items: center; gap: 8px; }
.otb-btn-circle {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ccc;
    background: white; cursor: pointer; color: #FF6600; font-weight: bold;
    font-size: 1.2rem; display: flex; justify-content: center; align-items: center;
}
.otb-btn-circle:hover { border-color: #FF6600; background: #FFF5EB; }

/* =========================================
   2. FLATPICKR CALENDAR (THE FIX)
   ========================================= */
.flatpickr-calendar { z-index: 99999 !important; border-radius: 12px !important; box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important; width: 320px !important; }

/* FORCE VERTICAL STACKING (Overriding Theme) */
body .flatpickr-day { 
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: center !important; 
    align-items: center !important;
    height: 55px !important;       
    line-height: 1.2 !important; 
    border: 1px solid transparent !important;
}

/* Date Number */
body .flatpickr-day { font-size: 15px !important; font-weight: 500 !important; color: #333 !important; }

/* Price Label */
body .otb-cal-price { 
    display: block !important; 
    font-size: 10px !important; 
    color: #888 !important; 
    margin-top: 2px !important; 
    font-weight: bold !important;
}

body .flatpickr-day.selected, body .flatpickr-day:hover {
    background: #FF6600 !important; border-color: #FF6600 !important; color: white !important;
}

body .flatpickr-day.selected .otb-cal-price, body .flatpickr-day:hover .otb-cal-price {
    color: #fff !important;
}

/* Extra Options */
.otb-extra-options { padding: 0 25px 15px; }
.otb-checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.9rem; color: #444; cursor: pointer; }
.otb-checkbox-row input { cursor: pointer; width: 16px; height: 16px; accent-color: #FF6600; }
.otb-checkbox-row label { cursor: pointer; }

/* =========================================
   3. UTILITIES
   ========================================= */
.otb-btn-main { background: #FF6600; color: white; width: 100%; height: 50px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.otb-btn-main:hover { background: #e55c00; }
.otb-action-area { padding: 0 20px 20px; }

.otb-slots-area { padding: 0 20px 20px; display: none; background: #fff; border-top: 1px solid #f0f0f0; }
.otb-slots-area.open { display: block; animation: slideDown 0.3s; }
.otb-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.otb-slot-pill { padding: 8px; border: 1px solid #ccc; border-radius: 6px; text-align: center; cursor: pointer; }
.otb-slot-pill:hover, .otb-slot-pill.selected { border-color: #FF6600; background: #FF6600; color: white; }

.single_add_to_cart_button, .quantity, form.cart { display: none !important; }
.elementor-widget-shortcode, .elementor-shortcode { overflow: visible !important; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================
   NEW: POPULAR TOURS GRID (Homepage)
   ========================================= */

/* Header */
.otb-section-header { text-align: center; margin-bottom: 40px; }
.otb-section-header h2 { font-family: "Georgia", serif; font-size: 2.5rem; color: #111; margin-bottom: 10px; }
.otb-section-header p { color: #666; font-size: 1rem; }

/* Grid Layout */
.otb-tour-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 1024px) { .otb-tour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .otb-tour-grid { grid-template-columns: 1fr; } }

/* Card Style */
.otb-tour-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.otb-tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Image Area */
.otb-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.otb-wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 16px; color: #888;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Content Area */
.otb-card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }

.otb-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #222;
    line-height: 1.4;
}

.otb-card-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    display: flex; gap: 15px;
}

.otb-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Footer (Rating & Price) */
.otb-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.otb-rating {
    color: #FF6600;
    font-weight: bold;
    font-size: 0.9rem;
}

.otb-price {
    font-size: 0.95rem;
    color: #333;
}

.otb-price strong {
    font-size: 1.2rem;
    color: #222;
}