/** * Yatra Single Trip Page Styles * Industry-standard design based on leading travel booking platforms * Uses common.css variables for design consistency */ /* ============================================ RESET & BASE Uses consistent container widths from common.css ============================================ */ .yatra-single-trip { font-family: var(--yatra-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif); line-height: 1.6; color: var(--yatra-text-primary, #1a1a1a); width: 100%; min-height: 100vh; } /* Inner container with max-width */ .yatra-single-trip > .yatra-trip-hero-new, .yatra-single-trip > .yatra-trip-tags, .yatra-single-trip > .yatra-trip-quick-facts-section, .yatra-single-trip > .yatra-trip-container { width: 100%; max-width: var(--yatra-container-max-width, 1300px); margin-left: auto; margin-right: auto; } .yatra-single-trip > * { max-width: 100%; } .yatra-single-trip * { box-sizing: border-box; } .yatra-single-trip img { max-width: 100%; height: auto; } /* ============================================ UNIFIED SPACING SYSTEM Consistent spacing across all sections ============================================ */ /* Spacing Variables - Consistent Design System */ :root { --yatra-section-padding: 60px; --yatra-section-gap: 48px; --yatra-container-padding: 20px; --yatra-element-gap: 24px; --yatra-small-gap: 16px; --yatra-tiny-gap: 12px; --yatra-mini-gap: 8px; --yatra-micro-gap: 6px; } /* Mobile Responsive Spacing */ @media (max-width: 768px) { :root { --yatra-section-padding: 40px; --yatra-section-gap: 32px; --yatra-container-padding: 16px; --yatra-element-gap: 20px; --yatra-small-gap: 12px; --yatra-tiny-gap: 8px; --yatra-mini-gap: 6px; --yatra-micro-gap: 4px; } } @media (max-width: 480px) { :root { --yatra-section-padding: 32px; --yatra-section-gap: 24px; --yatra-container-padding: 12px; --yatra-element-gap: 16px; --yatra-small-gap: 12px; --yatra-tiny-gap: 8px; --yatra-mini-gap: 6px; --yatra-micro-gap: 4px; --yatra-hero-mobile-padding-top: 12px; --yatra-hero-mobile-padding-bottom: 16px; } } @media (min-width: 481px) and (max-width: 768px) { :root { --yatra-hero-mobile-padding-top: 16px; --yatra-hero-mobile-padding-bottom: 20px; } } /* Update main container padding */ .yatra-single-trip { padding: 0; } /* Unified Container System */ .yatra-single-trip > .yatra-trip-hero-new, .yatra-single-trip > .yatra-trip-tags, .yatra-single-trip > .yatra-trip-quick-facts-section, .yatra-single-trip > .yatra-trip-attributes, .yatra-single-trip > .yatra-trip-container, .yatra-single-trip > .yatra-group-discounts-section, .yatra-single-trip > .yatra-similar-section { width: 100%; max-width: var(--yatra-container-max-width, 1300px); margin-left: auto; margin-right: auto; padding-left: var(--yatra-container-padding); padding-right: var(--yatra-container-padding); } /* Reviews: descendant selector so width matches .yatra-trip-container even if wrapped; align-self fixes flex parents with align-items:center */ .yatra-single-trip .yatra-reviews-section { width: 100%; max-width: var(--yatra-container-max-width, 1300px); margin-left: auto; margin-right: auto; padding-left: var(--yatra-container-padding); padding-right: var(--yatra-container-padding); box-sizing: border-box; align-self: stretch; min-width: 0; } /* Unified Section Spacing One rhythm between stacked blocks: previous section’s bottom spacing only. --yatra-section-padding: top of the first block (hero) below the page chrome only. Do not stack padding-top: section-padding on a section that already follows margin/padding-bottom: section-gap. */ .yatra-trip-hero-new { padding-top: var(--yatra-section-padding); padding-bottom: var(--yatra-section-gap); } .yatra-trip-tags { padding-top: 0; padding-bottom: var(--yatra-section-gap); } .yatra-trip-quick-facts-section, .yatra-trip-attributes { padding-top: 0; padding-bottom: var(--yatra-section-gap); background: transparent; } .yatra-trip-container { padding-top: 0; padding-bottom: var(--yatra-section-gap); } /* When reviews follows the main grid directly, avoid double gap (trip bottom + reviews top) */ .yatra-trip-container:has(+ .yatra-reviews-section) { padding-bottom: 0; } /* Full-width sections (match template class names) — see also SIMILAR TRIPS / REVIEWS blocks */ .yatra-group-discounts-section { padding-top: 0; padding-bottom: var(--yatra-section-gap); } /* ============================================ COMMON BUTTON STYLES ============================================ */ .yatra-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; background: var(--yatra-primary, #3b82f6); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.3s ease; } .yatra-btn svg { flex-shrink: 0; } .yatra-btn:hover { background: var(--yatra-primary-dark, #2563eb); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } /* ============================================ SVG ICONS ============================================ */ .yatra-icon { width: 24px; height: 24px; display: inline-block; flex-shrink: 0; } .yatra-icon-sm { width: 20px; height: 20px; } .yatra-icon-lg { width: 32px; height: 32px; } /* Font Awesome webfont icons use font-size (not SVG width/height) */ .yatra-icon.fa-solid, .yatra-icon.fa-regular, .yatra-icon-sm.fa-solid, .yatra-icon-sm.fa-regular, .yatra-icon-lg.fa-solid, .yatra-icon-lg.fa-regular, .yatra-icon-xl.fa-solid, .yatra-icon-xl.fa-regular { display: inline-flex; align-items: center; justify-content: center; font-style: normal; line-height: 1; color: inherit; } .yatra-icon-sm.fa-solid, .yatra-icon-sm.fa-regular { font-size: 18px; } .yatra-icon.fa-solid, .yatra-icon.fa-regular { font-size: 22px; } .yatra-icon-lg.fa-solid, .yatra-icon-lg.fa-regular { font-size: 28px; } .yatra-icon-xl.fa-solid, .yatra-icon-xl.fa-regular { font-size: 40px; } .yatra-icon-xl { width: 48px; height: 48px; } .yatra-booking-button svg, .yatra-booking-enquiry-button svg, .yatra-card-book-btn svg { display: inline-block !important; visibility: visible !important; opacity: 1 !important; color: inherit !important; stroke: currentColor !important; fill: none !important; } #check-availability-btn svg, button.yatra-booking-button svg, button.yatra-booking-enquiry-button svg, button.yatra-card-book-btn svg, a.yatra-card-book-btn svg { display: inline-block !important; visibility: visible !important; opacity: 1 !important; width: 18px !important; height: 18px !important; flex-shrink: 0 !important; } #check-availability-btn svg, button.yatra-card-book-btn svg, button.yatra-booking-button svg { color: #fff !important; stroke: #fff !important; fill: none !important; stroke-width: 2 !important; } .yatra-booking-button svg path, .yatra-booking-enquiry-button svg path, .yatra-card-book-btn svg path { stroke: currentColor !important; } #check-availability-btn svg path, button.yatra-card-book-btn svg path, button.yatra-booking-button svg path, button.yatra-booking-enquiry-button svg path { stroke: currentColor !important; } #check-availability-btn svg path, button.yatra-card-book-btn svg path, button.yatra-booking-button svg path { stroke: #fff !important; } /* ============================================ STICKY NAVIGATION BAR ============================================ */ .yatra-sticky-nav { background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,0.05); position: fixed; top: 0; left: 0; right: 0; z-index: 100; transform: translateY(-100%); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; pointer-events: none; } /* Account for WordPress admin bar */ .admin-bar .yatra-sticky-nav { top: 32px; } @media screen and (max-width: 782px) { .admin-bar .yatra-sticky-nav { top: 46px; } } .yatra-sticky-nav.visible { transform: translateY(0); opacity: 1; pointer-events: auto; } /* * Hide the desktop sticky tab strip on mobile. On phones, the mobile sticky * sidebar (yatra-mobile-sticky-sidebar) handles the "back to booking" affordance, * and the horizontally-scrolling top nav competes with the theme header + the WP * admin bar for limited vertical space. Same 768px breakpoint other trip mobile * rules use elsewhere in this file. */ @media (max-width: 768px) { .yatra-sticky-nav, .yatra-sticky-nav-container { display: none !important; } } .yatra-sticky-nav-container { max-width: var(--yatra-container-max-width, 1300px); margin: 0 auto; padding: 0 var(--yatra-container-padding); display: flex; align-items: center; gap: var(--yatra-element-gap); overflow-x: auto; -webkit-overflow-scrolling: touch; } .yatra-sticky-nav-item { display: flex; align-items: center; gap: var(--yatra-mini-gap); padding: 16px 0; color: #6b7280; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; transition: all 0.3s ease; cursor: pointer; } .yatra-sticky-nav-item:hover, .yatra-sticky-nav-item.active { color: var(--yatra-primary, #3b82f6); border-bottom-color: var(--yatra-primary, #3b82f6); } .yatra-sticky-nav-item svg { width: 18px; height: 18px; } .yatra-sticky-nav-price { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 16px 0; color: var(--yatra-primary, #3b82f6); font-size: 18px; font-weight: 700; white-space: nowrap; } .yatra-sticky-nav-price svg { width: 20px; height: 20px; } .yatra-sticky-nav-cta { margin-left: auto; display: flex; align-items: center; } .yatra-sticky-nav-cta .yatra-btn { padding: 8px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; } .yatra-sticky-nav-cta .yatra-btn-primary { background: var(--yatra-primary, #3b82f6); color: white; border-color: var(--yatra-primary, #3b82f6); } .yatra-sticky-nav-cta .yatra-btn-primary:hover { background: var(--yatra-primary-dark, #2563eb); border-color: var(--yatra-primary-dark, #2563eb); color: white; } /* ============================================ NEW HERO SECTION ============================================ */ .yatra-trip-hero-new { max-width: 100%; margin: 0 auto; padding-top: var(--yatra-section-padding); padding-bottom: var(--yatra-section-gap); } .yatra-hero-header { margin-bottom: 24px; text-align: left; } .yatra-hero-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; gap: 8px; margin-bottom: 12px; font-size: 13px; color: #6b7280; justify-content: flex-start; } .yatra-hero-breadcrumb a { color: var(--yatra-primary, #3b82f6); text-decoration: none; transition: color 0.2s ease; } .yatra-hero-breadcrumb a:hover { color: var(--yatra-primary-dark, #2563eb); text-decoration: underline; } .yatra-hero-breadcrumb-separator { color: #9ca3af; margin: 0 4px; } .yatra-hero-breadcrumb-current { color: #374151; font-weight: 500; min-width: 0; overflow-wrap: anywhere; word-break: break-word; } .yatra-hero-meta { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; text-align: left; } .yatra-trip-hero-title-new { font-size: 2.5rem; font-weight: 700; color: #111827; margin: 0 0 16px 0; line-height: 1.2; letter-spacing: -0.01em; text-align: left; } .yatra-hero-rating { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 12px; text-align: left; } .yatra-hero-location { display: flex; align-items: center; gap: 6px; color: #6b7280; font-size: 15px; font-weight: 500; } .yatra-hero-duration { display: flex; align-items: center; gap: 6px; color: #6b7280; font-size: 15px; font-weight: 500; } .yatra-rating-stars { display: flex; gap: 2px; font-size: 20px; line-height: 1; } /* Do not set gold on the container — it made every star look filled. Empty = gray, .filled = gold. */ .yatra-rating-stars > .yatra-star, .yatra-rating-stars .yatra-star { display: inline-block; font-size: 20px; color: #d1d5db; } .yatra-rating-stars .yatra-star.filled { color: var(--yatra-star, #fbbf24); } .yatra-no-rating .yatra-star { color: #d1d5db; } .yatra-no-reviews { color: #9ca3af; font-style: italic; } .yatra-rating-stars .yatra-star.half { background: linear-gradient( 90deg, var(--yatra-star, #fbbf24) 50%, #d1d5db 50% ); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; } .yatra-rating-number { font-size: 18px; font-weight: 700; color: #111827; } .yatra-rating-text { font-size: 14px; color: #6b7280; } .yatra-hero-images { display: grid; grid-template-columns: 3fr 1fr; gap: 16px; margin-bottom: 24px; align-items: start; width: 100%; } .yatra-hero-main-image { position: relative; border-radius: 16px; overflow: hidden; background: #f3f4f6; width: 100%; height: 500px; } .yatra-hero-main-img-link { display: block; position: relative; height: 100%; width: 100%; } /* Hero Media Badges */ .yatra-hero-media-badges { position: absolute; top: 15px; left: 15px; display: flex; gap: 8px; z-index: 10; } .yatra-media-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(17, 24, 39, 0.55); color: rgba(255, 255, 255, 0.95); padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0.2px; border: none; box-shadow: none; backdrop-filter: none; transition: none; cursor: default; user-select: none; pointer-events: none; } .yatra-media-badge:hover { background: rgba(17, 24, 39, 0.55); } .yatra-media-badge-icon { width: 14px !important; height: 14px !important; flex-shrink: 0; } .yatra-media-badge-icon svg { width: 100% !important; height: 100% !important; display: block !important; } .yatra-media-badge-count { font-weight: 600; } /* Media Type Specific Colors */ .yatra-media-badge-image { background: rgba(59, 130, 246, 0.8); } .yatra-media-badge-video { background: rgba(239, 68, 68, 0.8); } .yatra-media-badge-youtube { background: rgba(255, 0, 0, 0.8); } .yatra-media-badge-tour { background: rgba(16, 185, 129, 0.8); } .yatra-media-badge-document { background: rgba(245, 158, 11, 0.8); } /* Hero Media Switcher */ .yatra-hero-media-switcher { position: absolute; bottom: 15px; left: 15px; display: flex; gap: 8px; z-index: 10; } .yatra-media-switcher-btn { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(0, 0, 0, 0.2); color: #374151; padding: 8px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(4px); } .yatra-media-switcher-btn:hover { background: rgba(255, 255, 255, 0.95); transform: translateY(-1px); } .yatra-media-switcher-btn.yatra-media-switcher-active { background: var(--yatra-primary, #3b82f6); color: white; border-color: var(--yatra-primary, #3b82f6); } .yatra-media-switcher-icon { width: 16px !important; height: 16px !important; flex-shrink: 0; } .yatra-media-switcher-icon svg { width: 100% !important; height: 100% !important; display: block !important; } /* Hero Image Dark Overlay */ .yatra-hero-main-img-link::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.15); z-index: 1; pointer-events: none; transition: background 0.3s ease; } .yatra-hero-main-img-link:hover::before { background: rgba(0, 0, 0, 0.25); } /* Media Overlays */ .yatra-media-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; } .yatra-play-button { cursor: pointer; transition: transform 0.3s ease; } .yatra-play-button:hover { transform: scale(1.1); } .yatra-document-overlay { background: rgba(0, 0, 0, 0.5); } .yatra-document-info { display: flex; align-items: center; gap: 16px; padding: 20px; color: white; text-align: left; } .yatra-document-icon { flex-shrink: 0; } .yatra-document-details { flex: 1; } .yatra-document-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; line-height: 1.2; } .yatra-document-size { font-size: 14px; opacity: 0.8; } /* Play Button Overlay Styles */ .yatra-media-play-overlay { pointer-events: auto; cursor: pointer; } /* YouTube Overlay Styles */ .yatra-media-youtube-overlay { background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; pointer-events: auto; cursor: pointer; } .yatra-youtube-play-button { cursor: pointer; transition: all 0.3s ease; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)); } .yatra-youtube-play-button:hover { transform: scale(1.15); filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)); } .yatra-youtube-play-button svg { display: block; } /* 360° Tour Overlay Styles */ .yatra-media-tour-overlay { background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; pointer-events: auto; cursor: pointer; } .yatra-tour-info { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; color: white; text-align: center; background: rgba(16, 185, 129, 0.15); border-radius: 16px; border: 2px solid rgba(16, 185, 129, 0.4); backdrop-filter: blur(8px); max-width: 300px; } .yatra-tour-icon { flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)); } .yatra-tour-details { flex: 1; } .yatra-tour-type { font-size: 15px; opacity: 0.9; margin-bottom: 12px; color: rgba(255, 255, 255, 0.9); } .yatra-tour-action { font-size: 14px; font-weight: 600; padding: 10px 20px; background: rgba(16, 185, 129, 0.9); border-radius: 24px; border: 2px solid rgba(255, 255, 255, 0.3); color: white; transition: all 0.3s ease; } .yatra-tour-info:hover .yatra-tour-action { background: rgba(16, 185, 129, 1); transform: scale(1.05); } /* Responsive adjustments */ @media (max-width: 768px) { .yatra-hero-media-badges { top: 10px; left: 10px; gap: 6px; } .yatra-media-badge { padding: 4px 8px; font-size: 11px; } .yatra-hero-media-switcher { bottom: 10px; left: 10px; gap: 6px; flex-wrap: wrap; } .yatra-media-switcher-btn { padding: 6px 10px; font-size: 11px; flex: 0 0 auto; } .yatra-media-switcher-icon { width: 14px !important; height: 14px !important; } .yatra-hero-media-switcher { justify-content: flex-start; flex-wrap: wrap; } /* Responsive overlays */ .yatra-youtube-play-button svg { width: 70px !important; height: 70px !important; } .yatra-tour-info { max-width: 250px; padding: 20px; gap: 12px; } .yatra-tour-icon svg { width: 60px !important; height: 60px !important; } .yatra-tour-title { font-size: 18px; } .yatra-tour-type { font-size: 14px; } .yatra-tour-action { font-size: 13px; padding: 8px 16px; } } @media (max-width: 480px) { .yatra-hero-media-badges { top: 8px; left: 8px; gap: 4px; } .yatra-media-badge { padding: 3px 6px; font-size: 10px; } .yatra-hero-media-switcher { bottom: 8px; left: 8px; right: 8px; gap: 4px; } .yatra-media-switcher-btn { padding: 6px 10px; font-size: 10px; flex: 0 0 auto; justify-content: center; } .yatra-media-switcher-btn span { display: none; } .yatra-media-switcher-icon { width: 16px !important; height: 16px !important; margin: 0; } /* Smaller overlays for mobile */ .yatra-youtube-play-button svg { width: 60px !important; height: 60px !important; } .yatra-tour-info { max-width: 200px; padding: 16px; gap: 10px; } .yatra-tour-icon svg { width: 50px !important; height: 50px !important; } .yatra-tour-title { font-size: 16px; } .yatra-tour-type { font-size: 13px; } .yatra-tour-action { font-size: 12px; padding: 6px 12px; } } /* Hide side images for non-image media types */ .yatra-hero-side-images { transition: opacity 0.3s ease, width 0.3s ease; } .yatra-hero-side-images.yatra-media-non-image { display: none; } /* Make main image full width when side images are hidden */ .yatra-hero-images.yatra-media-full-width .yatra-hero-main-image { grid-column: 1 / -1; } /* Book Now Button Container - Right Side */ .yatra-hero-book-now-container { position: absolute; bottom: 20px; right: 20px; z-index: 25; pointer-events: auto; } .yatra-hero-book-now-btn { display: flex; align-items: center; gap: 8px; background: var(--yatra-primary, #3b82f6); color: white; padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } .yatra-hero-book-now-btn:hover { background: var(--yatra-primary-dark, #2563eb); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); } /* Responsive adjustments for Book Now button */ @media (max-width: 768px) { .yatra-hero-book-now-container { bottom: 10px; right: 10px; } .yatra-hero-book-now-btn { padding: 10px 16px; font-size: 13px; } } @media (max-width: 480px) { /* Avoid overlap with the full-width media switcher */ .yatra-hero-book-now-container { bottom: 10px; right: 10px; z-index: 30; } } .yatra-hero-book-now-btn.is-disabled, .yatra-hero-book-now-btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; pointer-events: none; } /* Video Player and Tour Viewer modules are loaded separately */ .yatra-hero-main-img { width: 100%; height: 100%; object-fit: cover; display: block; } .yatra-hero-discount-tag { position: absolute; top: 16px; right: 16px; display: inline-block; width: max-content; max-width: calc(100% - 24px); white-space: nowrap; background: #ef4444; color: #fff; padding: 5px 10px; border-radius: 6px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; z-index: 10; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); } .yatra-hero-book-now-btn { background: #10b981; color: #fff; border: none; padding: 14px 28px; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; z-index: 10; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); } .yatra-hero-book-now-btn svg { flex-shrink: 0; } .yatra-hero-book-now-btn:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); color: #fff; } .yatra-hero-side-images { display: flex; flex-direction: column; gap: 16px; height: 500px; align-items: stretch; } .yatra-side-image-item { position: relative; border-radius: 12px; overflow: hidden; background: #f3f4f6; cursor: pointer; transition: transform 0.3s ease; width: 100%; flex: 1; min-height: 0; display: flex; } .yatra-side-image-item img { width: 100%; height: 100%; object-fit: cover; display: block; } .yatra-side-image-item:hover { transform: scale(1.02); } .yatra-favorite-btn { position: absolute !important; top: 12px !important; right: 12px !important; width: 40px !important; height: 40px !important; background: #ffffff !important; border: 1px solid rgba(0, 0, 0, 0.1) !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; color: #6b7280 !important; transition: all 0.3s ease !important; z-index: 100 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important; padding: 0 !important; margin: 0 !important; opacity: 1 !important; visibility: visible !important; } .yatra-favorite-btn:hover { background: #ffffff !important; color: #ef4444 !important; transform: scale(1.1) !important; border-color: rgba(0, 0, 0, 0.1) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; } .yatra-favorite-btn svg { width: 20px !important; height: 20px !important; stroke-width: 2 !important; display: block !important; fill: none !important; } .yatra-favorite-btn svg path { stroke: currentColor !important; } .yatra-view-all-photos-btn { position: absolute; bottom: 12px; right: 12px; background: #fff; color: #111827; border: none; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.3s ease; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.15); } .yatra-view-all-photos-btn:hover { background: #f9fafb; color: #111827; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); } .yatra-view-all-photos-btn svg { width: 16px; height: 16px; } /* ============================================ OLD HERO SECTION (keeping for reference) ============================================ */ .yatra-trip-hero { position: relative; width: 100%; height: 70vh; min-height: 600px; max-height: 800px; overflow: hidden; background: linear-gradient(135deg, var(--yatra-primary-darker, #1e3a8a) 0%, var(--yatra-primary, #3b82f6) 100%); } .yatra-trip-hero-slider { width: 100%; height: 100%; position: relative; } .yatra-trip-hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; } .yatra-trip-hero-slide.active { opacity: 1; z-index: 1; } .yatra-trip-hero-image { width: 100%; height: 100%; object-fit: cover; display: block; } .yatra-trip-hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%); display: flex; align-items: center; justify-content: flex-start; padding: 60px 20px; z-index: 2; } .yatra-trip-hero-content { max-width: 1200px; width: 100%; margin: 0 auto; color: #fff; position: relative; text-align: left; } .yatra-trip-hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; justify-content: flex-start; } .yatra-trip-hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border-radius: 24px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid rgba(255,255,255,0.2); } .yatra-trip-hero-title { font-size: 3.75rem; font-weight: 800; line-height: 1.1; margin: 0 0 20px 0; text-shadow: 0 2px 20px rgba(0,0,0,0.4); letter-spacing: -0.02em; text-align: left; } .yatra-trip-hero-subtitle { font-size: 1.375rem; font-weight: 400; opacity: 0.95; margin: 0 0 32px 0; max-width: 800px; line-height: 1.6; text-align: left; } .yatra-trip-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; justify-content: flex-start; } .yatra-hero-button { padding: 14px 32px; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; border: 2px solid transparent; } .yatra-hero-button-primary { background: #fff; color: var(--yatra-primary-darker, #1e3a8a); border-color: #fff; } .yatra-hero-button-primary:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); } .yatra-hero-button-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); } .yatra-hero-button-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; } .yatra-gallery-count { font-size: 14px; opacity: 0.9; font-weight: 500; } .yatra-hero-gallery-play { position: absolute; bottom: 40px; right: 40px; z-index: 10; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; width: 80px; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: all 0.3s ease; color: var(--yatra-primary, #3b82f6); box-shadow: 0 4px 20px rgba(0,0,0,0.2); } .yatra-hero-gallery-play:hover { background: #fff; transform: scale(1.1); box-shadow: 0 6px 30px rgba(0,0,0,0.3); } .yatra-hero-gallery-play svg { width: 32px; height: 32px; } .yatra-hero-gallery-play span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; } .yatra-gallery-play-btn { cursor: pointer; border: none; font-family: inherit; } .yatra-trip-tags-container { display: flex; flex-wrap: wrap; gap: var(--yatra-element-gap); align-items: center; } .yatra-trip-tag { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #e5e7eb; border-radius: 20px; font-size: 14px; } .yatra-trip-tag-label { color: #6b7280; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; } .yatra-trip-tag-value { color: #111827; font-weight: 500; } .yatra-trip-tag-value a { color: #059669; text-decoration: none; transition: color 0.2s ease; } .yatra-trip-tag-value a:hover { color: #047857; text-decoration: underline; } /* ============================================ SPEC SHEET WRAPPER — white ring so hairline grid never bleeds into rounded corners (Gray “caps” / holes happen when line-color fills the grid box under border-radius.) ============================================ */ .yatra-spec-sheet { --yatra-spec-line: #d6d3d1; border: 1px solid var(--yatra-spec-line); border-radius: 12px; background: #fff; padding: 1px; box-sizing: border-box; overflow: hidden; } .yatra-spec-sheet--quick-facts { width: 100%; margin: 0; } /* Same as .yatra-trip-attributes .yatra-spec-sheet: inner card fills the padded shell */ .yatra-trip-quick-facts-section .yatra-spec-sheet--quick-facts { width: 100%; } .yatra-trip-attributes .yatra-spec-sheet--attributes-grid { width: 100%; } /* Inner grid: 1px gaps only — line color never touches the outer rounded clip */ .yatra-spec-sheet > .yatra-trip-quick-facts, .yatra-spec-sheet > .yatra-attributes-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 1px; align-items: stretch; padding: 0; margin: 0; background: var(--yatra-spec-line, #d6d3d1); border: none; border-radius: 11px; overflow: hidden; } .yatra-spec-sheet > .yatra-attributes-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } /* ============================================ QUICK FACTS BAR — neutral “spec sheet” (no tinted icon wells) ============================================ */ .yatra-trip-quick-facts { width: 100%; } .yatra-quick-fact { display: flex; flex-direction: row; align-items: flex-start; text-align: left; gap: 12px; padding: 14px 16px; background: #fff; border: none; border-radius: 0; transition: background-color 0.15s ease; min-width: 0; min-height: 100%; box-sizing: border-box; align-self: stretch; } .yatra-quick-fact:hover { background: #fafaf9; } .yatra-quick-fact-icon { width: auto; height: auto; min-width: 28px; min-height: 28px; padding: 0; background: transparent; border-radius: 0; display: flex; align-items: center; justify-content: center; color: #57534e; flex-shrink: 0; overflow: visible; } .yatra-quick-fact-icon svg { display: block; width: 22px; height: 22px; min-width: 22px; min-height: 22px; flex-shrink: 0; overflow: visible; opacity: 0.92; } .yatra-quick-fact-icon svg[fill="none"] { stroke: currentColor; } .yatra-quick-fact-icon svg[fill="currentColor"] { stroke: none; opacity: 1; } .yatra-quick-fact-icon .fa-solid, .yatra-quick-fact-icon .fa-regular { font-size: 22px; line-height: 1; opacity: 0.92; } .yatra-quick-fact-content { flex: 1; min-width: 0; padding-top: 1px; } .yatra-quick-fact-label { font-size: 11px; color: #78716c; text-transform: none; letter-spacing: 0.01em; margin-bottom: 3px; font-weight: 500; line-height: 1.25; display: block; } .yatra-quick-fact-value { font-size: 15px; font-weight: 600; color: #1c1917; margin: 0; line-height: 1.35; display: block; } .yatra-trip-quick-facts .yatra-price-current { color: #059669; font-weight: 600; } .yatra-trip-quick-facts .yatra-price-original { color: #94a3b8; text-decoration: line-through; font-weight: 400; font-size: 0.88em; margin-left: 4px; } .yatra-trip-quick-facts .yatra-rating-display { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .yatra-trip-quick-facts .yatra-rating-number { font-weight: 700; color: #0f172a; } .yatra-trip-quick-facts .yatra-rating-stars { display: inline-flex; gap: 1px; font-size: 0.85rem; line-height: 1; } .yatra-trip-quick-facts .star-filled { color: #fbbf24; } .yatra-trip-quick-facts .star-empty { color: #cbd5e1; } .yatra-trip-quick-facts .yatra-review-count { font-size: 12px; color: #64748b; font-weight: 500; } .yatra-quick-fact-price { font-size: 15px; font-weight: 600; color: #1c1917; line-height: 1.35; margin: 0; display: block; } .yatra-quick-fact-price-label { font-size: 10px; color: #94a3b8; font-weight: 400; margin-top: 2px; display: block; } /* ============================================ MAIN CONTAINER ============================================ */ .yatra-trip-container { display: grid; grid-template-columns: 1fr 400px; gap: var(--yatra-section-gap); align-items: start; padding-top: 0; } /* * Responsive: collapse the trip-detail two-column grid to a single * column at tablet-portrait and below. Without this, the fixed * `1fr 400px` causes the booking sidebar to overflow the viewport * on phones — and because the sidebar is `position: sticky`, it * starts covering the hero gallery + section navigation as soon as * the user scrolls. Stacking puts the gallery/content first and the * booking card after, in normal document flow. */ @media (max-width: 1024px) { .yatra-trip-container { grid-template-columns: 1fr; } .yatra-trip-container .yatra-trip-sidebar, .yatra-trip-sidebar-column .yatra-trip-sidebar, .yatra-trip-sidebar { position: static; top: auto; order: 2; } } /* ============================================ MAIN CONTENT ============================================ */ .yatra-trip-main { min-width: 0; } /* Sidebar Column */ .yatra-trip-sidebar-column { min-width: 0; width: 100%; } .yatra-trip-sidebar-column .yatra-trip-sidebar { position: sticky; top: 0; height: fit-content; } .yatra-trip-section { background: #ffffff; border-radius: 8px; padding: 40px; margin-bottom: 24px; border: 1px solid #e5e7eb; } .yatra-trip-section-title { font-size: 28px; font-weight: 600; color: #111827; margin: 0 0 24px 0; display: flex; align-items: center; gap: 12px; line-height: 1.2; } .yatra-trip-section-title-icon { width: 24px; height: 24px; color: #6b7280; flex-shrink: 0; } /* ============================================ OVERVIEW & HIGHLIGHTS ============================================ */ .yatra-trip-description { font-size: 17px; line-height: 1.8; color: #374151; margin-bottom: 40px; } .yatra-trip-description p { margin-bottom: 20px; } .yatra-trip-description p:last-child { margin-bottom: 0; } /* Lead / excerpt above full description (overview tab) */ .yatra-trip-short-description-lead { font-size: 1.125rem; line-height: 1.7; color: #475569; font-weight: 500; margin-bottom: 24px; padding: 20px; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-radius: 12px; border-left: 4px solid var(--yatra-primary, #3b82f6); } @media (prefers-color-scheme: dark) { .yatra-trip-short-description-lead { color: #cbd5e1; background: linear-gradient(135deg, #1e293b 0%, #334155 100%); border-left-color: #60a5fa; } } @media (max-width: 768px) { .yatra-trip-short-description-lead { font-size: 1rem; padding: 16px; margin-bottom: 20px; } } .yatra-trip-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; } .yatra-highlight-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: #f9fafb; border-radius: 12px; border-left: 4px solid var(--yatra-primary, #3b82f6); transition: all 0.3s ease; } .yatra-highlight-item:hover { background: #f3f4f6; transform: translateX(4px); } .yatra-highlight-icon { width: 24px; height: 24px; color: var(--yatra-primary, #3b82f6); flex-shrink: 0; margin-top: 2px; } .yatra-highlight-text { flex: 1; font-size: 15px; color: #111827; margin: 0; line-height: 1.6; } /* ============================================ KEY FEATURES GRID ============================================ */ .yatra-trip-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 32px; } .yatra-feature-card { text-align: center; padding: 24px; background: #f9fafb; border-radius: 12px; border: 1px solid #e5e7eb; transition: all 0.3s ease; } .yatra-feature-card:hover { background: #fff; border-color: var(--yatra-primary, #3b82f6); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15); transform: translateY(-4px); } .yatra-feature-icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--yatra-primary, #3b82f6); } .yatra-feature-title { font-size: 16px; font-weight: 600; color: #111827; margin: 0 0 8px 0; } .yatra-feature-desc { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.5; } /* ============================================ ITINERARY - New Timeline Design ============================================ */ /* Itinerary tab: consistently left-aligned (all viewports) */ .yatra-trip-section#itinerary, .yatra-trip-section#itinerary .yatra-itinerary-timeline, .yatra-trip-section#itinerary .yatra-itinerary-day, .yatra-trip-section#itinerary .yatra-itinerary-day-content, .yatra-trip-section#itinerary .yatra-entry-card, .yatra-trip-section#itinerary .yatra-entry-info, .yatra-trip-section#itinerary .yatra-entry-description, .yatra-trip-section#itinerary .yatra-day-description { text-align: left; } .yatra-trip-section#itinerary .yatra-day-description p { text-align: left; } .yatra-trip-section#itinerary .yatra-entry-header { justify-content: flex-start; } .yatra-trip-section#itinerary .yatra-entry-meta, .yatra-trip-section#itinerary .yatra-entry-included { justify-content: flex-start; } .yatra-trip-section#itinerary .yatra-gallery-title { justify-content: flex-start; } /* Section Header with Actions */ .yatra-section-header-with-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; text-align: left; } @media (min-width: 600px) { .yatra-section-header-with-actions { align-items: center; } } .yatra-section-header-with-actions .yatra-trip-section-title { margin-bottom: 0; } .yatra-itinerary-actions { display: flex; gap: 12px; } .yatra-toggle-all-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; font-weight: 500; color: #374151; cursor: pointer; transition: all 0.2s; } .yatra-toggle-all-btn:hover { background: #f3f4f6; border-color: #d1d5db; } .yatra-toggle-all-btn svg { color: #6b7280; } .yatra-itinerary-timeline { display: flex; flex-direction: column; gap: 24px; } .yatra-itinerary-day { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; } .yatra-itinerary-day-header { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; cursor: pointer; transition: background 0.2s ease; } .yatra-itinerary-day-header:hover { background: #f3f4f6; } .yatra-day-badge { font-size: 14px; font-weight: 700; color: #fff; background: var(--yatra-primary, #3b82f6); padding: 6px 14px; border-radius: 6px; white-space: nowrap; } .yatra-day-title { font-size: 18px; font-weight: 600; color: #111827; margin: 0; flex: 1; } .yatra-day-toggle { width: 36px; height: 36px; min-width: 36px; display: flex !important; align-items: center; justify-content: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: all 0.2s; flex-shrink: 0; padding: 0; } .yatra-day-toggle:hover { background: #f3f4f6; border-color: #d1d5db; } .yatra-day-toggle .yatra-chevron-icon { transition: transform 0.25s ease; color: #6b7280; width: 20px; height: 20px; } .yatra-day-toggle svg { width: 20px; height: 20px; color: #6b7280; stroke: currentColor; } /* Expand/collapse days via `.is-day-expanded` (set in PHP for day 1; toggled in trip.js) */ .yatra-itinerary-day-content { padding: var(--yatra-element-gap); } .yatra-itinerary-day:not(.is-day-expanded) .yatra-itinerary-day-content { display: none; } .yatra-itinerary-day.is-day-expanded .yatra-itinerary-day-content { display: block; } .yatra-itinerary-day:not(.is-day-expanded) .yatra-day-toggle .yatra-chevron-icon { transform: rotate(-90deg); } .yatra-itinerary-day.is-day-expanded .yatra-day-toggle .yatra-chevron-icon { transform: rotate(0deg); } .yatra-day-description { margin-bottom: var(--yatra-element-gap); color: #4b5563; font-size: 15px; line-height: 1.6; } .yatra-toggle-all-btn .collapse-icon { display: none; } .yatra-toggle-all-btn.is-all-expanded .expand-icon { display: none; } .yatra-toggle-all-btn.is-all-expanded .collapse-icon { display: block; } /* Hidden image sources for itinerary lightbox collection */ .yatra-itinerary-trip-gallery { display: none; } /* Entry Timeline */ .yatra-entries-timeline { position: relative; padding-left: 32px; } .yatra-entries-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #e5e7eb; } .yatra-entry-item { position: relative; margin-bottom: 20px; } .yatra-entry-item:last-child { margin-bottom: 0; } .yatra-entry-timeline-dot { position: absolute; left: -28px; top: 20px; width: 12px; height: 12px; background: var(--entry-color, var(--yatra-primary, #3b82f6)); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--entry-color, var(--yatra-primary, #3b82f6)); z-index: 2; } .yatra-entry-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; transition: all 0.2s; } .yatra-entry-card:hover { border-color: var(--entry-color, var(--yatra-primary, #3b82f6)); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); } .yatra-entry-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; } .yatra-entry-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; flex-shrink: 0; } .yatra-entry-icon svg { width: 20px; height: 20px; } .yatra-entry-info { flex: 1; min-width: 0; } .yatra-entry-type { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; } .yatra-entry-title { font-size: 16px; font-weight: 600; color: #111827; margin: 0; } .yatra-entry-time { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7280; background: #fff; padding: 6px 12px; border-radius: 6px; border: 1px solid #e5e7eb; white-space: nowrap; } .yatra-entry-time svg { color: #9ca3af; } .yatra-entry-description { font-size: 14px; line-height: 1.6; color: #4b5563; margin: 0 0 12px 0; } .yatra-entry-notes { display: block; padding: 10px 12px; margin: 0 0 12px 0; background: #fffbeb; border-left: 3px solid #f59e0b; border-radius: 6px; font-size: 13px; line-height: 1.55; color: #78350f; } .yatra-entry-notes__head { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; color: #b45309; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; } .yatra-entry-notes__head svg { color: #d97706; } .yatra-entry-notes__body { color: #78350f; } .yatra-entry-notes__body p { margin: 0 0 6px 0; } .yatra-entry-notes__body p:last-child { margin-bottom: 0; } .yatra-entry-cost { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-radius: 8px; margin-bottom: 12px; color: white; font-size: 14px; font-weight: 600; } .yatra-entry-cost svg { flex-shrink: 0; color: white; } .yatra-entry-cost .yatra-cost-amount { font-weight: 700; } .yatra-entry-cost .yatra-cost-label { font-size: 12px; font-weight: 500; opacity: 0.9; } .yatra-entry-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; } .yatra-entry-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7280; } .yatra-entry-meta-item svg { color: #9ca3af; } .yatra-entry-included { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid #e5e7eb; } .yatra-included-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #059669; background: #ecfdf5; padding: 4px 10px; border-radius: 4px; } .yatra-included-tag svg { color: #10b981; } /* Itinerary: Included / Excluded split layout */ .yatra-entry-inclusions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 12px; border-top: 1px solid #e5e7eb; margin-top: 12px; } .yatra-entry-inclusions-col { min-width: 0; } .yatra-entry-inclusions-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .yatra-entry-inclusions-title { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: #6b7280; } .yatra-entry-inclusions-tags { display: flex; flex-wrap: wrap; gap: 8px; } .yatra-entry-inclusions-empty { font-size: 12px; color: #9ca3af; background: #f9fafb; padding: 4px 10px; border-radius: 999px; } .yatra-excluded-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #b91c1c; background: #fef2f2; padding: 4px 10px; border-radius: 4px; } .yatra-excluded-tag svg { color: #ef4444; } @media (max-width: 640px) { .yatra-entry-inclusions { grid-template-columns: 1fr; gap: 12px; } } /* Summary Day */ .yatra-itinerary-summary .yatra-day-badge { background: #8b5cf6; } .yatra-summary-content { padding: 20px; background: #f9fafb; border-radius: 12px; } .yatra-summary-content p { font-size: 15px; color: #374151; margin-bottom: 16px; } .yatra-summary-list { list-style: none; padding: 0; margin: 0; } .yatra-summary-list li { padding: 12px 0; border-bottom: 1px solid #e5e7eb; font-size: 14px; color: #4b5563; } .yatra-summary-list li:last-child { border-bottom: none; } .yatra-summary-list li strong { color: #111827; font-weight: 600; } /* ============================================ MOBILE STICKY SIDEBAR ============================================ */ /* Account for WordPress admin bar */ .admin-bar .yatra-mobile-sticky-sidebar { bottom: 32px; } @media screen and (max-width: 782px) { .admin-bar .yatra-mobile-sticky-sidebar { bottom: 46px; } } .yatra-mobile-sticky-sidebar.hidden { transform: translateY(100%); opacity: 0; } .yatra-mobile-sticky-content { display: flex; flex-direction: column; padding: 12px; gap: 8px; background: #ffffff; min-height: auto; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); position: relative; padding-top: 14px; padding-right: 56px; /* space for close button */ } /* Row 1: Price and Date */ .yatra-mobile-row-1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0; width: 100%; overflow: visible; } /* Make the two top fields feel like one joined control */ .yatra-mobile-row-1 > .yatra-mobile-date-section, .yatra-mobile-row-1 > .yatra-mobile-travelers-section { width: 100%; min-width: 0; } .yatra-mobile-row-1 .yatra-mobile-field-btn, .yatra-mobile-row-1 .yatra-booking-field-select, .yatra-mobile-row-1 .yatra-mobile-booking-field { width: 100%; } .yatra-mobile-row-1 > .yatra-mobile-date-section .yatra-mobile-field-btn { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; } .yatra-mobile-row-1 > .yatra-mobile-travelers-section .yatra-booking-field-select, .yatra-mobile-row-1 > .yatra-mobile-travelers-section .yatra-mobile-booking-field { border-top-left-radius: 0; border-bottom-left-radius: 0; } .yatra-mobile-row-1::-webkit-scrollbar { display: none; /* Hide scrollbar for Chrome, Safari and Opera */ } /* Row 2: Total Price Only */ .yatra-mobile-row-2 { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid #e5e7eb; } /* Row 3: Date, Total, and Actions */ .yatra-mobile-row-3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; } /* Ensure correct order of elements */ .yatra-mobile-price-section { order: 2; } .yatra-mobile-date-section { order: 3; display: flex; align-items: center; min-width: 0; width: 100%; touch-action: manipulation; } .yatra-mobile-travelers-section { order: 4; min-width: 0; } .yatra-mobile-travelers-section .yatra-mobile-travelers-range { display: block; width: 100%; font-size: 10px; line-height: 1.25; color: #6b7280; text-align: center; margin-top: 2px; white-space: nowrap; } .yatra-mobile-action-section { order: 6; } .yatra-mobile-trust-badge { order: 7; } .yatra-mobile-action-buttons { order: 8; position: absolute; top: 10px; right: 10px; z-index: 6; } /* Mobile Booking Fields */ .yatra-mobile-booking-field { display: flex; align-items: center; gap: 6px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0 8px; box-sizing: border-box; min-width: 0; min-height: 44px; height: 44px; max-height: 44px; flex-shrink: 0; touch-action: manipulation; } /* New: unified mobile field wrapper (used by date button wrapper) */ .yatra-mobile-field-btn { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; height: 44px; padding: 0 10px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer; box-sizing: border-box; -webkit-tap-highlight-color: transparent; } .yatra-mobile-field-btn:active { transform: translateY(0.5px); } .yatra-mobile-field-btn input { pointer-events: none; /* wrapper opens picker */ } .yatra-mobile-field-btn .yatra-mobile-datepicker-input { width: 100% !important; flex: 1 1 auto !important; min-width: 0 !important; font-size:13px; } /* Flatpickr creates an altInput which becomes the visible field. Ensure it stretches inside our button wrapper. */ .yatra-mobile-field-btn .flatpickr-input, .yatra-mobile-field-btn input.flatpickr-input, .yatra-mobile-field-btn input.flatpickr-alt-input, .yatra-mobile-field-btn input[type="text"] { flex: 1 1 auto; width: 100%; min-width: 0; } .yatra-mobile-field-btn .yatra-mobile-field-icon { width: 18px; height: 18px; } .yatra-mobile-field-btn .yatra-mobile-arrow { flex-shrink: 0; } .yatra-mobile-field-btn .yatra-mobile-arrow { margin-left: auto; } /* Compact Mobile Date Picker — same vertical footprint as Adult / Check / Enquire */ .yatra-mobile-compact-datepicker { display: flex; align-items: center; gap: 4px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0 6px; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; height: 44px; max-height: 44px; flex-shrink: 1; cursor: pointer; transition: all 0.2s ease; position: relative; z-index: 2; touch-action: manipulation; -webkit-tap-highlight-color: transparent; } .yatra-mobile-compact-datepicker:hover { background: #f3f4f6; border-color: #d1d5db; } .yatra-mobile-compact-datepicker .yatra-mobile-field-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .yatra-mobile-compact-datepicker .yatra-mobile-icon { width: 14px; height: 14px; } .yatra-mobile-datepicker-input { border: none; background: transparent; font-size: 14px; line-height: 1.2; color: #374151; outline: none; min-width: 0; width: 100%; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; cursor: pointer; padding: 0; margin: 0; min-height: 0 !important; height: auto; max-height: 100%; vertical-align: middle; -webkit-appearance: none; appearance: none; touch-action: manipulation; } /* If Flatpickr clones classes onto the altInput, ensure it still stretches */ .yatra-mobile-field-btn .yatra-mobile-datepicker-input.flatpickr-input, .yatra-mobile-field-btn .flatpickr-input { width: 100% !important; flex: 1 1 auto !important; min-width: 0 !important; background: transparent !important; padding: 0 !important; margin: 0 !important; } .yatra-mobile-datepicker-input::placeholder { color: #9ca3af; } .yatra-mobile-arrow { width: 12px; height: 12px; color: #6b7280; flex-shrink: 0; transition: transform 0.2s ease; } .yatra-mobile-compact-datepicker:hover .yatra-mobile-arrow { transform: translateY(1px); } /* Mobile Date Picker - Match Right Sidebar Exactly */ .yatra-mobile-date-section .yatra-booking-field-select { display: flex; align-items: center; gap: 8px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 12px; min-width: 0; flex-shrink: 0; position: relative; cursor: pointer; } /* Mobile Traveler Picker (traveler-based) - reuse desktop component but tuned for bottom sticky bar */ .yatra-mobile-travelers-section .yatra-booking-field-select { display: flex; align-items: center; gap: 8px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0 10px; min-height: 44px; height: 44px; max-height: 44px; min-width: 0; width: 100%; position: relative; cursor: pointer; } .yatra-mobile-travelers-section .yatra-participants-display { padding: 0; font-size: 14px; color: #374151; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* In a bottom sticky bar, open the dropdown upward */ .yatra-mobile-participants.active .yatra-booking-quantity-selector, .yatra-mobile-travelers-section .yatra-booking-quantity-selector { top: auto; bottom: 100%; margin-top: 0; margin-bottom: 8px; max-height: min(60vh, 360px); overflow-y: auto; } .yatra-mobile-date-section .yatra-booking-field-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .yatra-mobile-date-section .yatra-booking-select { border: none; background: transparent; font-size: 14px; color: #374151; outline: none; min-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; cursor: pointer; flex: 1; } .yatra-mobile-date-section .yatra-booking-select::placeholder { color: #9ca3af; } .yatra-mobile-date-section .yatra-select-arrow { width: 16px; height: 16px; color: #6b7280; flex-shrink: 0; transition: transform 0.2s ease; } .yatra-mobile-date-section .yatra-booking-field-select:hover .yatra-select-arrow { transform: translateY(1px); } /* Responsive adjustments for mobile date picker */ @media (max-width: 480px) { .yatra-mobile-date-section .yatra-booking-field-select { padding: 6px 8px; gap: 6px; } .yatra-mobile-date-section .yatra-booking-select { font-size: 12px; min-width: 60px; } .yatra-mobile-date-section .yatra-select-arrow { width: 14px; height: 14px; } } @media (max-width: 360px) { .yatra-mobile-date-section .yatra-booking-field-select { padding: 4px 6px; gap: 4px; } .yatra-mobile-date-section .yatra-booking-select { font-size: 11px; min-width: 50px; } .yatra-mobile-date-section .yatra-select-arrow { width: 12px; height: 12px; } } .yatra-mobile-field-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .yatra-mobile-icon { width: 18px; height: 18px; color: #6b7280; } /* Ensure SVG icons inside mobile field icon render consistently */ .yatra-mobile-field-icon svg, .yatra-mobile-close-icon svg { width: 18px; height: 18px; display: block; stroke: currentColor; fill: none; } .yatra-mobile-datepicker, .yatra-mobile-travelers-display { border: none; background: transparent; font-size: 12px; line-height: 1.2; color: #374151; outline: none; min-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; } .yatra-mobile-datepicker::placeholder { color: #9ca3af; } /* Mobile Quantity Controls */ .yatra-mobile-quantity-controls { display: flex; align-items: center; gap: 6px; } .yatra-mobile-quantity-btn { display: flex; align-items: center; justify-content: center; width: 55px; height: 34px; background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; } .yatra-mobile-quantity-btn:hover { background: #e5e7eb; border-color: #9ca3af; } .yatra-mobile-quantity-btn svg { width: 14px; height: 14px; color: #374151; } .yatra-mobile-quantity-input { width: 40px; text-align: center; border: none; background: transparent; font-size: 15px; font-weight: 600; color: #374151; outline: none; } /* Mobile Check Button */ .yatra-mobile-check-btn { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; box-sizing: border-box; min-height: 36px; height: 36px; max-height: 36px; font-size: 12px; font-weight: 600; border-radius: 6px; border: none; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; background: var(--yatra-primary, #3b82f6); color: white; box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3); flex-shrink: 0; touch-action: manipulation; } .yatra-mobile-check-btn:hover { background: var(--yatra-primary-dark, #2563eb); box-shadow: 0 2px 4px rgba(59, 130, 246, 0.4); } /* Mobile Availability Compact */ .yatra-mobile-availability-compact { background: rgba(255, 255, 255, 0.1); border-top: 1px solid rgba(255, 255, 255, 0.2); padding: 8px 16px; text-align: center; } .yatra-mobile-availability-info { display: flex; align-items: center; justify-content: center; gap: 6px; } .yatra-mobile-availability-count { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.9); } /* Price Section */ .yatra-mobile-price-section { flex-shrink: 0; position: relative; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 14px; } .yatra-mobile-price-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; } .yatra-mobile-price-label { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; } .yatra-mobile-price-amount { font-size: 18px; font-weight: 700; color: #111827; line-height: 1.2; } .yatra-mobile-price-original { font-size: 13px; font-weight: 500; color: #9ca3af; text-decoration: line-through; line-height: 1; } .yatra-mobile-contact-pricing { color: #6b7280 !important; font-size: 16px !important; } /* Group Discount Badge */ .yatra-mobile-group-badge { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; flex-shrink: 0; } .yatra-mobile-group-badge svg { color: #16a34a; } /* Discount Badge */ .yatra-mobile-discount-badge { position: absolute; top: -10px; right: -10px; background: #dc2626; color: white; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3); z-index: 1; } /* Trust Badge */ .yatra-mobile-trust-badge { display: flex; align-items: center; gap: 6px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 6px 12px; flex-shrink: 0; } .yatra-mobile-trust-badge svg { color: #16a34a; flex-shrink: 0; } .yatra-mobile-trust-badge span { font-size: 12px; font-weight: 600; color: #15803d; white-space: nowrap; } /* Info Bar */ .yatra-mobile-info-bar { display: flex; align-items: center; justify-content: center; gap: 16px; background: #f9fafb; border-top: 1px solid #e5e7eb; padding: 8px 16px; min-height: 32px; } /* Info Section */ .yatra-mobile-info-section { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: center; } .yatra-mobile-info-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #6b7280; font-weight: 500; white-space: nowrap; } .yatra-mobile-info-item svg { color: #9ca3af; flex-shrink: 0; } .yatra-mobile-info-icon { width: 12px; height: 12px; flex-shrink: 0; color: #9ca3af; } /* Action Section */ .yatra-mobile-action-section { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } .yatra-mobile-book-btn, .yatra-mobile-enquire-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 14px; font-weight: 600; border-radius: 6px; border: none; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; } .yatra-mobile-book-btn { background: var(--yatra-primary, #3b82f6); color: white; } .yatra-mobile-book-btn:hover { background: var(--yatra-primary-dark, #2563eb); } .yatra-mobile-enquire-btn { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; padding: 0 10px; box-sizing: border-box; min-height: 44px; height: 44px; max-height: 44px; font-size: 14px; flex-shrink: 0; align-items: center; justify-content: center; touch-action: manipulation; } /* When Enquire is placed in the mobile sticky row-2 grid */ .yatra-mobile-row-2 .yatra-mobile-check-btn, .yatra-mobile-row-2 .yatra-mobile-enquire-btn { width: 100%; justify-content: center; min-height: 44px; height: 44px; font-size: 14px; } @media (max-width: 480px) { /* Avoid cramped horizontal overflow; use clean two-row layout */ .yatra-mobile-row-1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0; width: 100%; overflow-x: visible; } /* If group badge exists, let it sit above fields */ .yatra-mobile-group-badge { grid-column: 1 / -1; justify-content: center; } .yatra-mobile-date-section { max-width: none; width: 100%; min-width: 0; } .yatra-mobile-travelers-section { width: 100%; min-width: 0; } /* Close button is absolutely positioned; don't reserve grid space for it */ } .yatra-mobile-enquire-btn:hover { background: #e5e7eb; border-color: #9ca3af; color: #111827; } .yatra-mobile-btn-icon { width: 14px; height: 14px; flex-shrink: 0; } /* Action Buttons */ .yatra-mobile-action-buttons { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } /* Close Button */ .yatra-mobile-close-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; z-index: 10; position: relative; } .yatra-mobile-close-btn:hover { background: #e5e7eb; border-color: #9ca3af; } .yatra-mobile-close-btn:active { transform: scale(0.95); } .yatra-mobile-close-icon { width: 18px; height: 18px; color: #6b7280; } .yatra-mobile-close-btn .yatra-mobile-close-icon { display: block; stroke: currentColor; fill: none; } /* Ultimate fallback if SVG icon isn't available */ .yatra-mobile-close-fallback { display: block; width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 22px; font-weight: 700; color: #6b7280; transform: translateY(-1px); user-select: none; } /* Hidden state for sidebar */ .yatra-mobile-sticky-sidebar.user-closed { transform: translateY(100%) !important; opacity: 0 !important; pointer-events: none; } .yatra-mobile-sidebar-details { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #f9fafb; border-top: 1px solid #e5e7eb; } .yatra-mobile-sidebar-details.expanded { max-height: 60vh; overflow-y: auto; } .yatra-mobile-details-content { padding: 20px; } /* Dark mode support */ @media (prefers-color-scheme: dark) { .yatra-mobile-sticky-sidebar { background: #1f2937 !important; border-top-color: #374151 !important; } .yatra-mobile-sticky-content { background: #1f2937; } .yatra-mobile-booking-field { background: #374151; border-color: #4b5563; } .yatra-mobile-price-section { background: #374151; border-color: #4b5563; } .yatra-mobile-price-amount { color: #f9fafb; } .yatra-mobile-price-label { color: #9ca3af; } .yatra-mobile-price-original { color: #6b7280; } .yatra-mobile-datepicker, .yatra-mobile-travelers-display { color: #e5e7eb; } .yatra-mobile-datepicker::placeholder { color: #6b7280; } .yatra-mobile-icon { color: #9ca3af; } .yatra-mobile-quantity-btn { background: #4b5563; border-color: #6b7280; } .yatra-mobile-quantity-btn:hover { background: #6b7280; border-color: #9ca3af; } .yatra-mobile-quantity-btn svg { color: #d1d5db; } .yatra-mobile-quantity-input { color: #e5e7eb; } .yatra-mobile-trust-badge { background: #14532d; border-color: #166534; } .yatra-mobile-trust-badge svg { color: #22c55e; } .yatra-mobile-trust-badge span { color: #86efac; } .yatra-mobile-close-btn { background: #4b5563; border-color: #6b7280; } .yatra-mobile-close-btn:hover { background: #6b7280; border-color: #9ca3af; } .yatra-mobile-close-icon { color: #9ca3af; } .yatra-mobile-info-bar { background: #374151; border-top-color: #4b5563; } .yatra-mobile-info-item { color: #d1d5db; } .yatra-mobile-info-item svg { color: #9ca3af; } .yatra-mobile-enquire-btn { background: #4b5563; color: #e5e7eb; border-color: #6b7280; } .yatra-mobile-enquire-btn:hover { background: #6b7280; border-color: #9ca3af; color: #f9fafb; } } /* Responsive adjustments for three-row layout */ @media (max-width: 480px) { .yatra-mobile-sticky-content { padding: 8px; gap: 6px; padding-right: calc(8px + 56px); /* keep space for close button */ } .yatra-mobile-row-1, .yatra-mobile-row-2, .yatra-mobile-row-3 { gap: 6px; } .yatra-mobile-booking-field { padding: 0 6px; min-height: 34px; height: 34px; max-height: 34px; } .yatra-mobile-compact-date, .yatra-mobile-compact-datepicker { padding: 0 6px; gap: 4px; min-height: 34px; height: 34px; max-height: 34px; } .yatra-mobile-check-btn, .yatra-mobile-enquire-btn { min-height: 34px; height: 34px; max-height: 34px; } .yatra-mobile-price-section { padding: 4px 6px; } .yatra-mobile-price-amount { font-size: 14px; } .yatra-mobile-datepicker { font-size: 11px; min-width: 40px; } .yatra-mobile-check-btn, .yatra-mobile-enquire-btn { padding: 0 6px; font-size: 10px; } .yatra-mobile-check-btn { gap: 3px; } .yatra-mobile-enquire-btn { gap: 3px; } .yatra-mobile-trust-badge { padding: 2px 4px; } .yatra-mobile-trust-badge span { font-size: 8px; } .yatra-mobile-close-btn { width: 40px; height: 40px; min-width: 40px; min-height: 40px; } /* Simple (per-trip) traveler stepper: keep tap targets and legible count */ .yatra-mobile-booking-field:has(.yatra-mobile-quantity-controls) { min-height: 44px; height: 44px; max-height: none; padding: 0 8px; } .yatra-mobile-booking-field .yatra-mobile-quantity-btn { width: 36px; height: 36px; min-width: 36px; min-height: 36px; } .yatra-mobile-booking-field .yatra-mobile-quantity-input { min-width: 40px; width: 48px; font-size: 15px; font-weight: 700; color:#fff; } } /* Sticky bar traveler dropdown should open UP (bottom sticky UI) */ .yatra-mobile-travelers-section .yatra-booking-field-select, .yatra-mobile-travelers-section .yatra-participants-select { position: relative; z-index: 2; } .yatra-mobile-participants .yatra-booking-quantity-selector, .yatra-mobile-participants.active .yatra-booking-quantity-selector, .yatra-mobile-travelers-section .yatra-booking-quantity-selector { top: auto !important; bottom: 100% !important; margin-top: 0 !important; margin-bottom: 8px !important; z-index: 2000; } /* On mobile sticky bar, show travelers dropdown as a full-width panel */ .yatra-mobile-participants.active .yatra-booking-quantity-selector { position: fixed !important; left: 12px !important; right: 12px !important; width: auto !important; max-width: 560px; margin-left: auto !important; margin-right: auto !important; bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; box-sizing: border-box; } /* Traveler-category dropdown opened from bottom bar: larger controls + readable counts */ .yatra-mobile-sticky-sidebar .yatra-mobile-travelers-section .yatra-participants-display, .yatra-mobile-sticky-sidebar .yatra-mobile-participants-display { font-size: 13px; font-weight: 600; color: #111827; } .yatra-mobile-sticky-sidebar .yatra-booking-quantity-selector .yatra-quantity-row { padding: 12px 10px; gap: 10px; } .yatra-mobile-sticky-sidebar .yatra-booking-quantity-selector .yatra-quantity-btn { width: 40px; height: 40px; min-width: 40px; min-height: 40px; } .yatra-mobile-sticky-sidebar .yatra-booking-quantity-selector .yatra-quantity-row .yatra-quantity-input { width: 48px; min-width: 44px; height: 40px; font-size: 16px; font-weight: 700; color: #0f172a; } /* Extra small mobile screens */ @media (max-width: 360px) { .yatra-mobile-sticky-content { padding: 6px; gap: 4px; } .yatra-mobile-row-1, .yatra-mobile-row-2, .yatra-mobile-row-3 { gap: 4px; } .yatra-mobile-booking-field { padding: 0 4px; min-height: 32px; height: 32px; max-height: 32px; } .yatra-mobile-booking-field:has(.yatra-mobile-quantity-controls) { min-height: 42px; height: 42px; max-height: none; padding: 0 6px; } .yatra-mobile-compact-date, .yatra-mobile-compact-datepicker { padding: 0 4px; gap: 3px; min-height: 32px; height: 32px; max-height: 32px; } .yatra-mobile-check-btn, .yatra-mobile-enquire-btn { min-height: 32px; height: 32px; max-height: 32px; } .yatra-mobile-price-section { padding: 3px 4px; } .yatra-mobile-price-amount { font-size: 12px; } .yatra-mobile-datepicker { font-size: 10px; min-width: 35px; } .yatra-mobile-check-btn, .yatra-mobile-enquire-btn { padding: 0 4px; font-size: 9px; } .yatra-mobile-check-btn { gap: 2px; } .yatra-mobile-enquire-btn { gap: 2px; } .yatra-mobile-trust-badge { display: none; /* Hide trust badge on very small screens */ } .yatra-mobile-close-btn { width: 40px; height: 40px; min-width: 40px; min-height: 40px; } } /* MOBILE FIRST - Show by default, hide on desktop */ .yatra-mobile-sticky-sidebar { position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important; background: #ffffff !important; border-top: 1px solid #e5e7eb !important; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important; z-index: 9999 !important; transform: translateY(0) !important; transition: transform 0.3s ease, opacity 0.3s ease !important; display: block !important; /* MOBILE FIRST - Visible by default */ visibility: visible !important; /* MOBILE FIRST - Visible by default */ opacity: 1 !important; /* MOBILE FIRST - Visible by default */ min-height: 70px !important; /* Allow traveler/date dropdowns to overflow upward */ max-height: none !important; overflow: visible !important; } /* Hide on desktop - 769px and above */ @media only screen and (min-width: 769px) { .yatra-mobile-sticky-sidebar { display: none !important; visibility: hidden !important; opacity: 0 !important; transform: translateY(100%) !important; } } /* Responsive */ @media (max-width: 768px) { .yatra-trip-section#itinerary { padding: 24px 16px; } .yatra-trip-section#itinerary .yatra-trip-section-title { font-size: 1.25rem; flex-wrap: wrap; justify-content: flex-start; } .yatra-section-header-with-actions { flex-direction: column; align-items: stretch; gap: 12px; } .yatra-itinerary-actions { width: 100%; justify-content: flex-start; } .yatra-toggle-all-btn { align-self: flex-start; width: auto; max-width: 100%; justify-content: flex-start; } .yatra-itinerary-day-header { padding: 14px 16px; align-items: flex-start; gap: 12px; } .yatra-day-badge { flex-shrink: 0; } .yatra-day-title { font-size: 16px; line-height: 1.35; text-align: left; min-width: 0; } .yatra-itinerary-day-content { padding: 16px 14px; margin-left: 0; } .yatra-trip-section#itinerary .yatra-itinerary-day, .yatra-itinerary-day { padding-left: 0; margin-left: 0; } .yatra-entries-timeline { padding-left: 22px; } .yatra-entries-timeline::before { left: 6px; } .yatra-entry-timeline-dot { left: -22px; } .yatra-entry-header { flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; } .yatra-entry-time { width: 100%; max-width: 100%; justify-content: flex-start; margin-top: 8px; white-space: normal; flex-wrap: wrap; } .yatra-entry-card { padding: 16px 14px; } .yatra-entry-description { text-align: left; } .yatra-trip-section#itinerary .yatra-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } } /* ============================================ PRICING SECTION ============================================ */ .yatra-trip-pricing { display: grid; gap: 24px; } .yatra-pricing-card { border: 2px solid #e5e7eb; border-radius: 16px; padding: 32px; transition: all 0.3s ease; background: #fff; } .yatra-pricing-card:hover { border-color: var(--yatra-primary, #3b82f6); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15); transform: translateY(-4px); } .yatra-pricing-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid #f3f4f6; } .yatra-pricing-title { font-size: 20px; font-weight: 700; color: #111827; margin: 0; } .yatra-pricing-amount { font-size: 36px; font-weight: 800; color: var(--yatra-primary, #3b82f6); margin: 0; line-height: 1; } .yatra-pricing-currency { font-size: 18px; font-weight: 400; color: #6b7280; } .yatra-pricing-details { list-style: none; padding: 0; margin: 24px 0 0 0; } .yatra-pricing-details li { padding: 12px 0; font-size: 15px; color: #374151; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #f3f4f6; } .yatra-pricing-details li:last-child { border-bottom: none; } .yatra-pricing-details-icon { width: 20px; height: 20px; color: #10b981; flex-shrink: 0; } /* ============================================ INCLUDED/EXCLUDED ============================================ */ .yatra-included-excluded { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; } .yatra-included-section, .yatra-excluded-section { background: #ffffff; border-radius: 8px; padding: 24px; border: 1px solid #e5e7eb; } .yatra-included-section { border-left: 4px solid #10b981; } .yatra-excluded-section { border-left: 4px solid #ef4444; } .yatra-included-section h3, .yatra-excluded-section h3 { font-size: 18px; font-weight: 600; margin: 0 0 16px 0; display: flex; align-items: center; gap: 8px; } .yatra-included-section h3 { color: #047857; } .yatra-excluded-section h3 { color: #dc2626; } .yatra-included-list, .yatra-excluded-list { list-style: none; padding: 0; margin: 0; } .yatra-included-list li, .yatra-excluded-list li { padding: 12px 0; font-size: 15px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #e5e7eb; line-height: 1.5; } .yatra-included-list li:last-child, .yatra-excluded-list li:last-child { border-bottom: none; } .yatra-included-list li { color: #065f46; } .yatra-excluded-list li { color: #991b1b; } .yatra-item-content { flex: 1; } .yatra-item-title { font-weight: 500; margin-bottom: 4px; } .yatra-item-desc { display: block; margin-top: 6px; font-size: 13px; color: #6b7280; line-height: 1.4; } .yatra-included-icon, .yatra-excluded-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; } .yatra-included-icon { color: #059669; } .yatra-excluded-icon { color: #dc2626; } /* Dark mode support */ .dark .yatra-included-section, .dark .yatra-excluded-section { background: #1f2937; border-color: #374151; } .dark .yatra-included-section { border-left-color: #10b981; } .dark .yatra-excluded-section { border-left-color: #ef4444; } .dark .yatra-included-section h3 { color: #34d399; } .dark .yatra-excluded-section h3 { color: #f87171; } .dark .yatra-included-list li, .dark .yatra-excluded-list li { border-bottom-color: #374151; } .dark .yatra-included-list li { color: #6ee7b7; } .dark .yatra-excluded-list li { color: #fca5a5; } .dark .yatra-item-desc { color: #9ca3af; } /* Responsive design */ @media (max-width: 768px) { .yatra-included-excluded { grid-template-columns: 1fr; gap: 20px; } .yatra-included-section, .yatra-excluded-section { padding: 20px; } .yatra-included-section h3, .yatra-excluded-section h3 { font-size: 16px; } .yatra-included-list li, .yatra-excluded-list li { font-size: 14px; } } /* ============================================ GALLERY ============================================ */ .yatra-trip-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; } .yatra-trip-gallery-empty { grid-column: 1 / -1; margin: 0; padding: 1.25rem 1rem; text-align: center; color: #6b7280; font-size: 0.9375rem; background: #f9fafb; border-radius: 8px; border: 1px dashed #e5e7eb; } .yatra-gallery-item { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; cursor: pointer; transition: transform 0.2s ease; background: #f3f4f6; } .yatra-gallery-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); } .yatra-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; } .yatra-gallery-item:hover img { transform: scale(1.1); } /* ============================================ GALLERY MODAL ============================================ */ .yatra-gallery-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; display: none; align-items: center; justify-content: center; } .yatra-gallery-modal.active { display: flex; } .yatra-gallery-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(5px); } .yatra-gallery-modal-content { position: relative; width: 95%; max-width: 1400px; height: 90vh; max-height: 900px; background: #000; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; z-index: 1; } /* Account for WordPress admin bar */ .admin-bar .yatra-gallery-modal-content { margin-top: 32px; max-height: calc(90vh - 32px); } .yatra-gallery-modal-close { position: absolute; top: 20px; right: 20px; z-index: 100; width: 44px; height: 44px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; color: #fff; margin:0; padding:0; } .yatra-gallery-modal-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); } .yatra-gallery-modal-prev, .yatra-gallery-modal-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 100; width: 50px; height: 50px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; color: #fff; margin:0; padding:0; } .yatra-gallery-modal-prev { left: 20px; } .yatra-gallery-modal-next { right: 20px; } .yatra-gallery-modal-prev:hover, .yatra-gallery-modal-next:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.1); } .yatra-gallery-modal-main { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; background: #000; overflow: hidden; } .yatra-gallery-modal-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; opacity: 0; transition: opacity 0.3s ease; } .yatra-gallery-modal-image.loaded { opacity: 1; } .yatra-gallery-modal-loader { position: absolute; color: #fff; font-size: 16px; display: none; } .yatra-gallery-modal-loader.active { display: block; } .yatra-gallery-modal-info { padding: 16px 24px; background: rgba(0,0,0,0.8); border-top: 1px solid rgba(255,255,255,0.1); } .yatra-gallery-modal-counter { color: #fff; font-size: 16px; font-weight: 600; text-align: center; } .yatra-gallery-modal-thumbnails { padding: 16px; background: rgba(0,0,0,0.9); border-top: 1px solid rgba(255,255,255,0.1); max-height: 120px; overflow-x: auto; overflow-y: hidden; } .yatra-gallery-thumbnails-container { display: flex; gap: 12px; justify-content: center; align-items: center; padding: 0 20px; } .yatra-gallery-thumbnail { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: 0.6; transition: all 0.3s ease; border: 2px solid transparent; flex-shrink: 0; } .yatra-gallery-thumbnail:hover { opacity: 1; transform: scale(1.1); } .yatra-gallery-thumbnail.active { opacity: 1; border-color: var(--yatra-primary, #3b82f6); } .yatra-gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; } /* ============================================ MAP ============================================ */ .yatra-trip-map { width: 100%; height: 450px; border-radius: 12px; overflow: hidden; margin-top: 32px; background: #e5e7eb; display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 16px; border: 1px solid #d1d5db; position: relative; } .yatra-map-placeholder { background: linear-gradient(135deg, #f8fafc, #e2e8f0); border: 2px dashed #cbd5e1; } .yatra-map-placeholder p { margin: 0; padding: 20px; text-align: center; color: #64748b; font-weight: 500; } /* OpenStreetMap specific styles */ #yatra-openstreet-map { border-radius: 12px !important; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .yatra-custom-marker { z-index: 1000 !important; } .yatra-marker-bounce { animation: bounce 2s infinite; } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(-45deg); } 40% { transform: translateY(-10px) rotate(-45deg); } 60% { transform: translateY(-5px) rotate(-45deg); } } /* Dark mode support for map */ @media (prefers-color-scheme: dark) { .yatra-trip-map { background: #1e293b; border-color: #334155; } .yatra-map-placeholder { background: linear-gradient(135deg, #1e293b, #334155); border-color: #475569; } .yatra-map-placeholder p { color: #94a3b8; } } /* ============================================ FAQ ============================================ */ .yatra-trip-faq { list-style: none; padding: 0; margin: 0; } .yatra-faq-item { border-bottom: 1px solid #e5e7eb; padding: 20px 0; } .yatra-faq-item:first-child { padding-top: 0; } .yatra-faq-item:last-child { border-bottom: none; padding-bottom: 0; } .yatra-faq-question { font-size: 18px; font-weight: 600; color: #111827; margin: 0 0 12px 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: color 0.2s ease; } .yatra-faq-question:hover { color: #374151; } .yatra-faq-toggle { width: 20px; height: 20px; color: #6b7280; flex-shrink: 0; transition: transform 0.2s ease; } .yatra-faq-item.active .yatra-faq-toggle { transform: rotate(45deg); } .yatra-faq-answer { font-size: 16px; line-height: 1.6; color: #4b5563; max-height: 0; overflow: hidden; transition: max-height 0.2s ease, margin 0.2s ease, padding 0.2s ease; margin: 0; padding: 0; } .yatra-faq-item.active .yatra-faq-answer { max-height: 1000px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f3f4f6; } /* ============================================ SIDEBAR - BOOKING CARD ============================================ */ .yatra-trip-sidebar { position: sticky; top: max(12px, env(safe-area-inset-top, 0px)); height: fit-content; max-width: 100%; align-self: flex-start; transition: top 0.3s ease; } /* Account for WordPress admin bar */ .admin-bar .yatra-trip-sidebar { top: 32px; /* Admin bar height */ } @media screen and (max-width: 782px) { .admin-bar .yatra-trip-sidebar { top: 46px; /* Mobile admin bar height */ } } .yatra-booking-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; position: relative; } .yatra-booking-price { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #e5e7eb; } .yatra-booking-card .yatra-group-discount-badge-minimal { margin-bottom: 10px; background: #f0f9ff; border-color: rgba(2, 132, 199, 0.22); } .yatra-booking-price-from { margin-bottom: 8px; } .yatra-booking-price-from-text { font-size: 14px; color: #6b7280; font-weight: 500; } .yatra-booking-price-original { font-size: 14px; color: rgba(107, 114, 128, 0.85); text-decoration: line-through; font-weight: 500; text-decoration-thickness: 1px; text-decoration-color: rgba(107, 114, 128, 0.65); } .yatra-booking-price-main { display: flex; align-items: baseline; gap: 10px; /* Keep badge inside the card: allow wrapping only when needed */ flex-wrap: wrap; white-space: normal; max-width: 100%; } .yatra-booking-price-amount { font-size: 28px; font-weight: 700; color: #ef4444; line-height: 1.05; letter-spacing: -0.01em; } .yatra-booking-price-label { font-size: 14px; color: #6b7280; font-weight: 500; line-height: 1.2; white-space: nowrap; max-width: 100%; } /* Allow wrapping on very small screens */ @media (max-width: 480px) { .yatra-booking-price-main { flex-wrap: wrap; white-space: normal; } } /* Booking Discount Badge */ .yatra-booking-discount-badge { display: inline-block; padding: 4px 10px; margin-bottom: 8px; background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; font-size: 12px; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; } /* Contact for pricing styling */ .yatra-contact-pricing { font-size: 18px !important; color: #ef4444 !important; } /* Group Discount Badge - Minimal */ .yatra-group-discount-badge-minimal { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); color: #0369a1; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; border: 1px solid #bae6fd; position: relative; z-index: 1; } .yatra-group-discount-badge-minimal svg { flex-shrink: 0; } /* Tooltip Styles */ .yatra-has-tooltip { cursor: help; } .yatra-has-tooltip .yatra-info-icon { opacity: 0.6; transition: opacity 0.2s ease; } .yatra-has-tooltip:hover .yatra-info-icon { opacity: 1; } .yatra-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); padding: 0; min-width: 220px; z-index: 999999; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; pointer-events: none; } .yatra-has-tooltip:hover .yatra-tooltip { opacity: 1; visibility: visible; pointer-events: auto; z-index: 999999; } .yatra-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #ffffff; } .yatra-tooltip-header { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; border-radius: 8px 8px 0 0; font-size: 13px; color: #111827; } .yatra-tooltip-content { padding: 8px; } .yatra-discount-tier { display: flex; justify-content: space-between; align-items: center; padding: 8px 6px; border-radius: 4px; transition: background-color 0.15s ease; } .yatra-discount-tier:hover { background: #f3f4f6; } .yatra-tier-size { font-size: 12px; color: #4b5563; font-weight: 500; } .yatra-tier-discount { font-size: 12px; font-weight: 600; color: #059669; background: #ecfdf5; padding: 2px 8px; border-radius: 4px; } /* Group discount popover (booking sidebar + mobile sticky) — replaces full-width section */ .yatra-group-discount-popover { position: relative; display: block; width: 100%; margin-bottom: 12px; z-index: 5; } .yatra-group-discount-popover--mobile { margin-bottom: 8px; } .yatra-mobile-group-discount-popover-wrap { width: 100%; padding: 0 2px 4px; } button[type="button"].yatra-group-discount-popover__trigger { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: flex-start; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(2, 132, 199, 0.28); background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); color: #0369a1; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); } .yatra-group-discount-popover__trigger:hover, .yatra-group-discount-popover__trigger:focus-visible { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25); } .yatra-group-discount-popover__trigger-icon { display: flex; color: #0284c7; } .yatra-group-discount-popover__trigger-text { flex: 1; min-width: 0; line-height: 1.25; } .yatra-group-discount-popover__chev { display: flex; color: #0369a1; opacity: 0.75; transition: transform 0.2s ease; } .yatra-group-discount-popover.is-open .yatra-group-discount-popover__chev { transform: rotate(180deg); } .yatra-group-discount-popover__panel { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); min-width: 0; max-width: min(340px, calc(100vw - 32px)); margin-left: auto; margin-right: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 14px 40px -12px rgba(15, 23, 42, 0.22), 0 6px 16px -8px rgba(15, 23, 42, 0.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease; pointer-events: none; z-index: 100020; } .yatra-group-discount-popover--mobile .yatra-group-discount-popover__panel { left: 0; right: 0; max-width: none; } .yatra-group-discount-popover:hover .yatra-group-discount-popover__panel, .yatra-group-discount-popover:focus-within .yatra-group-discount-popover__panel, .yatra-group-discount-popover.is-open .yatra-group-discount-popover__panel { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; } .yatra-group-discount-popover__panel-inner { padding: 12px 14px 14px; max-height: min(420px, 55vh); overflow-y: auto; -webkit-overflow-scrolling: touch; } .yatra-group-discount-popover__head strong { display: block; font-size: 14px; color: #0f172a; margin-bottom: 4px; } .yatra-group-discount-popover__sub { margin: 0 0 10px; font-size: 12px; line-height: 1.45; color: #64748b; } .yatra-group-discount-popover__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .yatra-group-discount-popover__tier { border: 1px solid #f1f5f9; border-radius: 10px; padding: 10px 10px 8px; background: #fafafa; } .yatra-group-discount-popover__tier-main { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .yatra-group-discount-popover__range { font-size: 13px; font-weight: 600; color: #334155; } .yatra-group-discount-popover__value { font-size: 13px; font-weight: 700; color: #059669; background: #ecfdf5; padding: 4px 10px; border-radius: 999px; white-space: nowrap; } .yatra-group-discount-popover__cats { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed #e2e8f0; font-size: 12px; color: #475569; } .yatra-group-discount-popover__cats li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; } .yatra-group-discount-popover__cat-name { font-weight: 500; } .yatra-group-discount-popover__cat-val { font-weight: 600; color: #047857; } .yatra-group-discount-popover__note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #f1f5f9; font-size: 11px; line-height: 1.45; color: #64748b; } .yatra-group-discount-popover__note svg { flex-shrink: 0; margin-top: 1px; color: #94a3b8; } /* Applied Group Discount Display */ .yatra-applied-group-discount { margin-top: 12px; padding: 10px 12px; background: #ecfdf5; border: 1px solid #10b981; border-radius: 8px; display: none; } .yatra-applied-group-discount.active { display: block; } .yatra-applied-group-discount-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .yatra-applied-group-discount-icon { color: #10b981; } .yatra-applied-group-discount-title { font-size: 13px; font-weight: 600; color: #047857; } .yatra-applied-group-discount-amount { font-size: 14px; font-weight: 700; color: #059669; margin-left: auto; } .yatra-applied-group-discount-desc { font-size: 12px; color: #059669; } /* Pricing Mode Labels */ .yatra-quantity-price-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; } .yatra-pricing-mode-label { font-size: 10px; font-weight: 500; padding: 2px 6px; border-radius: 4px; white-space: nowrap; } .yatra-pricing-mode-group { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; } .yatra-booking-form { display: flex; flex-direction: column; gap: 16px; } /* Participants Select */ .yatra-participants-select { position: relative; } .yatra-participants-display { flex: 1; padding: 14px 12px 14px 0; font-size: 15px; font-weight: 500; color: #111827; cursor: pointer; user-select: none; height: 100%; display: flex; align-items: center; pointer-events: auto; position: relative; z-index: 1; transition: color 0.2s ease; } .yatra-participants-select:hover .yatra-participants-display { color: var(--yatra-primary, #3b82f6); } /* Quantity Selector - Hidden by default */ .yatra-booking-quantity-selector { position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05); z-index: 1000; display: none; max-height: 400px; overflow-y: auto; overflow-x: hidden; } .yatra-participants-select.active .yatra-booking-quantity-selector { display: block; animation: yatra-trip-dropdown-slide 0.2s ease-out; } @keyframes yatra-trip-dropdown-slide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } /* Enquiry form quantity selector */ .yatra-enquiry-participants.active .yatra-booking-quantity-selector { display: block; } .yatra-quantity-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px; border-radius: 12px; transition: all 0.2s ease; gap: 16px; margin-bottom: 8px; } .yatra-quantity-row:hover { background-color: #f8fafc; transform: translateX(2px); } .yatra-quantity-row:not(:last-child) { border-bottom: none; } .yatra-quantity-label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; } .yatra-quantity-title { font-size: 15px; font-weight: 600; color: #0f172a; line-height: 1.3; } .yatra-quantity-subtitle { font-size: 12px; color: #64748b; line-height: 1.4; } .yatra-quantity-price { display: block; font-size: 14px; font-weight: 700; color: #059669; margin-top: 2px; white-space: nowrap; } .yatra-booking-price-label-top { display: block; font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; } /* Simple Travelers Input (Regular Pricing) */ .yatra-booking-field-group { margin-bottom: 16px; } .yatra-booking-field-label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 8px; } .yatra-booking-travelers-simple { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; flex-wrap: wrap; } /* Quantity Controls Inline - Modern Clean Design */ .yatra-quantity-controls-inline { display: flex; align-items: center; gap: 2px; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .yatra-quantity-controls-inline:hover { border-color: #cbd5e1; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); background: #ffffff; } .yatra-quantity-controls-inline:focus-within { border-color: var(--yatra-primary, #3b82f6); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .yatra-quantity-controls-inline .yatra-quantity-btn { width: 32px; height: 32px; border-radius: 10px; border: none; background: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); color: #475569; padding: 0; flex-shrink: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); position: relative; z-index: 1; } .yatra-quantity-controls-inline .yatra-quantity-btn:hover:not(:disabled) { background: var(--yatra-primary, #3b82f6); color: #ffffff; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(59, 130, 246, 0.25); z-index: 2; } .yatra-quantity-controls-inline .yatra-quantity-btn:active:not(:disabled) { background: var(--yatra-primary-dark, #2563eb); color: #ffffff; transform: translateY(0); box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2); } .yatra-quantity-controls-inline .yatra-quantity-btn:disabled { opacity: 0.4; cursor: not-allowed; color: #cbd5e1; background: #f1f5f9; box-shadow: none; } .yatra-quantity-controls-inline .yatra-quantity-btn svg { width: 16px; height: 16px; stroke-width: 2.5; transition: transform 0.2s ease; pointer-events: none; } .yatra-quantity-controls-inline .yatra-quantity-btn:hover:not(:disabled) svg { transform: scale(1.1); } .yatra-quantity-input-simple { width: 50px; text-align: center; font-size: 15px; font-weight: 700; color: #0f172a; border: none; background: transparent; appearance: textfield; -moz-appearance: textfield; padding: 0 4px; border-radius: 8px; transition: all 0.2s ease; } .yatra-quantity-input-simple::-webkit-outer-spin-button, .yatra-quantity-input-simple::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .yatra-quantity-input-simple:focus { outline: none; background: #ffffff; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1); } .yatra-travelers-range, .yatra-travelers-available { font-size: 12px; color: #6b7280; margin-left: auto; } /* Availability Info */ .yatra-availability-info { padding: 8px 12px; background: #ecfdf5; border-radius: 8px; margin-bottom: 16px; text-align: center; } .yatra-availability-count { font-size: 13px; font-weight: 500; color: #059669; } /* Flexible Booking Info */ .yatra-flexible-booking-info { background: #f3f8ff; border-left: 3px solid rgba(59, 130, 246, 0.65); } .yatra-flexible-booking-info .yatra-availability-count { color: var(--yatra-primary-darker, #1e40af); display: block; margin-bottom: 2px; font-weight: 600; } .yatra-availability-note { display: block; font-size: 12px; color: #6b7280; font-weight: 400; } /* Departure Dates List */ .yatra-departure-dates-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; padding-right: 4px; } .yatra-departure-option { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px solid #e5e7eb; border-radius: 10px; cursor: pointer; transition: all 0.2s ease; background: #fff; } .yatra-departure-option:hover { border-color: var(--yatra-primary, #3b82f6); background: #f8fafc; } .yatra-departure-option.selected { border-color: var(--yatra-primary, #3b82f6); background: #eff6ff; } .yatra-departure-option.limited { border-color: #f59e0b; } .yatra-departure-option.limited.selected { background: #fffbeb; } .yatra-departure-option input[type="radio"] { display: none; } .yatra-departure-info { flex: 1; } .yatra-departure-date { display: flex; flex-direction: column; gap: 2px; } .yatra-departure-day { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; } .yatra-departure-full { font-size: 14px; font-weight: 600; color: #111827; } .yatra-return-date { font-size: 12px; color: #6b7280; } .yatra-departure-meta { margin-top: 4px; } .yatra-departure-seats { font-size: 11px; color: #059669; } .yatra-departure-seats.limited { color: #f59e0b; font-weight: 500; } .yatra-departure-price { text-align: right; } .yatra-departure-original-price { font-size: 12px; color: #9ca3af; text-decoration: line-through; display: block; } .yatra-departure-current-price { font-size: 16px; font-weight: 700; color: #059669; } .yatra-departure-check { width: 24px; height: 24px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; } .yatra-departure-check svg { color: transparent; transition: color 0.2s ease; } .yatra-departure-option.selected .yatra-departure-check { background: var(--yatra-primary, #3b82f6); } .yatra-departure-option.selected .yatra-departure-check svg { color: #fff; } /* Scrollbar styling for departure list */ .yatra-departure-dates-list::-webkit-scrollbar { width: 4px; } .yatra-departure-dates-list::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; } .yatra-departure-dates-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; } .yatra-departure-dates-list::-webkit-scrollbar-thumb:hover { background: #94a3b8; } /* Quantity Controls - Modern Clean Design */ .yatra-quantity-controls { display: inline-flex; align-items: center; gap: 2px; background: #f8fafc; padding: 3px; border-radius: 12px; border: 1.5px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .yatra-quantity-controls:hover { border-color: #cbd5e1; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); background: #ffffff; } .yatra-quantity-controls:focus-within { border-color: var(--yatra-primary, #3b82f6); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .yatra-quantity-btn { width: 32px; height: 32px; border-radius: 10px; border: none; background: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); color: #475569; padding: 0; flex-shrink: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); position: relative; z-index: 1; } .yatra-quantity-row .yatra-quantity-btn:hover:not(:disabled) { background: var(--yatra-primary, #3b82f6); color: #ffffff; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(59, 130, 246, 0.25); z-index: 2; } .yatra-quantity-btn:active:not(:disabled) { background: var(--yatra-primary-dark, #2563eb); color: #ffffff; transform: translateY(0); box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2); } .yatra-quantity-btn:disabled { opacity: 0.4; cursor: not-allowed; color: #cbd5e1; background: #f1f5f9; box-shadow: none; } .yatra-quantity-btn svg { width: 16px; height: 16px; stroke-width: 2.5; transition: transform 0.2s ease; pointer-events: none; } .yatra-quantity-btn:hover:not(:disabled) svg { transform: scale(1.1); } .yatra-quantity-row .yatra-quantity-input { width: 48px; height: 32px; text-align: center; border: none; background: transparent; font-size: 15px; font-weight: 500; color: #0f172a; padding: 0 6px; cursor: default; min-width: 48px; border-radius: 8px; appearance: textfield; -moz-appearance: textfield; transition: all 0.2s ease; line-height: 32px; } .yatra-quantity-input::-webkit-outer-spin-button, .yatra-quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .yatra-quantity-input:focus { outline: none; background: #ffffff; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1); } .yatra-quantity-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e7eb; font-size: 12px; color: #6b7280; line-height: 1.4; } .yatra-booking-field-select { position: relative; display: flex; align-items: center; width: 100%; border: 1px solid rgba(209, 213, 219, 0.9); border-radius: 8px; background: #fff; transition: all 0.3s ease; min-height: 46px; height: 46px; cursor: pointer; } .yatra-booking-field-select input[readonly] { cursor: pointer; } .yatra-booking-field-select:focus-within { border-color: var(--yatra-primary, #3b82f6); } .yatra-enquiry-field .yatra-booking-field-select:hover:not(:focus-within) { border-color: #cbd5e1; border-color: color-mix(in srgb, var(--yatra-primary, #3b82f6) 32%, #d1d5db); } .yatra-booking-field-icon { padding: 0 12px; display: flex; align-items: center; color: #6b7280; flex-shrink: 0; height: 100%; } .yatra-booking-field-icon svg { width: 18px; height: 18px; } .yatra-booking-select { flex: 1; padding: 12px 12px 12px 0; border: none; background: transparent; font-size: 15px; color: #111827; font-family: inherit; appearance: none; cursor: pointer; height: 100%; display: flex; align-items: center; } .yatra-booking-select:focus { outline: none; } .yatra-booking-select option { padding: 8px; } /* Pro: date-as-dropdown — keep the /