/* ==========================================================================
   Date picker theme (bootstrap-daterangepicker), added 2026-11-09

   One file, identical in babumrah and triponly. It only restyles the library
   (daterangepicker.min.css is left untouched) and is loaded LAST in
   resources/views/frontend/layouts/master.blade.php, so removing that one
   <link> line rolls the whole redesign back.

   Site theme: Nunito Sans, brand yellow #FAC917 with dark text #1f2024
   (contrast 12:1), 4px buttons, 8px day cells, 12px panel radius.

   Scope:
     - every calendar gets the colours, type, day states, selects, buttons;
     - the floating calendars (appended to <body>) also get the sizing and
       the panel frame; the calendars drawn INSIDE a search panel (parentEl,
       .embedded-daterangepicker) keep the size their panel gives them, and
       the ones with their own #id rules (the hotel price calendar) keep
       those, because an #id selector outranks everything here;
     - on phones (< 768px) the floating calendar is already a bottom sheet
       (mobile-sheets.css: position, dimmed page, stacked months); this file
       only makes its targets bigger (44px prev/next, 42px days, 44px buttons).

   Specificity: `html body .daterangepicker …` matches the existing phone
   overrides (`html body > .daterangepicker …` in triponly mobile-general.css)
   and wins over them by load order; !important only where those use it.
   ========================================================================== */

/* ---------- 1. Panel ---------- */
html body .daterangepicker {
	font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	color: #1f2024;
	line-height: 1.2;
	letter-spacing: 0;
}
html body > .daterangepicker {
	background: #fff;
	border: 1px solid #e3e5e9;
	border-radius: 12px;
	box-shadow: 0 14px 36px rgba(17, 24, 39, .16), 0 2px 6px rgba(17, 24, 39, .06);
	padding: 6px;
	margin-top: 10px;
	z-index: 10060;  /* above the sticky header, floating buttons (999) and Bootstrap modals (1050) */
}
html body > .daterangepicker.drop-up {
	margin-top: -10px;
}
/* callout arrow in the panel's border colour */
html body > .daterangepicker::before {
	border-bottom-color: #e3e5e9;
}
html body > .daterangepicker.drop-up::before {
	border-top-color: #e3e5e9;
}

/* calendars drawn inside a search panel: the panel is the frame */
html body .embedded-daterangepicker .daterangepicker {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}
html body .embedded-daterangepicker .daterangepicker .drp-calendar.left,
html body .embedded-daterangepicker .daterangepicker .drp-calendar.right {
	padding: 4px 6px;
}
html body .embedded-daterangepicker .daterangepicker .drp-calendar.left:not(.single) {
	border-right: 1px solid #eceef1;
}
html body .embedded-daterangepicker .calendar-table table {
	width: 100%;
	table-layout: fixed;
}
/* !important + .drp-calendar: beats custom.css `.flightDiv2 .boxdate ... td
   {width:24px !important}` on the flight search */
html body .embedded-daterangepicker .daterangepicker .drp-calendar .calendar-table td,
html body .embedded-daterangepicker .daterangepicker .drp-calendar .calendar-table th {
	width: auto !important;
	min-width: 0 !important;
	height: 34px;
	line-height: 34px;
	padding: 0;
}
/* table-layout:fixed sizes the columns from the FIRST row (prev | month
   colspan 5 | next); the prev/next cell is an empty <th> without a class
   when that month cannot be left, so pin by position, not by class */
html body .embedded-daterangepicker .daterangepicker .drp-calendar .calendar-table thead tr:first-child th:first-child,
html body .embedded-daterangepicker .daterangepicker .drp-calendar .calendar-table thead tr:first-child th:last-child {
	width: 14.2857% !important;
}
html body .embedded-daterangepicker .daterangepicker .drp-calendar .calendar-table thead tr:first-child th.month {
	width: 71.4286% !important;
}

/* ---------- 2. Month grid ---------- */
html body .daterangepicker .drp-calendar {
	max-width: none;
}
html body > .daterangepicker .drp-calendar.left,
html body > .daterangepicker .drp-calendar.right,
html body > .daterangepicker.single .drp-calendar.left {
	padding: 6px;
}
html body .daterangepicker .calendar-table {
	border: 0;
	background: transparent;
	padding: 0;
}
html body .daterangepicker .calendar-table table {
	border-collapse: separate;
	border-spacing: 0 2px;
}
html body > .daterangepicker .calendar-table td,
html body > .daterangepicker .calendar-table th {
	width: 38px;
	min-width: 38px;
	height: 36px;
	line-height: 36px;
	padding: 0;
}
html body .daterangepicker .calendar-table td,
html body .daterangepicker .calendar-table th {
	font-size: 14px;
	border: 0;
	border-radius: 8px;
}

/* month title */
html body .daterangepicker .calendar-table th.month {
	font-size: 15px;
	font-weight: 800;
	color: #1f2024;
	cursor: default;
}
/* weekday names */
html body .daterangepicker .calendar-table thead tr:last-child th {
	height: 26px;
	line-height: 26px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #6b6f78;
	cursor: default;
}

