PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.5
Yatra – Travel Booking & Tour Operator Software v3.0.5
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
yatra / assets / css / shortcodes / trip-search-shortcode.css

trip-search-shortcode.css in Yatra – Travel Booking & Tour Operator Software 3.0.5, at assets/css/shortcodes/trip-search-shortcode.css

747 lines 24.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Yatra trip search bar — full reset + layout (shortcode only).
3 * All rules scoped under body .yatra-trip-search-shortcode to beat typical theme CSS.
4 * Use with: [yatra_search] → root .yatra-trip-search-shortcode
5 *
6 * @package Yatra
7 */
8
9 /* -------------------------------------------------------------------------
10 Scope: high specificity (body + block class). box-sizing for predictable layout.
11 ------------------------------------------------------------------------- */
12 body .yatra-trip-search-shortcode {
13 --yatra-ts-accent: var(--yatra-primary-dark, #2563eb);
14 --yatra-ts-accent-hover: var(--yatra-primary-darker, #1d4ed8);
15 --yatra-ts-surface: #ffffff;
16 --yatra-ts-text: #0f172a;
17 --yatra-ts-muted: #64748b;
18 --yatra-ts-border: #e2e8f0;
19 --yatra-ts-radius: 14px;
20 --yatra-ts-row: 52px;
21 --yatra-ts-z-dropdown: 10050;
22
23 display: block;
24 width: 100%;
25 max-width: 100%;
26 position: relative;
27 z-index: 1000;
28 isolation: isolate;
29 font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
30 line-height: 1.4;
31 color: var(--yatra-ts-text);
32 -webkit-font-smoothing: antialiased;
33 }
34
35 body .yatra-trip-search-shortcode *,
36 body .yatra-trip-search-shortcode *::before,
37 body .yatra-trip-search-shortcode *::after {
38 box-sizing: border-box !important;
39 }
40
41 body .yatra-trip-search-shortcode button,
42 body .yatra-trip-search-shortcode input,
43 body .yatra-trip-search-shortcode select {
44 font-family: inherit !important;
45 font-size: inherit;
46 line-height: inherit;
47 }
48
49 /* -------------------------------------------------------------------------
50 Horizontal strip (background behind bar)
51 ------------------------------------------------------------------------- */
52 body .yatra-trip-search-shortcode .yatra-horizontal-search {
53 padding:0;
54 margin: 0 !important;
55 position: relative;
56 z-index: 1;
57 }
58
59 body .yatra-trip-listing-search-wrap .yatra-trip-search-shortcode .yatra-horizontal-search {
60 padding-top: 0 !important;
61 padding-bottom: 28px !important;
62 background: transparent !important;
63 }
64
65 body .yatra-trip-search-shortcode .yatra-horizontal-search-container {
66 width: 100% !important;
67 max-width: var(--yatra-container-max-width, 1200px) !important;
68 margin-left: auto !important;
69 margin-right: auto !important;
70 padding-left: var(--yatra-container-padding, 20px) !important;
71 padding-right: var(--yatra-container-padding, 20px) !important;
72 position: relative;
73 z-index: 2;
74 }
75
76 /* -------------------------------------------------------------------------
77 Main bar
78 ------------------------------------------------------------------------- */
79 body .yatra-trip-search-shortcode .yatra-search-bar {
80 display: flex !important;
81 flex-direction: row;
82 align-items: stretch !important;
83 flex-wrap: nowrap;
84 gap: 0 !important;
85 width: 100% !important;
86 margin: 0 !important;
87 padding: 5px 6px 5px 8px !important;
88 background: var(--yatra-ts-surface) !important;
89 border: 1px solid var(--yatra-ts-border) !important;
90 border-radius: var(--yatra-ts-radius) !important;
91 box-shadow:
92 0 1px 2px rgba(15, 23, 42, 0.04),
93 0 8px 24px rgba(15, 23, 42, 0.06) !important;
94 transition: box-shadow 0.2s ease, border-color 0.2s ease;
95 }
96
97 body .yatra-trip-search-shortcode .yatra-search-bar:hover {
98 border-color: #cbd5e1 !important;
99 box-shadow:
100 0 1px 2px rgba(15, 23, 42, 0.05),
101 0 12px 32px rgba(15, 23, 42, 0.08) !important;
102 }
103
104 body .yatra-trip-search-shortcode .yatra-search-divider {
105 width: 1px !important;
106 flex-shrink: 0 !important;
107 align-self: center !important;
108 height: 28px !important;
109 margin: 0 2px !important;
110 padding: 0 !important;
111 border: none !important;
112 background: rgba(148, 163, 184, 0.45) !important;
113 }
114
115 /* -------------------------------------------------------------------------
116 Keyword column
117 ------------------------------------------------------------------------- */
118 body .yatra-trip-search-shortcode .yatra-search-keyword-segment {
119 display: flex !important;
120 flex: 2.5;
121 align-items: stretch !important;
122 min-width: 260px;
123 max-width: 480px;
124 margin: 0 !important;
125 padding: 0 !important;
126 }
127
128 body .yatra-trip-search-shortcode .yatra-search-keyword-inner {
129 display: flex !important;
130 flex-direction: row;
131 align-items: center !important;
132 gap: 10px !important;
133 width: 100% !important;
134 min-height: var(--yatra-ts-row) !important;
135 padding: 8px 12px !important;
136 margin: 0 !important;
137 border: 1px solid transparent !important;
138 border-radius: calc(var(--yatra-ts-radius) - 6px) !important;
139 background: transparent !important;
140 box-shadow: none !important;
141 transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
142 }
143
144 body .yatra-trip-search-shortcode .yatra-search-keyword-inner:hover {
145 background: #f8fafc !important;
146 }
147
148 body .yatra-trip-search-shortcode .yatra-search-keyword-inner:focus-within {
149 background: #fafafa !important;
150 border-color: rgba(37, 99, 235, 0.28) !important;
151 box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
152 outline: none !important;
153 }
154
155 body .yatra-trip-search-shortcode .yatra-search-keyword-leading {
156 display: flex !important;
157 flex-shrink: 0 !important;
158 align-items: center !important;
159 justify-content: center !important;
160 width: 20px !important;
161 height: 20px !important;
162 margin: 0 !important;
163 padding: 0 !important;
164 border: none !important;
165 background: transparent !important;
166 color: #64748b !important;
167 }
168
169 body .yatra-trip-search-shortcode .yatra-search-keyword-leading svg {
170 display: block !important;
171 width: 20px !important;
172 height: 20px !important;
173 max-width: none !important;
174 fill: none !important;
175 stroke: currentColor !important;
176 vertical-align: middle !important;
177 }
178
179 body .yatra-trip-search-shortcode .yatra-search-keyword-inner:focus-within .yatra-search-keyword-leading {
180 color: var(--yatra-ts-accent) !important;
181 }
182
183 body .yatra-trip-search-shortcode .yatra-search-keyword-stack {
184 display: flex !important;
185 flex-direction: column !important;
186 align-items: flex-start !important;
187 justify-content: center !important;
188 gap: 4px !important;
189 flex: 1 1 auto !important;
190 min-width: 0 !important;
191 margin: 0 !important;
192 padding: 0 !important;
193 }
194
195 body .yatra-trip-search-shortcode .yatra-search-keyword-stack .yatra-dropdown-label {
196 margin: 0 !important;
197 padding: 0 !important;
198 }
199
200 body .yatra-trip-search-shortcode .yatra-search-keyword-input {
201 display: block !important;
202 width: 100% !important;
203 min-width: 0 !important;
204 margin: 0 !important;
205 padding: 0 !important;
206 border: none !important;
207 border-radius: 0 !important;
208 background: transparent !important;
209 background-color: transparent !important;
210 box-shadow: none !important;
211 font-size: 15px !important;
212 font-weight: 600 !important;
213 line-height: 1.3 !important;
214 color: var(--yatra-ts-text) !important;
215 -webkit-appearance: none !important;
216 appearance: none !important;
217 }
218
219 body .yatra-trip-search-shortcode .yatra-search-keyword-input::placeholder {
220 color: #94a3b8 !important;
221 font-weight: 500 !important;
222 opacity: 1 !important;
223 }
224
225 body .yatra-trip-search-shortcode .yatra-search-keyword-input:focus {
226 outline: none !important;
227 box-shadow: none !important;
228 }
229
230 body .yatra-trip-search-shortcode .yatra-search-keyword-input::-webkit-search-decoration,
231 body .yatra-trip-search-shortcode .yatra-search-keyword-input::-webkit-search-cancel-button {
232 -webkit-appearance: none !important;
233 appearance: none !important;
234 }
235
236 /* -------------------------------------------------------------------------
237 Dropdown columns
238 ------------------------------------------------------------------------- */
239 body .yatra-trip-search-shortcode .yatra-search-dropdown {
240 position: relative !important;
241 flex: 1 1 auto !important;
242 min-width: 180px !important;
243 margin: 0 !important;
244 padding: 0 !important;
245 isolation: isolate;
246 }
247
248 body .yatra-trip-search-shortcode .yatra-dropdown-trigger {
249 display: flex !important;
250 flex-direction: row !important;
251 align-items: center !important;
252 gap: 10px !important;
253 width: 100% !important;
254 min-height: var(--yatra-ts-row) !important;
255 margin: 0 !important;
256 padding: 8px 12px !important;
257 border: 1px solid transparent !important;
258 border-radius: calc(var(--yatra-ts-radius) - 6px) !important;
259 background: transparent !important;
260 box-shadow: none !important;
261 cursor: pointer !important;
262 text-align: left !important;
263 overflow: visible !important;
264 transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
265 }
266
267 body .yatra-trip-search-shortcode .yatra-dropdown-trigger:hover {
268 background: #f8fafc !important;
269 }
270
271 body .yatra-trip-search-shortcode .yatra-dropdown-trigger:active {
272 background: #f1f5f9 !important;
273 }
274
275 body .yatra-trip-search-shortcode .yatra-dropdown-trigger:focus {
276 outline: none !important;
277 border-color: rgba(37, 99, 235, 0.3) !important;
278 box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
279 }
280
281 body .yatra-trip-search-shortcode .yatra-dropdown-trigger svg:first-of-type {
282 flex-shrink: 0 !important;
283 display: block !important;
284 width: 20px !important;
285 height: 20px !important;
286 min-width: 20px !important;
287 min-height: 20px !important;
288 margin: 0 !important;
289 padding: 0 !important;
290 color: #64748b !important;
291 fill: none !important;
292 stroke: currentColor !important;
293 }
294
295 body .yatra-trip-search-shortcode .yatra-dropdown-trigger:hover svg:first-of-type {
296 color: #475569 !important;
297 }
298
299 body .yatra-trip-search-shortcode .yatra-dropdown-content {
300 display: flex !important;
301 flex-direction: column !important;
302 align-items: flex-start !important;
303 gap: 4px !important;
304 flex: 1 1 auto !important;
305 min-width: 0 !important;
306 margin: 0 !important;
307 padding: 0 !important;
308 }
309
310 body .yatra-trip-search-shortcode .yatra-dropdown-label {
311 display: block !important;
312 margin: 0 !important;
313 padding: 0 !important;
314 font-size: 10px !important;
315 font-weight: 600 !important;
316 line-height: 1.2 !important;
317 letter-spacing: 0.06em !important;
318 text-transform: uppercase !important;
319 color: var(--yatra-ts-muted) !important;
320 }
321
322 body .yatra-trip-search-shortcode .yatra-dropdown-value {
323 display: block !important;
324 margin: 0 !important;
325 padding: 0 !important;
326 font-size: 15px !important;
327 font-weight: 600 !important;
328 line-height: 1.3 !important;
329 color: #111827 !important;
330 max-width: 100%;
331 overflow: hidden;
332 text-overflow: ellipsis;
333 white-space: nowrap;
334 }
335
336 body .yatra-trip-search-shortcode .yatra-dropdown-arrow {
337 flex-shrink: 0 !important;
338 display: block !important;
339 width: 16px !important;
340 height: 16px !important;
341 min-width: 16px !important;
342 min-height: 16px !important;
343 margin: 0 0 0 auto !important;
344 padding: 0 !important;
345 color: #9ca3af !important;
346 fill: none !important;
347 stroke: currentColor !important;
348 transition: transform 0.15s ease;
349 }
350
351 body .yatra-trip-search-shortcode .yatra-search-dropdown.open .yatra-dropdown-arrow {
352 transform: rotate(180deg);
353 }
354
355 /* -------------------------------------------------------------------------
356 Dropdown menus & options
357 ------------------------------------------------------------------------- */
358 body .yatra-trip-search-shortcode .yatra-dropdown-search-wrap {
359 flex-shrink: 0 !important;
360 margin: 0 !important;
361 padding: 0 !important;
362 }
363
364 body .yatra-trip-search-shortcode .yatra-dropdown-filter-input {
365 width: 100% !important;
366 margin: 0 !important;
367 padding: 8px 10px !important;
368 font-size: 13px !important;
369 font-weight: 500 !important;
370 line-height: 1.35 !important;
371 color: #111827 !important;
372 border: 1px solid #e2e8f0 !important;
373 border-radius: 6px !important;
374 background: #f8fafc !important;
375 box-shadow: none !important;
376 -webkit-appearance: none !important;
377 appearance: none !important;
378 }
379
380 body .yatra-trip-search-shortcode .yatra-dropdown-filter-input::placeholder {
381 color: #9ca3af !important;
382 opacity: 1 !important;
383 }
384
385 body .yatra-trip-search-shortcode .yatra-dropdown-filter-input:focus {
386 outline: none !important;
387 border-color: var(--yatra-primary, #3b82f6) !important;
388 background: #ffffff !important;
389 box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
390 }
391
392 body .yatra-trip-search-shortcode .yatra-dropdown-options {
393 flex: 1 1 auto !important;
394 min-height: 0 !important;
395 max-height: 280px !important;
396 overflow-y: auto !important;
397 overflow-x: hidden !important;
398 margin: 0 !important;
399 padding: 2px 0 !important;
400 list-style: none !important;
401 }
402
403 body .yatra-trip-search-shortcode .yatra-dropdown-option--hidden {
404 display: none !important;
405 }
406
407 body .yatra-trip-search-shortcode .yatra-dropdown-menu {
408 position: absolute !important;
409 top: calc(100% + 4px) !important;
410 left: 0 !important;
411 right: auto !important;
412 min-width: 260px !important;
413 margin: 0 !important;
414 padding: 6px !important;
415 background: #ffffff !important;
416 border: 1px solid #e2e8f0 !important;
417 border-radius: 10px !important;
418 box-shadow:
419 0 10px 40px rgba(15, 23, 42, 0.1),
420 0 4px 12px rgba(15, 23, 42, 0.06) !important;
421 z-index: var(--yatra-ts-z-dropdown) !important;
422 opacity: 0;
423 visibility: hidden;
424 transform: translateY(-8px) scale(0.95);
425 transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
426 display: none !important;
427 }
428
429 body .yatra-trip-search-shortcode .yatra-search-dropdown.open .yatra-dropdown-menu,
430 body .yatra-trip-search-shortcode .yatra-dropdown-menu.show {
431 display: block !important;
432 opacity: 1 !important;
433 visibility: visible !important;
434 transform: translateY(0) scale(1) !important;
435 }
436
437 body .yatra-trip-search-shortcode .yatra-search-dropdown.open .yatra-dropdown-menu.yatra-dropdown-menu--filterable,
438 body .yatra-trip-search-shortcode .yatra-dropdown-menu.yatra-dropdown-menu--filterable.show {
439 display: flex !important;
440 flex-direction: column !important;
441 gap: 6px !important;
442 padding: 8px !important;
443 max-height: min(380px, 70vh) !important;
444 }
445
446 body .yatra-trip-search-shortcode .yatra-dropdown-option {
447 margin: 0 !important;
448 padding: 8px 10px !important;
449 font-size: 13px !important;
450 font-weight: 500 !important;
451 line-height: 1.35 !important;
452 color: #374151 !important;
453 border-radius: 6px !important;
454 cursor: pointer !important;
455 display: flex !important;
456 align-items: center !important;
457 position: relative !important;
458 background: transparent !important;
459 border: none !important;
460 text-align: left !important;
461 width: 100% !important;
462 box-shadow: none !important;
463 }
464
465 body .yatra-trip-search-shortcode .yatra-dropdown-option:hover {
466 background: #f1f5f9 !important;
467 color: #0f172a !important;
468 }
469
470 body .yatra-trip-search-shortcode .yatra-dropdown-option.selected {
471 background: #eff6ff !important;
472 color: var(--yatra-primary-darker, #1d4ed8) !important;
473 font-weight: 600 !important;
474 padding-right: 26px !important;
475 }
476
477 body .yatra-trip-search-shortcode .yatra-dropdown-option.selected::before {
478 content: '' !important;
479 position: absolute !important;
480 right: 8px !important;
481 top: 50% !important;
482 transform: translateY(-50%) !important;
483 width: 16px !important;
484 height: 16px !important;
485 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
486 background-repeat: no-repeat !important;
487 background-position: center !important;
488 background-size: 16px 16px !important;
489 }
490
491 /* -------------------------------------------------------------------------
492 Duration panel
493 ------------------------------------------------------------------------- */
494 body .yatra-trip-search-shortcode .yatra-duration-menu {
495 min-width: 260px !important;
496 padding: 8px !important;
497 }
498
499 body .yatra-trip-search-shortcode .yatra-duration-slider-wrapper {
500 display: flex !important;
501 flex-direction: column !important;
502 gap: 10px !important;
503 }
504
505 body .yatra-trip-search-shortcode .yatra-duration-header {
506 text-align: center !important;
507 margin: 0 !important;
508 }
509
510 body .yatra-trip-search-shortcode .yatra-duration-title {
511 font-size: 13px !important;
512 font-weight: 600 !important;
513 color: #1f2937 !important;
514 margin: 0 0 2px !important;
515 }
516
517 body .yatra-trip-search-shortcode .yatra-duration-subtitle {
518 font-size: 11px !important;
519 font-weight: 500 !important;
520 color: #6b7280 !important;
521 line-height: 1.3 !important;
522 margin: 0 !important;
523 }
524
525 body .yatra-trip-search-shortcode .yatra-duration-badges {
526 display: flex !important;
527 justify-content: space-between !important;
528 align-items: center !important;
529 padding: 8px 10px !important;
530 background: #f8fafc !important;
531 border: 1px solid #e2e8f0 !important;
532 border-radius: 6px !important;
533 }
534
535 body .yatra-trip-search-shortcode .yatra-duration-badge {
536 font-size: 11px !important;
537 font-weight: 600 !important;
538 color: #1f2937 !important;
539 padding: 4px 8px !important;
540 background: #ffffff !important;
541 border: 1px solid var(--yatra-primary, #3b82f6) !important;
542 border-radius: 4px !important;
543 }
544
545 /* Same horizontal inset as .yatra-duration-badges (padding 8px 10px) so the track matches the badge row */
546 body .yatra-trip-search-shortcode .yatra-dual-range-slider {
547 position: relative !important;
548 height: 36px !important;
549 box-sizing: border-box !important;
550 width: calc(100% - 20px) !important;
551 max-width: calc(100% - 20px) !important;
552 margin: 6px auto 10px !important;
553 padding: 0 !important;
554 }
555
556 body .yatra-trip-search-shortcode .yatra-slider-track {
557 position: absolute !important;
558 width: calc(100% - 16px) !important;
559 height: 6px !important;
560 left: 8px !important;
561 top: 50% !important;
562 transform: translateY(-50%) !important;
563 background: #e5e7eb !important;
564 border-radius: 3px !important;
565 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
566 box-sizing: border-box !important;
567 }
568
569 body .yatra-trip-search-shortcode .yatra-slider-range {
570 position: absolute !important;
571 height: 6px !important;
572 top: 50% !important;
573 transform: translateY(-50%) !important;
574 background: linear-gradient(90deg, var(--yatra-primary, #3b82f6) 0%, var(--yatra-primary-dark, #2563eb) 100%) !important;
575 border-radius: 3px !important;
576 box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
577 }
578
579 body .yatra-trip-search-shortcode .yatra-dual-range-slider input[type='range'] {
580 position: absolute !important;
581 width: 100% !important;
582 height: 6px !important;
583 top: 37% !important;
584 margin: 0 !important;
585 padding: 0 !important;
586 background: transparent !important;
587 -webkit-appearance: none !important;
588 appearance: none !important;
589 pointer-events: none;
590 }
591
592 body .yatra-trip-search-shortcode .yatra-dual-range-slider input[type='range']::-webkit-slider-thumb {
593 -webkit-appearance: none !important;
594 appearance: none !important;
595 width: 20px !important;
596 height: 20px !important;
597 border-radius: 50% !important;
598 background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
599 border: 3px solid var(--yatra-primary, #3b82f6) !important;
600 cursor: pointer !important;
601 pointer-events: all !important;
602 z-index: 3 !important;
603 box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
604 }
605
606 body .yatra-trip-search-shortcode .yatra-dual-range-slider input[type='range']::-moz-range-thumb {
607 width: 20px !important;
608 height: 20px !important;
609 border-radius: 50% !important;
610 background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
611 border: 3px solid var(--yatra-primary, #3b82f6) !important;
612 cursor: pointer !important;
613 pointer-events: all !important;
614 z-index: 3 !important;
615 box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
616 }
617
618 /* -------------------------------------------------------------------------
619 Submit button
620 ------------------------------------------------------------------------- */
621 body .yatra-trip-search-shortcode .yatra-search-button-container {
622 display: flex !important;
623 flex-shrink: 0 !important;
624 align-items: stretch !important;
625 margin: 0 0 0 4px !important;
626 padding: 4px 4px 4px 10px !important;
627 border: none !important;
628 border-left: 1px solid rgba(148, 163, 184, 0.35) !important;
629 background: transparent !important;
630 }
631
632 body .yatra-trip-search-shortcode .yatra-search-main-btn {
633 -webkit-appearance: none !important;
634 appearance: none !important;
635 display: inline-flex !important;
636 align-items: center !important;
637 justify-content: center !important;
638 min-width: 120px !important;
639 min-height: var(--yatra-ts-row) !important;
640 margin: 0 !important;
641 padding: 0 22px !important;
642 border: none !important;
643 border-radius: 10px !important;
644 background: var(--yatra-ts-accent) !important;
645 background-color: var(--yatra-ts-accent) !important;
646 color: #ffffff !important;
647 font-size: 15px !important;
648 font-weight: 600 !important;
649 letter-spacing: 0.01em !important;
650 text-transform: none !important;
651 text-decoration: none !important;
652 cursor: pointer !important;
653 box-shadow:
654 0 1px 2px rgba(15, 23, 42, 0.06),
655 0 4px 14px rgba(37, 99, 235, 0.28) !important;
656 transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease !important;
657 }
658
659 body .yatra-trip-search-shortcode .yatra-search-main-btn:hover {
660 background: var(--yatra-ts-accent-hover) !important;
661 background-color: var(--yatra-ts-accent-hover) !important;
662 color: #ffffff !important;
663 box-shadow:
664 0 2px 6px rgba(15, 23, 42, 0.08),
665 0 8px 22px rgba(37, 99, 235, 0.35) !important;
666 }
667
668 body .yatra-trip-search-shortcode .yatra-search-main-btn:active {
669 transform: scale(0.99);
670 }
671
672 body .yatra-trip-search-shortcode .yatra-search-main-btn:focus {
673 outline: none !important;
674 box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35) !important;
675 }
676
677 /* -------------------------------------------------------------------------
678 Responsive
679 ------------------------------------------------------------------------- */
680 @media (max-width: 1024px) {
681 body .yatra-trip-search-shortcode .yatra-search-bar {
682 flex-wrap: wrap !important;
683 gap: 8px !important;
684 }
685
686 body .yatra-trip-search-shortcode .yatra-search-dropdown {
687 min-width: calc(50% - 20px) !important;
688 flex: 1 1 calc(50% - 20px) !important;
689 }
690
691 body .yatra-trip-search-shortcode .yatra-search-divider {
692 display: none !important;
693 }
694 }
695
696 @media (max-width: 768px) {
697 body .yatra-trip-search-shortcode .yatra-search-bar {
698 flex-direction: column !important;
699 align-items: stretch !important;
700 gap: 4px !important;
701 padding: 12px !important;
702 }
703
704 body .yatra-trip-search-shortcode .yatra-search-keyword-segment {
705 max-width: none !important;
706 width: 100% !important;
707 min-width: 0 !important;
708 }
709
710 body .yatra-trip-search-shortcode .yatra-search-dropdown {
711 width: 100% !important;
712 min-width: 100% !important;
713 flex: 1 1 auto !important;
714 }
715
716 body .yatra-trip-search-shortcode .yatra-search-divider {
717 display: block !important;
718 width: 100% !important;
719 height: 1px !important;
720 margin: 6px 0 !important;
721 }
722
723 body .yatra-trip-search-shortcode .yatra-search-button-container {
724 width: 100% !important;
725 margin-left: 0 !important;
726 padding: 10px 0 4px !important;
727 border-left: none !important;
728 border-top: 1px solid rgba(148, 163, 184, 0.35) !important;
729 }
730
731 body .yatra-trip-search-shortcode .yatra-search-main-btn {
732 width: 100% !important;
733 min-height: 48px !important;
734 margin-top: 0 !important;
735 }
736
737 body .yatra-trip-search-shortcode .yatra-dropdown-menu {
738 left: 0 !important;
739 right: 0 !important;
740 min-width: 100% !important;
741 }
742
743 body .yatra-trip-search-shortcode .yatra-duration-menu {
744 min-width: 100% !important;
745 }
746 }
747