| 1 |
.yatra-activity-image { |
| 2 |
position: relative; |
| 3 |
width: 100%; |
| 4 |
aspect-ratio: 4 / 3; |
| 5 |
overflow: hidden; |
| 6 |
} |
| 7 |
|
| 8 |
.yatra-activity-image img { |
| 9 |
width: 100%; |
| 10 |
height: 100%; |
| 11 |
display: block; |
| 12 |
object-fit: cover; |
| 13 |
} |
| 14 |
|
| 15 |
.yatra-activity-icon-wrapper, |
| 16 |
.yatra-activity-placeholder { |
| 17 |
width: 100%; |
| 18 |
height: 100%; |
| 19 |
display: flex; |
| 20 |
align-items: center; |
| 21 |
justify-content: center; |
| 22 |
} |
| 23 |
|
| 24 |
.yatra-activity-icon-wrapper { |
| 25 |
background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); |
| 26 |
color: #4b5563; |
| 27 |
} |
| 28 |
|
| 29 |
.yatra-activity-icon { |
| 30 |
width: 100%; |
| 31 |
height: 100%; |
| 32 |
object-fit: contain; |
| 33 |
} |
| 34 |
|
| 35 |
.yatra-activity-placeholder { |
| 36 |
background-color: #f3f4f6; |
| 37 |
} |
| 38 |
|
| 39 |
.yatra-activity-placeholder-text { |
| 40 |
font-weight: 600; |
| 41 |
font-size: 1.25rem; |
| 42 |
letter-spacing: 0.08em; |
| 43 |
} |
| 44 |
|
| 45 |
/* View toggle: listing.css defines base styles */ |
| 46 |
.yatra-activity-listing .yatra-view-toggle .yatra-view-btn svg { |
| 47 |
display: block; |
| 48 |
} |
| 49 |
|
| 50 |
/* Grid columns: listing.css (unified 1/2/3-col breakpoints). Default card layout: */ |
| 51 |
|
| 52 |
/* Default card layout in grid mode: vertical card */ |
| 53 |
.yatra-activity-grid .yatra-activity-card { |
| 54 |
display: flex; |
| 55 |
flex-direction: column; |
| 56 |
} |
| 57 |
|
| 58 |
/* List view: cards become horizontal rows */ |
| 59 |
.yatra-activity-grid.list-view { |
| 60 |
display: flex; |
| 61 |
flex-direction: column; |
| 62 |
gap: 1.25rem; |
| 63 |
} |
| 64 |
|
| 65 |
.yatra-activity-grid.list-view .yatra-activity-card { |
| 66 |
flex-direction: row; |
| 67 |
} |
| 68 |
|
| 69 |
.yatra-activity-grid.list-view .yatra-activity-image { |
| 70 |
flex: 0 0 260px; |
| 71 |
} |
| 72 |
|
| 73 |
.yatra-activity-grid.list-view .yatra-activity-content { |
| 74 |
flex: 1 1 auto; |
| 75 |
} |
| 76 |
|
| 77 |
/* Pagination buttons */ |
| 78 |
.yatra-listing-pagination .yatra-pagination-btn.disabled { |
| 79 |
opacity: 0.5; |
| 80 |
cursor: default; |
| 81 |
pointer-events: none; |
| 82 |
} |
| 83 |
|
| 84 |
|