/* prev / next: round buttons with a drawn chevron (the library's rotated
   border-span is reset, triponly's phone glyph is replaced) */
html body .daterangepicker .calendar-table th.prev,
html body .daterangepicker .calendar-table th.next {
	background: transparent;
}
html body .daterangepicker .calendar-table th.prev:hover,
html body .daterangepicker .calendar-table th.next:hover {
	background: transparent;
}
html body .daterangepicker .calendar-table th.prev span,
html body .daterangepicker .calendar-table th.next span {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f2f4;
	transform: none;
	-webkit-transform: none;
	font-size: 0;
	line-height: 0;
	transition: background .12s ease;
}
html body .daterangepicker .calendar-table th.prev span::before,
html body .daterangepicker .calendar-table th.next span::before {
	display: none;
}
html body .daterangepicker .calendar-table th.prev span::after,
html body .daterangepicker .calendar-table th.next span::after {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border: solid #1f2024;
	border-width: 0 2px 2px 0;
	font-size: 0;
}
html body .daterangepicker .calendar-table th.prev span::after {
	transform: translateX(1.5px) rotate(135deg);
}
html body .daterangepicker .calendar-table th.next span::after {
	transform: translateX(-1.5px) rotate(-45deg);
}
html body .daterangepicker .calendar-table th.prev:hover span,
html body .daterangepicker .calendar-table th.next:hover span {
	background: #FAC917;
}

/* ---------- 3. Day states ---------- */
html body .daterangepicker .calendar-table td {
	font-weight: 600;
	color: #1f2024;
	background: transparent;
	transition: background .12s ease, color .12s ease;
}
html body .daterangepicker .calendar-table td.available:hover {
	background: #f1f2f4;
	color: #1f2024;
}
/* days of the next / previous month */
html body .daterangepicker .calendar-table td.off,
html body .daterangepicker .calendar-table td.off.in-range,
html body .daterangepicker .calendar-table td.off.start-date,
html body .daterangepicker .calendar-table td.off.end-date {
	background: transparent !important;
	color: #a2a6ad !important;
	font-weight: 500;
	box-shadow: none;
}
/* not bookable */
html body .daterangepicker .calendar-table td.disabled,
html body .daterangepicker .calendar-table td.off.disabled {
	background: transparent !important;
	color: #c4c7cd !important;
	font-weight: 400;
	text-decoration: line-through;
	cursor: not-allowed;
}
/* today: a yellow bar under the number */
html body .daterangepicker .calendar-table td.today {
	font-weight: 800;
	box-shadow: inset 0 -3px 0 #FAC917;
}
/* nights between check-in and check-out */
html body .daterangepicker .calendar-table td.in-range {
	background: #fff3c4 !important;
	color: #1f2024 !important;
	border-radius: 0;
	box-shadow: none;
}
/* the chosen day(s) */
html body .daterangepicker .calendar-table td.active,
html body .daterangepicker .calendar-table td.active:hover,
html body .daterangepicker .calendar-table td.start-date:not(.off),
html body .daterangepicker .calendar-table td.end-date:not(.off) {
	background: #FAC917 !important;
	color: #1f2024 !important;
	font-weight: 800;
	box-shadow: none;
}
html body .daterangepicker .calendar-table td.start-date { border-radius: 8px 0 0 8px; }
html body .daterangepicker .calendar-table td.end-date { border-radius: 0 8px 8px 0; }
html body .daterangepicker .calendar-table td.start-date.end-date,
html body .daterangepicker.single .calendar-table td.active { border-radius: 8px; }

/* ---------- 4. Month / year drop-downs (showDropdowns) and time selects ---------- */
html body .daterangepicker select.monthselect,
html body .daterangepicker select.yearselect,
html body .daterangepicker .calendar-time select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	height: 34px;
	margin: 0;
	padding: 0 26px 0 10px;
	border: 1px solid #d5d8dd;
	border-radius: 8px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231f2024' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #1f2024;
	line-height: 32px;
	cursor: pointer;
	outline: 0;
}
html body .daterangepicker select.monthselect { width: 54%; margin-right: 4%; }
html body .daterangepicker select.yearselect { width: 42%; }
html body .daterangepicker .calendar-time select {
	width: auto;
	min-width: 62px;
}
html body .daterangepicker select.monthselect:hover,
html body .daterangepicker select.yearselect:hover,
html body .daterangepicker .calendar-time select:hover {
	border-color: #a9adb5;
}
html body .daterangepicker .calendar-time {
	margin: 8px auto 2px;
	line-height: 34px;
	font-weight: 700;
}

