/* 0.15.29.6 overnight design batch (Fadi, November 25 2026): v2-home */
/*
 * Home batch styles. Loaded after theme.css and r-home.css, so these new
 * rules win without editing the shared files. Sections:
 *   1. Search bar: shorter bar, icon-only Search button (home and /search/)
 *   2. Dates calendar: floats over the page (no page jump), tighter days,
 *      under the Dates field on a computer, a full-width sheet on a phone
 *   3. Home "Search by region": owner button in the header, region photos
 *   4. Home "How it works": colour lake photo, credit, button alignment
 *   5. Cookie banner (CookieAdmin box): title, text, Accept all / Only
 *      necessary / Manage preferences in one row on a computer
 * Brand colours only: Harbour Navy #1C2B45, Lake Blue #44708F, Mist
 * #F2F5F8, Line #DCE4EC. Gold is never a button. Focus rings stay visible.
 * Phone layout at 781px and below (same breakpoint as theme.css).
 */

/* ------------------------------------------------------------------ */
/* 0. Home hero (Fadi, 9:17 pm): larger "COTTAGE RENTALS" eyebrow, one  */
/*    two-line headline, search bar higher so the far shore shows below */
/* ------------------------------------------------------------------ */
.dl-hero { padding-top: 64px; }
.dl-hero .dl-hero__text { max-width: 1000px; gap: 16px; }
.dl-hero .dl-hero__eyebrow { font-size: 17px; letter-spacing: .3em; }
.dl-hero .dl-hero__title { font-size: 60px; line-height: 1.08; text-wrap: balance; }
.dl-hero .dl-search--hero { margin-top: 36px; }
/* The photo sits a little lower in the frame, so the shoreline and water
   show under the bar at 1440 x 900 and 1280 x 720 (same file, no crop). */
.dl-hero__media img { object-position: center 50%; }
@media (max-width: 1024px) {
	.dl-hero .dl-hero__title { font-size: 52px; }
}
@media (max-width: 781px) {
	.dl-hero { padding-top: 40px; }
	.dl-hero .dl-search--hero { margin-top: auto; } /* phone keeps the bar near the bottom of the photo */
	.dl-hero .dl-hero__eyebrow { font-size: 14px; letter-spacing: .22em; }
	.dl-hero .dl-hero__title { font-size: 34px; line-height: 1.12; }
	.dl-hero__media img { object-position: 30% center; }
}

/* ------------------------------------------------------------------ */
/* 1. Search bar                                                        */
/* ------------------------------------------------------------------ */
/* "Shorten the height of the rectangular search box": 76px -> 64px.
   0.15.29.7 (Fadi, November 26 2026: "a little more thinner"): the bar's
   outside height goes from 76px (64px inside + 2 x 6px padding) to 56px
   (46px inside + 2 x 5px padding). The same bar (DL_Search_UI) is used on
   home, /search/ and every page that prints it, so this one rule changes it
   everywhere. Each part and the search button stay 46px tall (tap target
   above 44px). */
.dl-sbar { --sb-h: 46px; }
.dl-sbar .dl-sbar__bar { padding: 5px; }
.dl-sbar .dl-sbar__seg { padding: 2px 18px; gap: 0; }
.dl-sbar .dl-sbar__seg + .dl-sbar__seg { background-size: 1px 28px; }
.dl-sbar .dl-sbar__input,
.dl-sbar .dl-sbar__trigger,
.dl-sbar .dl-sbar__select { min-height: 24px; line-height: 1.35; }

/* Search button: only the magnifying glass, larger, in a smaller Lake Blue
   square (the word "Search" is the button's aria-label). */
.dl-sbar .dl-sbar__submit--icon {
	width: 46px; min-width: 46px; height: 46px; /* 0.15.29.7: 52 -> 46 px with the 56 px bar (tap target stays above 44 px) */
	padding: 0; gap: 0;
	align-self: center;
	border-radius: 8px;
}
.dl-sbar .dl-sbar__submit--icon svg { width: 24px; height: 24px; stroke-width: 2.4; }

@media (max-width: 781px) {
	/* Phone: Where on its own row; Dates, Guests and the square button below. */
	.dl-sbar { --sb-h: auto; }
	.dl-sbar .dl-sbar__bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; padding: 4px; }
	.dl-sbar .dl-sbar__seg { padding: 6px 12px; min-height: 50px; } /* 0.15.29.7: 56 -> 50 px (tap target stays above 44 px) */
	.dl-sbar .dl-sbar__seg--where { grid-column: 1 / -1; }
	.dl-sbar .dl-sbar__submit--icon {
		grid-column: auto;
		width: 44px; min-width: 44px; height: 44px; min-height: 44px; /* 0.15.29.7: 48 -> 44 px */
		margin: 4px 4px 0 6px;
	}
}

