| 1 |
/** |
| 2 |
* Yatra 360° Tour Viewer Module Styles |
| 3 |
* Reusable 360° tour viewer styling |
| 4 |
* |
| 5 |
* @package Yatra |
| 6 |
* @version 1.0.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
/* Tour Viewer Modal */ |
| 10 |
.yatra-tour-viewer-modal { |
| 11 |
position: fixed !important; |
| 12 |
top: 0 !important; |
| 13 |
left: 0 !important; |
| 14 |
right: 0 !important; |
| 15 |
bottom: 0 !important; |
| 16 |
z-index: 99999 !important; |
| 17 |
align-items: center !important; |
| 18 |
justify-content: center !important; |
| 19 |
animation: yatraTourFadeIn 0.3s ease; |
| 20 |
} |
| 21 |
|
| 22 |
.yatra-tour-viewer-modal[style*="display: flex"] { |
| 23 |
display: flex !important; |
| 24 |
} |
| 25 |
|
| 26 |
@keyframes yatraTourFadeIn { |
| 27 |
from { |
| 28 |
opacity: 0; |
| 29 |
} |
| 30 |
to { |
| 31 |
opacity: 1; |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
.yatra-tour-viewer-overlay { |
| 36 |
position: absolute; |
| 37 |
top: 0; |
| 38 |
left: 0; |
| 39 |
right: 0; |
| 40 |
bottom: 0; |
| 41 |
background: rgba(0, 0, 0, 0.95); |
| 42 |
cursor: pointer; |
| 43 |
} |
| 44 |
|
| 45 |
.yatra-tour-viewer-content { |
| 46 |
position: relative !important; |
| 47 |
width: 95% !important; |
| 48 |
max-width: 1400px !important; |
| 49 |
height: 90vh !important; |
| 50 |
z-index: 2 !important; |
| 51 |
} |
| 52 |
|
| 53 |
.yatra-tour-viewer-close { |
| 54 |
position: absolute !important; |
| 55 |
top: 16px !important; |
| 56 |
right: 70px !important; |
| 57 |
background: rgba(16, 185, 129, 0.3) !important; |
| 58 |
border: 2px solid rgba(16, 185, 129, 0.6) !important; |
| 59 |
color: white !important; |
| 60 |
width: 44px !important; |
| 61 |
height: 44px !important; |
| 62 |
border-radius: 50% !important; |
| 63 |
cursor: pointer !important; |
| 64 |
display: flex !important; |
| 65 |
align-items: center !important; |
| 66 |
justify-content: center !important; |
| 67 |
transition: all 0.3s ease; |
| 68 |
z-index: 100 !important; |
| 69 |
padding:0; |
| 70 |
} |
| 71 |
|
| 72 |
.yatra-tour-viewer-close:hover { |
| 73 |
background: rgba(16, 185, 129, 0.3); |
| 74 |
border-color: rgba(16, 185, 129, 0.7); |
| 75 |
transform: rotate(90deg) scale(1.1); |
| 76 |
} |
| 77 |
|
| 78 |
.yatra-tour-viewer-close svg { |
| 79 |
width: 24px; |
| 80 |
height: 24px; |
| 81 |
} |
| 82 |
|
| 83 |
.yatra-tour-viewer-header { |
| 84 |
display: flex; |
| 85 |
align-items: center; |
| 86 |
justify-content: space-between; |
| 87 |
padding: 16px 20px; |
| 88 |
background: rgba(0, 0, 0, 0.8); |
| 89 |
border-radius: 12px 12px 0 0; |
| 90 |
backdrop-filter: blur(10px); |
| 91 |
} |
| 92 |
|
| 93 |
.yatra-tour-viewer-title { |
| 94 |
margin: 0; |
| 95 |
font-size: 18px; |
| 96 |
font-weight: 600; |
| 97 |
color: white; |
| 98 |
} |
| 99 |
|
| 100 |
.yatra-tour-viewer-controls { |
| 101 |
display: flex; |
| 102 |
gap: 8px; |
| 103 |
} |
| 104 |
|
| 105 |
.yatra-tour-viewer-fullscreen { |
| 106 |
background: rgba(255, 255, 255, 0.1); |
| 107 |
border: 1px solid rgba(255, 255, 255, 0.2); |
| 108 |
color: white; |
| 109 |
width: 36px; |
| 110 |
height: 36px; |
| 111 |
border-radius: 6px; |
| 112 |
cursor: pointer; |
| 113 |
display: flex; |
| 114 |
align-items: center; |
| 115 |
justify-content: center; |
| 116 |
transition: all 0.3s ease; |
| 117 |
padding:0; |
| 118 |
} |
| 119 |
|
| 120 |
.yatra-tour-viewer-fullscreen:hover { |
| 121 |
background: rgba(255, 255, 255, 0.2); |
| 122 |
border-color: rgba(255, 255, 255, 0.3); |
| 123 |
} |
| 124 |
|
| 125 |
.yatra-tour-viewer-wrapper { |
| 126 |
width: 100%; |
| 127 |
height: calc(100% - 68px); |
| 128 |
background: #000; |
| 129 |
border-radius: 0 0 12px 12px; |
| 130 |
overflow: hidden; |
| 131 |
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); |
| 132 |
} |
| 133 |
|
| 134 |
.yatra-tour-viewer-wrapper iframe { |
| 135 |
width: 100%; |
| 136 |
height: 100%; |
| 137 |
border: none; |
| 138 |
} |
| 139 |
|
| 140 |
/* Fullscreen Mode */ |
| 141 |
.yatra-tour-viewer-wrapper:fullscreen { |
| 142 |
border-radius: 0; |
| 143 |
} |
| 144 |
|
| 145 |
.yatra-tour-viewer-wrapper:-webkit-full-screen { |
| 146 |
border-radius: 0; |
| 147 |
} |
| 148 |
|
| 149 |
.yatra-tour-viewer-wrapper:-moz-full-screen { |
| 150 |
border-radius: 0; |
| 151 |
} |
| 152 |
|
| 153 |
/* Responsive Design */ |
| 154 |
@media (max-width: 1024px) { |
| 155 |
.yatra-tour-viewer-content { |
| 156 |
width: 98%; |
| 157 |
height: 85vh; |
| 158 |
} |
| 159 |
} |
| 160 |
|
| 161 |
@media (max-width: 768px) { |
| 162 |
.yatra-tour-viewer-content { |
| 163 |
width: 100%; |
| 164 |
height: 100vh; |
| 165 |
} |
| 166 |
|
| 167 |
.yatra-tour-viewer-close { |
| 168 |
top: 10px; |
| 169 |
right: 10px; |
| 170 |
width: 40px; |
| 171 |
height: 40px; |
| 172 |
background: rgba(0, 0, 0, 0.7); |
| 173 |
border-color: rgba(255, 255, 255, 0.3); |
| 174 |
} |
| 175 |
|
| 176 |
.yatra-tour-viewer-close svg { |
| 177 |
width: 20px; |
| 178 |
height: 20px; |
| 179 |
} |
| 180 |
|
| 181 |
.yatra-tour-viewer-header { |
| 182 |
padding: 12px 16px; |
| 183 |
border-radius: 0; |
| 184 |
} |
| 185 |
|
| 186 |
.yatra-tour-viewer-title { |
| 187 |
font-size: 16px; |
| 188 |
} |
| 189 |
|
| 190 |
.yatra-tour-viewer-wrapper { |
| 191 |
border-radius: 0; |
| 192 |
height: calc(100% - 56px); |
| 193 |
} |
| 194 |
} |
| 195 |
|
| 196 |
@media (max-width: 480px) { |
| 197 |
.yatra-tour-viewer-title { |
| 198 |
font-size: 14px; |
| 199 |
} |
| 200 |
|
| 201 |
.yatra-tour-viewer-fullscreen { |
| 202 |
width: 32px; |
| 203 |
height: 32px; |
| 204 |
} |
| 205 |
} |
| 206 |
|
| 207 |
/* Loading State */ |
| 208 |
.yatra-tour-viewer-wrapper.loading::before { |
| 209 |
content: ''; |
| 210 |
position: absolute; |
| 211 |
top: 50%; |
| 212 |
left: 50%; |
| 213 |
width: 60px; |
| 214 |
height: 60px; |
| 215 |
margin: -30px 0 0 -30px; |
| 216 |
border: 4px solid rgba(16, 185, 129, 0.3); |
| 217 |
border-top-color: #10b981; |
| 218 |
border-radius: 50%; |
| 219 |
animation: yatraTourSpin 0.8s linear infinite; |
| 220 |
z-index: 1; |
| 221 |
} |
| 222 |
|
| 223 |
@keyframes yatraTourSpin { |
| 224 |
to { |
| 225 |
transform: rotate(360deg); |
| 226 |
} |
| 227 |
} |
| 228 |
|