/* ---------- 5. Footer: selected range + Cancel / Apply ---------- */
html body .daterangepicker .drp-buttons {
	border-top: 1px solid #eceef1;
	padding: 10px 6px 4px;
	line-height: 1.2;
}
html body .daterangepicker .drp-selected {
	font-size: 13px;
	font-weight: 700;
	color: #4a4d55;
}
/* a single date needs no "from - to" line (triponly's phone sheet shows it) */
html body .daterangepicker.single .drp-buttons .drp-selected {
	display: none !important;
}
html body .daterangepicker .drp-buttons .btn {
	height: 38px;
	min-width: 88px;
	padding: 0 16px;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 36px;
	box-shadow: none;
	transition: background .12s ease, border-color .12s ease;
}
html body .daterangepicker .drp-buttons .cancelBtn {
	background: #fff !important;
	border: 1px solid #cfd2d8 !important;
	color: #1f2024 !important;
}
html body .daterangepicker .drp-buttons .cancelBtn:hover {
	background: #f4f5f7 !important;
}
html body .daterangepicker .drp-buttons .applyBtn {
	background: #FAC917 !important;
	border: 1px solid #FAC917 !important;
	color: #1f2024 !important;
}
html body .daterangepicker .drp-buttons .applyBtn:hover {
	background: #f0bc00 !important;
	border-color: #f0bc00 !important;
}
html body .daterangepicker .drp-buttons .applyBtn:disabled {
	opacity: .45;
}

/* ---------- 6. Keyboard focus ---------- */
html body .daterangepicker select:focus-visible,
html body .daterangepicker .drp-buttons .btn:focus-visible {
	outline: 2px solid #1f2024;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px rgba(250, 201, 23, .45);
}
html body .daterangepicker select:focus {
	border-color: #1f2024;
}

/* ---------- 7. Ranges list (not used today, kept on theme) ---------- */
html body .daterangepicker .ranges li {
	border-radius: 6px;
	font-size: 13px;
}
html body .daterangepicker .ranges li.active {
	background: #FAC917;
	color: #1f2024;
}

/* ---------- 8. Phones: bigger targets inside the bottom sheet ---------- */
@media screen and (max-width: 767px) {
	html body > .daterangepicker {
		padding: 6px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
		margin: 0 !important;
	}
	html body > .daterangepicker .drp-calendar,
	html body > .daterangepicker .drp-calendar.left,
	html body > .daterangepicker .drp-calendar.right {
		padding: 0 !important;
		margin-bottom: 6px;
	}
	html body > .daterangepicker .drp-calendar.right {
		border-top: 1px solid #eceef1 !important;
		padding-top: 8px !important;
	}
	html body .daterangepicker .calendar-table table {
		width: 100%;
		table-layout: fixed;
	}
	/* calendars inside a search panel: custom.css makes each one 50% wide;
	   stack them full width like the sheet */
	html body .embedded-daterangepicker .daterangepicker .drp-calendar.left,
	html body .embedded-daterangepicker .daterangepicker .drp-calendar.right {
		width: 100%;
		max-width: 100%;
		float: none;
	}
	html body .embedded-daterangepicker .daterangepicker .drp-calendar.left:not(.single) {
		border-right: 0;
	}
	html body .embedded-daterangepicker .daterangepicker .drp-calendar.right {
		border-top: 1px solid #eceef1;
		margin-top: 6px;
		padding-top: 8px;
	}
	html body > .daterangepicker .calendar-table td,
	html body > .daterangepicker .calendar-table th {
		width: auto;
		min-width: 0;
		height: 42px;
		line-height: 42px;
		font-size: 15px;
	}
	html body .daterangepicker .calendar-table thead tr:first-child th:first-child,
	html body .daterangepicker .calendar-table thead tr:first-child th:last-child {
		width: 14.2857%;
	}
	html body .daterangepicker .calendar-table thead tr:first-child th.month {
		width: 71.4286%;
	}
	html body .daterangepicker .calendar-table th.month {
		font-size: 16px;
	}
	html body > .daterangepicker .calendar-table thead tr:first-child th {
		height: 48px;
		line-height: 48px;
	}
	html body .daterangepicker .calendar-table th.prev span,
	html body .daterangepicker .calendar-table th.next span {
		width: 44px;
		height: 44px;
	}
	html body .daterangepicker .calendar-table thead tr:last-child th {
		height: 28px;
		line-height: 28px;
		font-size: 12px;
	}
	html body .daterangepicker select.monthselect,
	html body .daterangepicker select.yearselect,
	html body .daterangepicker .calendar-time select {
		height: 42px;
		line-height: 40px;
		font-size: 16px;  /* 16px stops iOS zooming in on focus */
	}
	html body > .daterangepicker .drp-buttons {
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
		position: sticky;
		bottom: 0;
		background: #fff;
		padding: 12px 0 0 !important;
		margin-top: 4px;
		text-align: left;
	}
	html body > .daterangepicker.show-calendar .drp-buttons {
		display: flex;
	}
	html body > .daterangepicker .drp-buttons .drp-selected {
		flex: 1 0 100%;
		margin: 0 0 4px !important;
		padding: 0;
	}
	html body > .daterangepicker .drp-buttons .btn {
		flex: 1 1 0;
		height: 44px;
		line-height: 42px;
		margin: 0 !important;
		font-size: 15px;
	}
}
