vue-hotel-search-widget 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -0
- package/package.json +52 -0
- package/src/components/HotelSearchWidget.vue +1410 -0
- package/src/components/hotel-search-widget.styles.js +740 -0
- package/src/index.js +4 -0
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
export const hotelSearchWidgetStyles = `
|
|
2
|
+
.sw-container {
|
|
3
|
+
--sw-font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
4
|
+
--sw-en-font-family: Arial, sans-serif;
|
|
5
|
+
--sw-label-color: #66797F;
|
|
6
|
+
--sw-body-text: #0B1215;
|
|
7
|
+
--sw-btn-radius: 8px;
|
|
8
|
+
--sw-radius: var(--sw-size-md-1);
|
|
9
|
+
--sw-primary-btn: #2C0A82;
|
|
10
|
+
--sw-primary-button-text: #ffffff;
|
|
11
|
+
--sw-button-primary-border: #2C0A82;
|
|
12
|
+
--sw-form-border: #d8dcde;
|
|
13
|
+
--sw-white: #ffffff;
|
|
14
|
+
--sw-gray: #999;
|
|
15
|
+
--sw-error: #f60b0b;
|
|
16
|
+
--sw-widget-bg: #f5f5f8;
|
|
17
|
+
--sw-widget-font-size: 1.4rem;
|
|
18
|
+
--sw-widget-z-index-base: 1000;
|
|
19
|
+
--sw-widget-transition: all 0.2s ease;
|
|
20
|
+
--sw-widget-shadow: 0 var(--sw-size-sm) 8px rgba(0, 0, 0, 0.1);
|
|
21
|
+
--sw-widget-shadow-hover: 0 4px var(--sw-size-md-1) rgba(0, 0, 0, 0.15);
|
|
22
|
+
--sw-space-sm: 2px;
|
|
23
|
+
--sw-space-md: 10px;
|
|
24
|
+
--sw-space-lg: 20px;
|
|
25
|
+
--sw-size-sm: 2px;
|
|
26
|
+
--sw-size-md: 10px;
|
|
27
|
+
--sw-size-md-1: 12px;
|
|
28
|
+
--sw-size-md-2: 14px;
|
|
29
|
+
--sw-size-md-3: 16px;
|
|
30
|
+
--sw-size-md-4: 18px;
|
|
31
|
+
--sw-size-lg: 20px;
|
|
32
|
+
}
|
|
33
|
+
.sw-container {
|
|
34
|
+
contain: layout;
|
|
35
|
+
position: relative;
|
|
36
|
+
display: block;
|
|
37
|
+
width: 100%;
|
|
38
|
+
min-width: 1240px;
|
|
39
|
+
margin: 0;
|
|
40
|
+
padding: 0;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
color: var(--sw-body-text);
|
|
43
|
+
font-family: var(--sw-font-family);
|
|
44
|
+
font-size: var(--sw-widget-font-size);
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
line-height: 1.5;
|
|
47
|
+
-webkit-font-smoothing: antialiased;
|
|
48
|
+
-moz-osx-font-smoothing: grayscale;
|
|
49
|
+
-webkit-tap-highlight-color: transparent;
|
|
50
|
+
background: var(--sw-widget-bg);
|
|
51
|
+
isolation: isolate;
|
|
52
|
+
}
|
|
53
|
+
.sw-container *,
|
|
54
|
+
.sw-container *::before,
|
|
55
|
+
.sw-container *::after {
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
}
|
|
58
|
+
.sw-container button,
|
|
59
|
+
.sw-container input {
|
|
60
|
+
font-family: var(--sw-font-family);
|
|
61
|
+
}
|
|
62
|
+
.sw-container h1,
|
|
63
|
+
.sw-container h2,
|
|
64
|
+
.sw-container h3,
|
|
65
|
+
.sw-container h4,
|
|
66
|
+
.sw-container h5,
|
|
67
|
+
.sw-container h6,
|
|
68
|
+
.sw-container p {
|
|
69
|
+
display: block;
|
|
70
|
+
margin: 0;
|
|
71
|
+
color: inherit;
|
|
72
|
+
font-family: var(--sw-font-family);
|
|
73
|
+
font-weight: normal;
|
|
74
|
+
line-height: 1.4;
|
|
75
|
+
}
|
|
76
|
+
.sw-container h1 {
|
|
77
|
+
font-size: 22px;
|
|
78
|
+
}
|
|
79
|
+
.sw-container h2 {
|
|
80
|
+
font-size: var(--sw-size-lg);
|
|
81
|
+
}
|
|
82
|
+
.sw-container h3 {
|
|
83
|
+
font-size: var(--sw-size-md-4);
|
|
84
|
+
}
|
|
85
|
+
.sw-container h4 {
|
|
86
|
+
font-size: var(--sw-size-md-3);
|
|
87
|
+
}
|
|
88
|
+
.sw-container h5 {
|
|
89
|
+
font-size: var(--sw-size-md-2);
|
|
90
|
+
}
|
|
91
|
+
.sw-container h6,
|
|
92
|
+
.sw-container small {
|
|
93
|
+
font-size: var(--sw-size-md-1);
|
|
94
|
+
}
|
|
95
|
+
.sw-container img {
|
|
96
|
+
max-width: 100%;
|
|
97
|
+
height: auto;
|
|
98
|
+
}
|
|
99
|
+
.sw-container svg {
|
|
100
|
+
max-width: 100%;
|
|
101
|
+
height: auto;
|
|
102
|
+
}
|
|
103
|
+
.sw-container .sw-fw500 {
|
|
104
|
+
font-weight: 500 !important;
|
|
105
|
+
}
|
|
106
|
+
.sw-container .sw-flex {
|
|
107
|
+
display: flex;
|
|
108
|
+
}
|
|
109
|
+
.sw-container .sw-align-center {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
}
|
|
113
|
+
.sw-container .sw-gap-5 {
|
|
114
|
+
gap: 5px;
|
|
115
|
+
}
|
|
116
|
+
.sw-container .sw-gap-15 {
|
|
117
|
+
gap: 15px;
|
|
118
|
+
}
|
|
119
|
+
.sw-container .sw-justify-between {
|
|
120
|
+
justify-content: space-between;
|
|
121
|
+
}
|
|
122
|
+
.sw-container .sw-text-ellipsis {
|
|
123
|
+
display: -webkit-box;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
-webkit-box-orient: vertical;
|
|
126
|
+
text-overflow: ellipsis;
|
|
127
|
+
}
|
|
128
|
+
.sw-container .sw-text-label {
|
|
129
|
+
color: var(--sw-label-color);
|
|
130
|
+
}
|
|
131
|
+
.sw-card-box {
|
|
132
|
+
position: relative;
|
|
133
|
+
display: block;
|
|
134
|
+
padding: var(--sw-size-lg);
|
|
135
|
+
background-color: var(--sw-white);
|
|
136
|
+
border-radius: var(--sw-radius);
|
|
137
|
+
}
|
|
138
|
+
.sw-card-box .br-right {
|
|
139
|
+
border-top-right-radius: var(--sw-radius);
|
|
140
|
+
border-bottom-right-radius: var(--sw-radius);
|
|
141
|
+
}
|
|
142
|
+
.sw-card-box .br-left {
|
|
143
|
+
border-top-left-radius: var(--sw-radius);
|
|
144
|
+
border-bottom-left-radius: var(--sw-radius);
|
|
145
|
+
}
|
|
146
|
+
.sw-form-field {
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
flex: 1 1 auto;
|
|
150
|
+
gap: 3px;
|
|
151
|
+
padding: var(--sw-size-md) 15px;
|
|
152
|
+
background-color: #f8f8f8;
|
|
153
|
+
min-width: 0;
|
|
154
|
+
overflow: visible;
|
|
155
|
+
}
|
|
156
|
+
.sw-form-field .p-calendar {
|
|
157
|
+
position: unset;
|
|
158
|
+
}
|
|
159
|
+
.sw-form-field label {
|
|
160
|
+
display: block;
|
|
161
|
+
width: 100%;
|
|
162
|
+
margin: 0;
|
|
163
|
+
padding: 0;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
white-space: nowrap;
|
|
166
|
+
color: var(--sw-label-color);
|
|
167
|
+
font-size: var(--sw-size-md-1);
|
|
168
|
+
font-weight: 500;
|
|
169
|
+
-webkit-box-orient: vertical;
|
|
170
|
+
text-overflow: ellipsis;
|
|
171
|
+
}
|
|
172
|
+
.sw-form-field input,
|
|
173
|
+
.sw-form-field .p-inputtext {
|
|
174
|
+
display: block;
|
|
175
|
+
width: 100%;
|
|
176
|
+
margin: 0;
|
|
177
|
+
padding: 0;
|
|
178
|
+
border: 0;
|
|
179
|
+
border-radius: 0;
|
|
180
|
+
outline: none;
|
|
181
|
+
background: transparent;
|
|
182
|
+
box-shadow: none;
|
|
183
|
+
color: var(--sw-body-text);
|
|
184
|
+
font-size: var(--sw-size-md-2);
|
|
185
|
+
font-weight: 500;
|
|
186
|
+
}
|
|
187
|
+
.sw-form-field input::placeholder,
|
|
188
|
+
.sw-form-field .p-inputtext::placeholder {
|
|
189
|
+
color: var(--sw-label-color) !important;
|
|
190
|
+
}
|
|
191
|
+
.sw-form-field.thsw-field-error {
|
|
192
|
+
border: 1px solid var(--sw-error);
|
|
193
|
+
}
|
|
194
|
+
.p-button-label {
|
|
195
|
+
flex: unset;
|
|
196
|
+
}
|
|
197
|
+
.sw-pos-rel {
|
|
198
|
+
position: relative;
|
|
199
|
+
}
|
|
200
|
+
.sw-custom-dropdown {
|
|
201
|
+
display: block;
|
|
202
|
+
width: 100%;
|
|
203
|
+
}
|
|
204
|
+
.sw-custom-dropdown-trigger {
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
justify-content: space-between;
|
|
208
|
+
flex: 1 1 auto;
|
|
209
|
+
width: 100%;
|
|
210
|
+
min-width: 0;
|
|
211
|
+
margin: 0;
|
|
212
|
+
padding: 0;
|
|
213
|
+
border: 0;
|
|
214
|
+
outline: none;
|
|
215
|
+
background: transparent;
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
color: var(--sw-body-text);
|
|
218
|
+
font-size: var(--sw-size-md-2);
|
|
219
|
+
font-weight: 500;
|
|
220
|
+
}
|
|
221
|
+
.sw-dropdown {
|
|
222
|
+
position: absolute;
|
|
223
|
+
top: calc(100% + 5px);
|
|
224
|
+
left: 0;
|
|
225
|
+
right: 0;
|
|
226
|
+
z-index: calc(var(--sw-widget-z-index-base) + 5);
|
|
227
|
+
display: block;
|
|
228
|
+
visibility: visible;
|
|
229
|
+
opacity: 1;
|
|
230
|
+
width: 380px;
|
|
231
|
+
max-height: 300px;
|
|
232
|
+
margin: 0;
|
|
233
|
+
padding: 0;
|
|
234
|
+
overflow: auto;
|
|
235
|
+
overflow-x: hidden;
|
|
236
|
+
background: var(--sw-white);
|
|
237
|
+
border: 1px solid var(--sw-form-border);
|
|
238
|
+
border-radius: var(--sw-radius);
|
|
239
|
+
box-shadow: var(--sw-widget-shadow);
|
|
240
|
+
will-change: transform, opacity;
|
|
241
|
+
transform: translateZ(0);
|
|
242
|
+
-webkit-overflow-scrolling: touch;
|
|
243
|
+
scroll-behavior: smooth;
|
|
244
|
+
}
|
|
245
|
+
.sw-dropdown::-webkit-scrollbar {
|
|
246
|
+
display: none;
|
|
247
|
+
}
|
|
248
|
+
.sw-dropdown-list {
|
|
249
|
+
display: block;
|
|
250
|
+
margin: 0;
|
|
251
|
+
padding: 0;
|
|
252
|
+
list-style: none;
|
|
253
|
+
}
|
|
254
|
+
.sw-dropdown-list-item {
|
|
255
|
+
display: block;
|
|
256
|
+
margin: 0;
|
|
257
|
+
padding: 0;
|
|
258
|
+
cursor: pointer;
|
|
259
|
+
color: var(--sw-body-text);
|
|
260
|
+
font-size: var(--sw-size-md-2);
|
|
261
|
+
transition: background-color 0.2s ease;
|
|
262
|
+
}
|
|
263
|
+
.sw-dropdown-list-card,
|
|
264
|
+
.sw-dropdown-list-box {
|
|
265
|
+
display: flex;
|
|
266
|
+
align-items: center;
|
|
267
|
+
gap: 15px;
|
|
268
|
+
margin: 0 var(--sw-size-lg);
|
|
269
|
+
padding: var(--sw-size-md) 0;
|
|
270
|
+
cursor: pointer;
|
|
271
|
+
font-family: var(--sw-font-family);
|
|
272
|
+
}
|
|
273
|
+
.sw-dropdown-list-box {
|
|
274
|
+
display: flex;
|
|
275
|
+
justify-content: space-between;
|
|
276
|
+
}
|
|
277
|
+
.sw-dropdown-list-card {
|
|
278
|
+
display: grid;
|
|
279
|
+
grid-template-columns: 45px auto;
|
|
280
|
+
}
|
|
281
|
+
.sw-dropdown-item-badge {
|
|
282
|
+
display: grid;
|
|
283
|
+
place-items: center;
|
|
284
|
+
width: fit-content;
|
|
285
|
+
height: unset;
|
|
286
|
+
margin: 0;
|
|
287
|
+
padding: 4px 8px;
|
|
288
|
+
background-color: #f4f5f5;
|
|
289
|
+
border-radius: 4px;
|
|
290
|
+
font-weight: 500;
|
|
291
|
+
}
|
|
292
|
+
.sw-en-font {
|
|
293
|
+
font-family: var(--sw-en-font-family);
|
|
294
|
+
}
|
|
295
|
+
.sw-bg-color-loc {
|
|
296
|
+
color: var(--primary);
|
|
297
|
+
}
|
|
298
|
+
.sw-srh-loc {
|
|
299
|
+
display: flex !important;
|
|
300
|
+
align-items: center;
|
|
301
|
+
gap: 15px;
|
|
302
|
+
margin: 0 var(--sw-size-lg);
|
|
303
|
+
padding: 15px 0 var(--sw-size-md-1);
|
|
304
|
+
border-bottom: 1px solid var(--sw-form-border);
|
|
305
|
+
cursor: pointer;
|
|
306
|
+
}
|
|
307
|
+
.sw-hotel-search-form-icon {
|
|
308
|
+
display: grid;
|
|
309
|
+
place-content: center;
|
|
310
|
+
width: 40px;
|
|
311
|
+
height: 40px;
|
|
312
|
+
background: #f4f5f5;
|
|
313
|
+
border-radius: var(--sw-radius);
|
|
314
|
+
}
|
|
315
|
+
.sw-hotel-search-form-icon.sw-fill {
|
|
316
|
+
background: var(--primary-light);
|
|
317
|
+
}
|
|
318
|
+
.sw-srh-wrap {
|
|
319
|
+
display: flex;
|
|
320
|
+
gap: var(--sw-space-sm);
|
|
321
|
+
}
|
|
322
|
+
.sw-srh-wrap .sw-form-field {
|
|
323
|
+
flex: 1 1 50%;
|
|
324
|
+
min-width: 0;
|
|
325
|
+
justify-content: center;
|
|
326
|
+
}
|
|
327
|
+
.sw-com-cal p {
|
|
328
|
+
color: var(--sw-body-text);
|
|
329
|
+
font-size: var(--sw-size-md-2);
|
|
330
|
+
font-weight: 500;
|
|
331
|
+
}
|
|
332
|
+
.sw-com-cal .p-calendar .p-datepicker {
|
|
333
|
+
top: 100% !important;
|
|
334
|
+
display: block;
|
|
335
|
+
min-width: 100%;
|
|
336
|
+
margin-top: 5px !important;
|
|
337
|
+
padding: 15px;
|
|
338
|
+
background-color: var(--sw-white);
|
|
339
|
+
border: 1px solid var(--sw-form-border);
|
|
340
|
+
border-radius: var(--sw-radius);
|
|
341
|
+
box-shadow: var(--sw-widget-shadow);
|
|
342
|
+
will-change: transform, opacity;
|
|
343
|
+
transform: translateZ(0);
|
|
344
|
+
}
|
|
345
|
+
.sw-com-cal .p-datepicker-header {
|
|
346
|
+
padding-bottom: 15px;
|
|
347
|
+
}
|
|
348
|
+
.sw-com-cal .p-datepicker-prev[style*="visibility: hidden"]::after,
|
|
349
|
+
.sw-com-cal .p-datepicker-next[style*="visibility: hidden"]::after {
|
|
350
|
+
visibility: hidden !important;
|
|
351
|
+
}
|
|
352
|
+
.sw-com-cal .p-datepicker-prev,
|
|
353
|
+
.sw-com-cal .p-datepicker-next {
|
|
354
|
+
cursor: pointer;
|
|
355
|
+
}
|
|
356
|
+
.sw-com-cal .p-datepicker-prev::after,
|
|
357
|
+
.sw-com-cal .p-datepicker-next::after {
|
|
358
|
+
content: "";
|
|
359
|
+
display: block;
|
|
360
|
+
width: var(--sw-size-md-2);
|
|
361
|
+
height: var(--sw-size-md-2);
|
|
362
|
+
visibility: visible;
|
|
363
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'><path fill='%231b1a1f' d='m222.927 580.115 301.354 328.512c24.354 28.708 20.825 71.724-7.883 96.078s-71.724 20.825-96.078-7.883L19.576 559.963a67.9 67.9 0 0 1-13.784-20.022 68 68 0 0 1-5.977-29.488l.001-.063a68.34 68.34 0 0 1 7.265-29.134 68 68 0 0 1 1.384-2.6 67.6 67.6 0 0 1 10.102-13.687L429.966 21.113c25.592-27.611 68.721-29.247 96.331-3.656s29.247 68.721 3.656 96.331L224.088 443.784h730.46c37.647 0 68.166 30.519 68.166 68.166s-30.519 68.166-68.166 68.166z'/></svg>");
|
|
364
|
+
}
|
|
365
|
+
.sw-com-cal .p-datepicker-header button {
|
|
366
|
+
margin: 0;
|
|
367
|
+
padding: 0 5px;
|
|
368
|
+
border: 0;
|
|
369
|
+
border-color: var(--sw-white);
|
|
370
|
+
outline: none;
|
|
371
|
+
background: transparent;
|
|
372
|
+
color: var(--sw-body-text);
|
|
373
|
+
font-size: var(--sw-size-md-3);
|
|
374
|
+
font-weight: 500;
|
|
375
|
+
line-height: var(--sw-size-lg);
|
|
376
|
+
}
|
|
377
|
+
.sw-com-cal .p-datepicker-header button .p-icon {
|
|
378
|
+
display: none;
|
|
379
|
+
}
|
|
380
|
+
.sw-com-cal .p-datepicker .p-datepicker-next {
|
|
381
|
+
transform: rotate(180deg);
|
|
382
|
+
}
|
|
383
|
+
.sw-com-cal .p-datepicker .p-datepicker-header button {
|
|
384
|
+
border: 0;
|
|
385
|
+
border-color: var(--sw-white);
|
|
386
|
+
outline: none;
|
|
387
|
+
box-shadow: none !important;
|
|
388
|
+
background: transparent;
|
|
389
|
+
color: var(--sw-body-text);
|
|
390
|
+
font-size: var(--sw-size-md-3);
|
|
391
|
+
font-weight: 500;
|
|
392
|
+
line-height: var(--sw-size-lg);
|
|
393
|
+
}
|
|
394
|
+
.sw-com-cal .p-datepicker .p-datepicker-calendar-container th {
|
|
395
|
+
padding: var(--sw-size-md) 0;
|
|
396
|
+
color: var(--sw-body-text);
|
|
397
|
+
font-size: var(--sw-size-md-2);
|
|
398
|
+
font-weight: 400;
|
|
399
|
+
line-height: 1.4;
|
|
400
|
+
}
|
|
401
|
+
.sw-com-cal .p-datepicker .p-datepicker-calendar-container td {
|
|
402
|
+
padding: 0;
|
|
403
|
+
}
|
|
404
|
+
.sw-com-cal .p-datepicker .p-datepicker-calendar-container td span {
|
|
405
|
+
padding: var(--sw-size-md) 0;
|
|
406
|
+
border-radius: 0;
|
|
407
|
+
font-size: var(--sw-size-md-2);
|
|
408
|
+
width: 45px;
|
|
409
|
+
height: 45px;
|
|
410
|
+
}
|
|
411
|
+
.sw-com-cal .p-datepicker-group-container .p-datepicker-group:not(:last-child) {
|
|
412
|
+
border-inline-end: 1px solid var(--sw-form-border);
|
|
413
|
+
padding-inline-end: var(--sw-size-md);
|
|
414
|
+
margin-inline-end: var(--sw-size-md);
|
|
415
|
+
}
|
|
416
|
+
.sw-com-cal .p-datepicker-other-month span {
|
|
417
|
+
opacity: 0;
|
|
418
|
+
}
|
|
419
|
+
.sw-com-cal .p-datepicker .p-highlight {
|
|
420
|
+
position: relative;
|
|
421
|
+
background: var(--primary) !important;
|
|
422
|
+
color: var(--sw-white) !important;
|
|
423
|
+
}
|
|
424
|
+
.sw-com-cal .p-inputtext {
|
|
425
|
+
visibility: hidden;
|
|
426
|
+
height: 0;
|
|
427
|
+
width: 0;
|
|
428
|
+
}
|
|
429
|
+
.sw-rooms-guests-menu {
|
|
430
|
+
position: absolute;
|
|
431
|
+
top: 100%;
|
|
432
|
+
right: 0;
|
|
433
|
+
z-index: var(--sw-widget-z-index-base);
|
|
434
|
+
display: block;
|
|
435
|
+
width: 75%;
|
|
436
|
+
margin-top: 4px;
|
|
437
|
+
padding: var(--sw-size-lg);
|
|
438
|
+
background: var(--sw-white);
|
|
439
|
+
border: 1px solid var(--sw-form-border);
|
|
440
|
+
border-radius: var(--sw-radius);
|
|
441
|
+
box-shadow: var(--sw-widget-shadow);
|
|
442
|
+
will-change: transform, opacity;
|
|
443
|
+
transform: translateZ(0);
|
|
444
|
+
}
|
|
445
|
+
.sw-rooms-guests-title {
|
|
446
|
+
margin: 0 0 15px 0 !important;
|
|
447
|
+
font-size: var(--sw-size-md-3) !important;
|
|
448
|
+
font-weight: 500 !important;
|
|
449
|
+
}
|
|
450
|
+
.sw-room-section {
|
|
451
|
+
display: grid;
|
|
452
|
+
grid-template-columns: 1.2fr 3fr 4fr 50px;
|
|
453
|
+
align-items: center;
|
|
454
|
+
padding: var(--sw-size-md) 0;
|
|
455
|
+
}
|
|
456
|
+
.sw-room-section:last-of-type {
|
|
457
|
+
margin-bottom: 15px;
|
|
458
|
+
}
|
|
459
|
+
.sw-room-header {
|
|
460
|
+
display: flex;
|
|
461
|
+
align-items: center;
|
|
462
|
+
gap: 5px;
|
|
463
|
+
color: var(--primary);
|
|
464
|
+
font-size: var(--sw-size-md-2);
|
|
465
|
+
font-weight: 500;
|
|
466
|
+
}
|
|
467
|
+
.sw-room-controls-group {
|
|
468
|
+
display: grid;
|
|
469
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
470
|
+
justify-content: center;
|
|
471
|
+
gap: var(--sw-space-md);
|
|
472
|
+
min-width: 0;
|
|
473
|
+
}
|
|
474
|
+
.sw-room-control-item {
|
|
475
|
+
display: flex;
|
|
476
|
+
flex-direction: column;
|
|
477
|
+
flex: 1 1 auto;
|
|
478
|
+
justify-content: space-between;
|
|
479
|
+
gap: var(--sw-space-sm);
|
|
480
|
+
min-width: 0;
|
|
481
|
+
}
|
|
482
|
+
.sw-room-control-label {
|
|
483
|
+
color: var(--sw-body-text);
|
|
484
|
+
font-size: var(--sw-size-md-2);
|
|
485
|
+
font-weight: 400;
|
|
486
|
+
}
|
|
487
|
+
.sw-room-control-buttons {
|
|
488
|
+
display: grid;
|
|
489
|
+
grid-template-columns: 36px 40px 36px;
|
|
490
|
+
align-items: center;
|
|
491
|
+
overflow: hidden;
|
|
492
|
+
}
|
|
493
|
+
.sw-count-button {
|
|
494
|
+
display: flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
justify-content: center;
|
|
497
|
+
width: 36px;
|
|
498
|
+
height: 36px;
|
|
499
|
+
margin: 0;
|
|
500
|
+
padding: 0;
|
|
501
|
+
border: none;
|
|
502
|
+
border-radius: 50%;
|
|
503
|
+
background: var(--primary);
|
|
504
|
+
cursor: pointer;
|
|
505
|
+
color: var(--sw-white);
|
|
506
|
+
font-size: var(--sw-size-lg);
|
|
507
|
+
font-weight: 500;
|
|
508
|
+
transition: var(--sw-widget-transition);
|
|
509
|
+
}
|
|
510
|
+
.sw-count-button:focus-visible {
|
|
511
|
+
outline: none;
|
|
512
|
+
}
|
|
513
|
+
.sw-count-button.sw-disabled {
|
|
514
|
+
opacity: 0.6;
|
|
515
|
+
cursor: not-allowed;
|
|
516
|
+
}
|
|
517
|
+
.sw-count-button:disabled {
|
|
518
|
+
cursor: not-allowed;
|
|
519
|
+
}
|
|
520
|
+
.sw-count-value {
|
|
521
|
+
min-width: 30px;
|
|
522
|
+
text-align: center;
|
|
523
|
+
color: var(--sw-body-text);
|
|
524
|
+
font-size: var(--sw-size-md-3);
|
|
525
|
+
font-weight: 500;
|
|
526
|
+
}
|
|
527
|
+
.sw-room-controls-child {
|
|
528
|
+
display: grid;
|
|
529
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
530
|
+
gap: var(--sw-space-lg);
|
|
531
|
+
min-width: 0;
|
|
532
|
+
}
|
|
533
|
+
.sw-room-controls-child .p-dropdown {
|
|
534
|
+
padding: var(--sw-size-md);
|
|
535
|
+
border: 1px solid var(--sw-form-border);
|
|
536
|
+
border-radius: var(--sw-radius);
|
|
537
|
+
width: 100%;
|
|
538
|
+
}
|
|
539
|
+
.sw-room-controls-child .p-dropdown-item {
|
|
540
|
+
padding: var(--sw-size-md);
|
|
541
|
+
font-size: var(--sw-size-md-2);
|
|
542
|
+
}
|
|
543
|
+
.sw-room-controls-child .p-dropdown-panel {
|
|
544
|
+
background: var(--sw-white);
|
|
545
|
+
border: 1px solid var(--sw-form-border);
|
|
546
|
+
border-radius: var(--sw-btn-radius);
|
|
547
|
+
box-shadow: 0 4px var(--sw-size-md-1) rgba(0, 0, 0, 0.1);
|
|
548
|
+
}
|
|
549
|
+
.sw-child-age-item {
|
|
550
|
+
display: block;
|
|
551
|
+
}
|
|
552
|
+
.child-age-dropdown {
|
|
553
|
+
width: 100%;
|
|
554
|
+
}
|
|
555
|
+
.sw-remove-room-button {
|
|
556
|
+
display: flex;
|
|
557
|
+
align-items: center;
|
|
558
|
+
justify-content: center;
|
|
559
|
+
width: 30px;
|
|
560
|
+
height: 30px;
|
|
561
|
+
margin: 0;
|
|
562
|
+
padding: 0;
|
|
563
|
+
border: none;
|
|
564
|
+
border-radius: 50%;
|
|
565
|
+
background: transparent;
|
|
566
|
+
cursor: pointer;
|
|
567
|
+
color: var(--sw-body-text);
|
|
568
|
+
font-size: 24px;
|
|
569
|
+
font-weight: 500;
|
|
570
|
+
line-height: 1;
|
|
571
|
+
}
|
|
572
|
+
.sw-remove-room-button:hover {
|
|
573
|
+
background-color: #f0f0f0;
|
|
574
|
+
}
|
|
575
|
+
.sw-rooms-guests-footer {
|
|
576
|
+
display: flex;
|
|
577
|
+
justify-content: space-between;
|
|
578
|
+
gap: var(--sw-size-md);
|
|
579
|
+
margin-top: 15px;
|
|
580
|
+
padding-top: 15px;
|
|
581
|
+
border-top: 1px solid var(--sw-form-border);
|
|
582
|
+
}
|
|
583
|
+
.sw-add-room-button {
|
|
584
|
+
display: flex;
|
|
585
|
+
align-items: center;
|
|
586
|
+
gap: 8px;
|
|
587
|
+
width: auto;
|
|
588
|
+
height: 40px;
|
|
589
|
+
margin: 0 !important;
|
|
590
|
+
padding: 1rem;
|
|
591
|
+
border: 1px solid var(--primary);
|
|
592
|
+
border-radius: var(--sw-radius);
|
|
593
|
+
background-color: transparent;
|
|
594
|
+
cursor: pointer;
|
|
595
|
+
color: var(--primary);
|
|
596
|
+
font-size: var(--sw-size-md-2);
|
|
597
|
+
font-weight: 500;
|
|
598
|
+
}
|
|
599
|
+
.sw-rooms-guests-cta {
|
|
600
|
+
display: flex;
|
|
601
|
+
gap: var(--sw-size-md);
|
|
602
|
+
}
|
|
603
|
+
.sw-reset-button {
|
|
604
|
+
padding: var(--sw-size-md) var(--sw-size-lg);
|
|
605
|
+
border: 1px solid var(--primary);
|
|
606
|
+
border-radius: var(--sw-btn-radius);
|
|
607
|
+
background: transparent;
|
|
608
|
+
cursor: pointer;
|
|
609
|
+
color: var(--primary);
|
|
610
|
+
font-size: var(--sw-size-md-2);
|
|
611
|
+
font-weight: 500;
|
|
612
|
+
transition: all 0.2s ease;
|
|
613
|
+
}
|
|
614
|
+
.sw-apply-button {
|
|
615
|
+
padding: var(--sw-size-md) var(--sw-size-lg);
|
|
616
|
+
border: 1px solid var(--sw-button-primary-border);
|
|
617
|
+
border-radius: var(--sw-btn-radius);
|
|
618
|
+
background: var(--sw-primary-btn);
|
|
619
|
+
cursor: pointer;
|
|
620
|
+
color: var(--sw-primary-button-text);
|
|
621
|
+
font-size: var(--sw-size-md-2);
|
|
622
|
+
font-weight: 500;
|
|
623
|
+
transition: all 0.2s ease;
|
|
624
|
+
}
|
|
625
|
+
.sw-search-button,
|
|
626
|
+
.sw-search-button.p-button {
|
|
627
|
+
display: flex;
|
|
628
|
+
align-items: center;
|
|
629
|
+
justify-content: center;
|
|
630
|
+
gap: var(--sw-size-md);
|
|
631
|
+
width: auto;
|
|
632
|
+
height: 100%;
|
|
633
|
+
min-height: 56px;
|
|
634
|
+
margin: 0;
|
|
635
|
+
padding: 0 15px;
|
|
636
|
+
border: 1px solid var(--sw-button-primary-border);
|
|
637
|
+
background-color: var(--sw-primary-btn);
|
|
638
|
+
cursor: pointer;
|
|
639
|
+
color: var(--sw-primary-button-text);
|
|
640
|
+
font-size: var(--sw-size-md-3);
|
|
641
|
+
font-weight: 400;
|
|
642
|
+
transition: var(--sw-widget-transition);
|
|
643
|
+
}
|
|
644
|
+
.sw-search-button:focus-visible,
|
|
645
|
+
.sw-search-button.p-button:focus-visible {
|
|
646
|
+
outline: var(--sw-size-sm) solid var(--primary);
|
|
647
|
+
outline-offset: var(--sw-size-sm);
|
|
648
|
+
}
|
|
649
|
+
.sw-search-button .p-button-icon-left {
|
|
650
|
+
margin: 0;
|
|
651
|
+
}
|
|
652
|
+
.sw-search-button svg,
|
|
653
|
+
.sw-search-button .p-button-icon {
|
|
654
|
+
flex-shrink: 0;
|
|
655
|
+
}
|
|
656
|
+
.sw-srh-h-grid {
|
|
657
|
+
position: relative;
|
|
658
|
+
display: grid;
|
|
659
|
+
grid-template-columns: 2.2fr 1.8fr 3fr 1.8fr 1.15fr;
|
|
660
|
+
gap: var(--sw-space-sm);
|
|
661
|
+
min-height: 55px;
|
|
662
|
+
min-width: 0;
|
|
663
|
+
overflow: visible;
|
|
664
|
+
border-radius: var(--sw-radius);
|
|
665
|
+
}
|
|
666
|
+
.sw-advanced-search-options .p-accordion-header-link {
|
|
667
|
+
display: flex;
|
|
668
|
+
flex-direction: row-reverse;
|
|
669
|
+
gap: var(--sw-size-md);
|
|
670
|
+
width: fit-content;
|
|
671
|
+
margin-top: 15px;
|
|
672
|
+
color: var(--sw-body-text);
|
|
673
|
+
font-size: var(--sw-size-md-2);
|
|
674
|
+
}
|
|
675
|
+
.sw-advanced-search-options .p-toggleable-content {
|
|
676
|
+
margin-top: var(--sw-size-lg);
|
|
677
|
+
}
|
|
678
|
+
.sw-advanced-search-options .p-accordion-content .sw-hsrh-advan-cont:not(:last-child) {
|
|
679
|
+
margin-bottom: var(--sw-size-md-3);
|
|
680
|
+
}
|
|
681
|
+
.sw-advanced-search-options .p-accordion-header-link svg {
|
|
682
|
+
transform: rotate(90deg);
|
|
683
|
+
}
|
|
684
|
+
.sw-advanced-search-options .p-accordion-header-link[aria-expanded="true"] svg {
|
|
685
|
+
transform: scale(-1);
|
|
686
|
+
}
|
|
687
|
+
.sw-hsrh-advan-cont {
|
|
688
|
+
display: flex;
|
|
689
|
+
align-items: center;
|
|
690
|
+
gap: var(--sw-size-md);
|
|
691
|
+
}
|
|
692
|
+
.sw-hsrh-chk-main {
|
|
693
|
+
display: flex;
|
|
694
|
+
gap: var(--sw-space-md, var(--sw-size-md));
|
|
695
|
+
font-size: 1.4rem;
|
|
696
|
+
font-weight: 400;
|
|
697
|
+
flex-wrap: wrap;
|
|
698
|
+
}
|
|
699
|
+
.sw-checkbox-wrap {
|
|
700
|
+
cursor: pointer;
|
|
701
|
+
}
|
|
702
|
+
.sw-checkbox-wrap input {
|
|
703
|
+
display: none;
|
|
704
|
+
}
|
|
705
|
+
.sw-checkbox-wrap input:checked + .sw-star-checkbox {
|
|
706
|
+
padding: 8px var(--sw-size-md-1);
|
|
707
|
+
border: 1px solid var(--primary-light);
|
|
708
|
+
border-radius: var(--sw-size-lg);
|
|
709
|
+
background: var(--primary-light);
|
|
710
|
+
gap: 5px;
|
|
711
|
+
color: var(--primary);
|
|
712
|
+
font-size: var(--sw-size-md-2);
|
|
713
|
+
line-height: 1;
|
|
714
|
+
}
|
|
715
|
+
.sw-checkbox-wrap .sw-star-checkbox {
|
|
716
|
+
display: flex;
|
|
717
|
+
align-items: center;
|
|
718
|
+
gap: 5px;
|
|
719
|
+
padding: 8px var(--sw-size-md-1);
|
|
720
|
+
border: 1px solid var(--sw-form-border);
|
|
721
|
+
border-radius: var(--sw-size-lg);
|
|
722
|
+
font-size: var(--sw-size-md-2);
|
|
723
|
+
line-height: 1;
|
|
724
|
+
}
|
|
725
|
+
.sw-star-checkbox-wrap input:checked + .sw-star-checkbox {
|
|
726
|
+
padding: 7px var(--sw-size-md-1);
|
|
727
|
+
border: 1px solid #fcf2e8;
|
|
728
|
+
border-radius: var(--sw-size-lg);
|
|
729
|
+
background: #fcf2e8;
|
|
730
|
+
color: #ffae43;
|
|
731
|
+
}
|
|
732
|
+
.sw-star-checkbox-wrap input:checked + .sw-star-checkbox svg path {
|
|
733
|
+
fill: #ffae43;
|
|
734
|
+
}
|
|
735
|
+
@media print {
|
|
736
|
+
.sw-container {
|
|
737
|
+
display: none;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
`
|