/* ------------------------------------------------------------------ */
/* 2. Dates calendar                                                    */
/* ------------------------------------------------------------------ */
/* Computer: the calendar is placed against the Dates field (left edges
   line up) and floats over the page; search-bar.js adds .is-up to open it
   above the bar when the window has no room below. */
@media (min-width: 1100px) {
	.dl-sbar .dl-sbar__seg--dates { position: relative; }
	.dl-sbar .dl-sbar__cal { left: -6px; top: calc(100% + 14px); transform: none; }
	.dl-sbar .dl-sbar__cal.is-up { top: auto; bottom: calc(100% + 14px); }
}
@media (min-width: 782px) and (max-width: 1099px) {
	.dl-sbar .dl-sbar__cal.is-up { top: auto; bottom: calc(100% + 10px); }
}
/* Opened above the bar, the calendar may cover the sticky header (z-index
   50) while it is open, so it fits a 1280 x 720 window with no scrolling. */
.dl-hero:has(.dl-sbar__cal.is-up:not([hidden])) { z-index: 60; }
@media (min-width: 782px) {
	/* Tighter: 34px days, two months side by side, about 350px tall. */
	.dl-sbar .dl-sbar__cal { width: 576px; max-width: calc(100vw - 32px); }
	.dl-sbar .dl-cal__tabs { margin: 10px auto 0; padding: 3px; }
	.dl-sbar .dl-cal__tab { min-height: 30px; padding: 0 16px; font-size: 14px; }
	.dl-sbar .dl-cal__body { padding: 6px 18px 6px; }
	.dl-sbar .dl-cal__nav { left: 12px; right: 12px; top: 4px; }
	.dl-sbar .dl-cal__arrow { width: 32px; height: 32px; }
	.dl-sbar .dl-cal__months { gap: 24px; }
	.dl-sbar .dl-cal__title { margin: 2px 0 6px; font-size: 15px; line-height: 22px; }
	.dl-sbar .dl-cal__grid { gap: 0; }
	.dl-sbar .dl-cal__dow { padding-bottom: 4px; font-size: 11px; }
	.dl-sbar .dl-cal__day { width: 34px; height: 32px; font-size: 14px; border-radius: 6px; }
	.dl-sbar .dl-cal__cell.is-range::before { inset: 1px 0; }
	.dl-sbar .dl-cal__intro { margin: 2px 0 12px; font-size: 14px; }
	.dl-sbar .dl-cal__mchip { min-height: 54px; padding: 8px 12px; }
	.dl-sbar .dl-sbar__cal .dl-sbar__popfoot { padding: 8px 16px; gap: 12px; }
	.dl-sbar .dl-sbar__cal .dl-cal__summary { font-size: 14px; }
	.dl-sbar .dl-sbar__cal .dl-sbar__link,
	.dl-sbar .dl-sbar__cal .dl-sbar__apply { min-height: 38px; font-size: 14px; }
}

/* Phone: a full-width sheet fixed to the bottom of the screen, over the
   page (nothing below it moves), with a dim backdrop drawn by its shadow. */
@media (max-width: 781px) {
	.dl-sbar .dl-sbar__cal {
		position: fixed;
		left: 0; right: 0; top: auto; bottom: 0;
		width: auto; max-width: none;
		max-height: 88vh; max-height: 88dvh;
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: none;
		z-index: 1000;
		border: 0;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 0 0 100vmax rgba(10, 20, 40, .45), 0 -8px 24px rgba(10, 20, 40, .18);
	}
	.dl-sbar .dl-cal__tabs { margin-top: 14px; }
	.dl-sbar .dl-cal__day { width: 100%; max-width: 44px; height: 42px; }
	/* Clear / Apply stay in view at the bottom of the sheet. */
	.dl-sbar .dl-sbar__cal .dl-sbar__popfoot {
		position: sticky; bottom: 0;
		background: #fff;
		padding-bottom: max(12px, env(safe-area-inset-bottom));
	}
}

