/*
Theme Name:     Traveler Childtheme
Description:    Traveler Child Theme
Theme URI:      https://travelerwp.com/
Author:         the ShineTheme
Author URI:     http://shinetheme.com
Version:        1.5
Template:       traveler
*/

/* ===== Hide prices (toggled by HV_HIDE_PRICES in functions.php) ===== */
body.hv-hide-prices .price-wrapper,
body.hv-hide-prices #mobile-price,
body.hv-hide-prices .st-price-origin,
body.hv-hide-prices .form-book-wrapper > .form-head:not(.hv-enquiry-head),
body.hv-hide-prices .hotel-target-book-mobile .price-wrapper,
body.hv-hide-prices .st-hotel-content .price-wrapper,
body.hv-hide-prices .room-item .price,
body.hv-hide-prices .room-item .unit,
body.hv-hide-prices .st-single-service .price-wrapper {
    display: none !important;
}

/* ===== CF7 quote form (sidebar + inline) ===== */
.hv-enquiry-wrapper { background: #fff; }
.hv-enquiry-wrapper .hv-enquiry-head { font-size: 18px; font-weight: 600; padding: 18px 20px; }
.hv-enquiry-wrapper .hv-enquiry-body { padding: 16px 20px 20px; }
.hv-enquiry-inline { max-width: 640px; border: 1px solid #e5e7eb; }
.hv-enquiry-body .wpcf7 p { margin: 0 0 10px; }
.hv-enquiry-body .wpcf7 label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 3px; font-weight: 500; }
.hv-enquiry-body .wpcf7 input:not([type=submit]),
.hv-enquiry-body .wpcf7 select,
.hv-enquiry-body .wpcf7 textarea { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; background: #fff; box-sizing: border-box; }
.hv-enquiry-body .wpcf7 textarea { min-height: 84px; resize: vertical; }
.hv-enquiry-body .hv-row { display: flex; gap: 10px; }
.hv-enquiry-body .hv-row > p { flex: 1; min-width: 0; }
.hv-enquiry-body .wpcf7 input[type=submit] { width: 100%; margin-top: 4px; padding: 12px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; font-weight: 600; text-transform: uppercase; cursor: pointer; }
.hv-enquiry-body .wpcf7 input[type=submit]:hover { background: #1d4ed8; }
.hv-enquiry-body .wpcf7-spinner { display: block; margin: 8px auto 0; }
.hv-enquiry-body .wpcf7-not-valid-tip { font-size: 12px; }
.hv-enquiry-body .wpcf7-response-output { margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.hv-enquiry-body .wpcf7 form.sent .wpcf7-response-output { border-color: #10b981; background: #d1fae5; color: #065f46; }
.hv-enquiry-body .wpcf7 form.invalid .wpcf7-response-output,
.hv-enquiry-body .wpcf7 form.failed .wpcf7-response-output { border-color: #ef4444; background: #fee2e2; color: #991b1b; }
.hv-enquiry-note { font-size: 12px; color: #6b7280; margin: 10px 0 0; }

/* ===== Mobile: hide theme price bar, own CTA + full-screen panel ===== */
.hotel-target-book-mobile { display: none !important; }
.hv-mobile-cta { display: none; }
@media (max-width: 991.98px) {
    .hv-mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9998; padding: 14px; border-radius: 8px; background: #2563eb; color: #fff !important; font-weight: 600; text-align: center; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
    .fixed-on-mobile.hv-open { display: block !important; position: fixed !important; top: 0 !important; left: 0; right: 0; bottom: 0; width: auto !important; height: auto !important; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; z-index: 99999; padding: 56px 16px 32px; opacity: 1 !important; visibility: visible !important; transform: none !important; }
    .fixed-on-mobile.hv-open .close-icon { display: none !important; }
    .hv-panel-close { display: none; }
    .fixed-on-mobile.hv-open .hv-panel-close { display: block; position: fixed; top: 10px; right: 12px; z-index: 100000; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #111827; color: #fff; font-size: 24px; line-height: 40px; text-align: center; }
    body.hv-lock { overflow: hidden !important; }
    body.hv-lock .hv-mobile-cta { display: none; }
}