/* ------------------------------------------------------------------ */
/* 3. Home "Search by region"                                           */
/* ------------------------------------------------------------------ */
/* One owner button in the section header, beside "All Ontario regions". */
.dl-sechead__link.dl-regions__actions { display: flex; align-items: center; gap: 20px; }
.dl-regions__actions .dl-regions__own {
	display: inline-flex; align-items: center;
	min-height: 40px; padding: 0 16px;
	border: 1.5px solid var(--dl-navy, #1C2B45); border-radius: 999px;
	background: #fff;
	color: var(--dl-navy, #1C2B45);
	font-size: 15px; font-weight: 600;
	text-decoration: none !important;
	transition: background-color .15s ease;
}
.dl-regions__actions .dl-regions__own:hover { background: var(--dl-mist, #F2F5F8); }
.dl-regions__actions .dl-regions__own:focus-visible { outline: 3px solid var(--dl-lake, #44708F); outline-offset: 2px; }

/* Region photos fill the card's frame (the frame keeps its size, so no shift). */
.dl-region__media .dl-region__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dl-region:hover .dl-region__img { filter: brightness(1.04); }
.dl-regions__credit { margin: 10px 0 0; font-size: 13px; text-align: right; }
.dl-regions__credit a { color: var(--dl-muted, #5B6B80); text-underline-offset: 3px; }

@media (max-width: 781px) {
	.dl-sechead__link.dl-regions__actions { gap: 12px; }
	.dl-regions__actions .dl-regions__own { min-height: 36px; padding: 0 12px; font-size: 14px; }
	.dl-regions__credit { text-align: left; }
}

/* ------------------------------------------------------------------ */
/* 4. Home "How it works"                                               */
/* ------------------------------------------------------------------ */
.dl-how__media--lake .dl-how__img {
	display: block;
	width: 100%; aspect-ratio: 6 / 5; height: auto;
	object-fit: cover; object-position: center 55%;
	border-radius: 12px;
	box-shadow: 0 24px 48px rgba(28, 43, 69, .18);
}
.dl-how__credit { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: var(--dl-muted, #5B6B80); }
.dl-how__credit a { color: inherit; text-underline-offset: 2px; }
/* Computer: the credit sits under the navy frame, so the frame still
   wraps only the photo (the caption takes no height: no layout change). */
@media (min-width: 782px) {
	.dl-how__media--lake .dl-how__credit { position: absolute; left: 20px; right: -20px; top: calc(100% + 28px); margin: 0; }
}

/* "Start your search": lines up with the step text column (60px circle +
   24px gap) with clear space under the last step. */
.dl-how .dl-how__content > .dl-how__cta { margin: 36px 0 0 84px !important; }
@media (max-width: 781px) {
	.dl-how .dl-how__content > .dl-how__cta { margin: 28px 0 0 !important; }
	.dl-how__media--lake .dl-how__img { aspect-ratio: 16 / 10; }
}

/* ------------------------------------------------------------------ */
/* 5. Cookie banner                                                     */
/* ------------------------------------------------------------------ */
/* Option values (title, text, button names, colours, position) are in the
   CookieAdmin settings; these rules set the layout. Non-essential cookies
   stay off until "Accept all" (CookieAdmin GDPR opt-in mode). */
@media (min-width: 768px) {
	.cookieadmin_law_container.cookieadmin_box {
		width: min(600px, calc(100vw - 40px)) !important;
		max-width: 600px !important;
		left: auto !important; right: 20px !important; bottom: 20px !important;
	}
}
.cookieadmin_law_container.cookieadmin_box .cookieadmin_consent_inside {
	padding: 20px 22px 16px !important;
	border: 1px solid #DCE4EC !important;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(28, 43, 69, .22);
	color: #1C2B45 !important;
}
.cookieadmin_law_container.cookieadmin_box p#cookieadmin_notice_title {
	margin: 0 0 8px !important;
	font-family: var(--dl-sans, "Instrument Sans", sans-serif);
	font-size: 18px !important; font-weight: 600; line-height: 1.3;
	color: #1C2B45 !important;
}
.cookieadmin_law_container.cookieadmin_box p#cookieadmin_notice {
	font-size: 14px; line-height: 1.55;
	color: #3B4A60 !important;
}
.cookieadmin_law_container.cookieadmin_box p#cookieadmin_notice a {
	color: #44708F !important;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
}
/* One row: Accept all, Only necessary (both navy), Manage preferences (text link). */
.cookieadmin_law_container.cookieadmin_box .cookieadmin_consent_btns {
	display: flex !important; flex-direction: row !important; flex-wrap: wrap;
	align-items: center; justify-content: flex-start;
	gap: 10px 12px; margin-top: 16px;
}
.cookieadmin_law_container.cookieadmin_box .cookieadmin_consent_btns button.cookieadmin_btn {
	flex: 0 0 auto !important;
	min-height: 44px; padding: 0 20px !important;
	border-radius: 8px;
	font-size: 15px !important; font-weight: 600;
	width: auto !important;
}
.cookieadmin_law_container.cookieadmin_box .cookieadmin_accept_btn,
.cookieadmin_law_container.cookieadmin_box .cookieadmin_reject_btn {
	background: #1C2B45 !important; border: 1px solid #1C2B45 !important; color: #FFFFFF !important;
}
.cookieadmin_law_container.cookieadmin_box .cookieadmin_accept_btn:hover,
.cookieadmin_law_container.cookieadmin_box .cookieadmin_reject_btn:hover { background: #2A3D5E !important; filter: none; }
.cookieadmin_law_container.cookieadmin_box .cookieadmin_customize_btn {
	background: transparent !important; border: 0 !important;
	color: #44708F !important;
	padding: 0 8px !important;
	text-decoration: underline !important; text-underline-offset: 3px;
}
.cookieadmin_law_container.cookieadmin_box .cookieadmin_btn:focus-visible { outline: 3px solid #44708F !important; outline-offset: 2px; }
.cookieadmin_law_container.cookieadmin_box .cookieadmin-poweredby { margin-top: 8px; opacity: .7; }
.cookieadmin_law_container.cookieadmin_box .cookieadmin-poweredby a { justify-content: flex-end; }
@media (max-width: 767px) {
	.cookieadmin_law_container.cookieadmin_box { left: 12px !important; right: 12px !important; bottom: 12px !important; width: auto !important; max-height: 70vh; overflow-y: auto; }
	.cookieadmin_law_container.cookieadmin_box .cookieadmin_consent_inside { padding: 16px !important; }
	.cookieadmin_law_container.cookieadmin_box .cookieadmin_accept_btn,
	.cookieadmin_law_container.cookieadmin_box .cookieadmin_reject_btn { flex: 1 1 0 !important; }
	.cookieadmin_law_container.cookieadmin_box .cookieadmin_customize_btn { flex: 1 1 100% !important; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.dl-regions__actions .dl-regions__own { transition: none; }
}

/* ------------------------------------------------------------------ */
/* 0.15.29.7: Why Dock & Loon, renters band photo credit                */
/* ------------------------------------------------------------------ */
/* The colour Whitestone Lake photo (DL_Docs::why_renters_photo()) keeps
   the band's background layout; its credit sits on a dark scrim at the
   bottom of the photo, small and readable (white on navy). */
.dl-why__media--photo { display: flex; align-items: flex-end; overflow: hidden; }
.dl-why__credit {
	display: block; width: 100%; padding: 10px 14px;
	background: rgba(28, 43, 69, .78); color: #fff;
	font-size: 12px; line-height: 1.4;
}
.dl-why__credit a { color: #fff !important; text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* 0.15.29.7: Home "Quebec cottages" (opening soon)                     */
/* ------------------------------------------------------------------ */
/* Same card grid as the Ontario regions just above (.dl-regions); it
   follows that section closely, so its top padding is smaller. */
.dl-sec.dl-sec--quebec { padding-top: 8px; }
/* Placeholder photo frame (no licensed Quebec photo yet): the loon mark on
   a light lake-blue panel, the same placeholder the guide cards use. */
.dl-region__media--ph {
	background: url('../images/loon-mark-navy.svg') center / 26% no-repeat, linear-gradient(135deg, #E6EEF4 0%, #F2F5F8 100%);
	border: 1px solid var(--dl-line, #DCE4EC);
}
.dl-region--soon { cursor: default; }
.dl-region--soon .dl-region__name { text-decoration: none !important; }
.dl-region--soon .dl-region__count { color: var(--dl-muted, #5B6B80); }
/* The owner card: navy panel the same height as a photo frame. */
.dl-region--qcown {
	display: flex; flex-direction: column; justify-content: center; gap: 8px;
	box-sizing: border-box; align-self: start;
	aspect-ratio: 294 / 220; padding: 22px 24px; border-radius: 18px;
	background: var(--dl-navy, #1C2B45); color: #fff !important;
}
.dl-region--qcown:hover { background: #24375A; }
.dl-region--qcown:focus-visible { outline: 3px solid var(--dl-lake, #44708F); outline-offset: 3px; }
.dl-region__qcown-title { font-family: var(--dl-serif); font-size: 24px; line-height: 1.15; }
.dl-region__qcown-text { font-size: 15px; line-height: 1.45; color: #DCE4EC; }
.dl-region__qcown-cta { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--dl-sun, #F2C14E); text-decoration: underline; text-underline-offset: 3px; }
.dl-sechead__text .dl-regions__note { margin: 6px 0 0; font-size: 15px; color: var(--dl-muted, #5B6B80); }
@media (max-width: 781px) {
	.dl-sec.dl-sec--quebec { padding-top: 0; }
	.dl-region--qcown { flex: 0 0 220px; aspect-ratio: 220 / 150; padding: 16px 18px; gap: 4px; }
	.dl-region__qcown-title { font-size: 20px; }
	.dl-region__qcown-text { font-size: 14px; }
}
