/* ==========================================================================
   namore — homepage sections, account modals, dashboard, travel tools.

   Fix for the "search bar doesn't fit the frame" bug: the hero no longer
   clips its own overflow — only the background illustration layer does,
   so the search card can safely overlap the hero's bottom edge.

   Fix for the "page scrolls sideways" bug: nothing here uses a fixed pixel
   width; everything is fluid (100% / max-width), grids collapse at the
   breakpoints below, and box-sizing is border-box throughout.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }

:root {
	--namore-ink: #1c2536;
	--namore-bg: #f7f4ee;
	--namore-bg-alt: #ece4d6;
	--namore-white: #fffdf9;
	--namore-sea: #2f6690;
	--namore-sea-dark: #1f4d6e;
	--namore-terracotta: #c9744a;
	--namore-terracotta-dark: #a85a35;
	--namore-line: #ddd5c8;
}

.namore-btn-primary {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; border: none;
	background: var(--namore-terracotta); color: var(--namore-white);
	font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
}
.namore-btn-primary:hover { background: var(--namore-terracotta-dark); color: var(--namore-white); }
.namore-btn-block { width: 100%; justify-content: center; }
.namore-btn-ghost {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--namore-line);
	background: var(--namore-white); color: var(--namore-ink);
	font-weight: 700; font-size: 13.5px; text-decoration: none; cursor: pointer;
}
.namore-btn-ghost:hover { border-color: var(--namore-ink); }
.namore-linklike { background: none; border: none; padding: 0; color: var(--namore-sea); font-weight: 700; cursor: pointer; text-decoration: underline; }
.namore-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--namore-terracotta); margin: 0 0 12px; }
.namore-empty { color: #6b6558; font-size: 14px; }
.namore-section-heading { font-size: 32px; max-width: 1220px; margin: 0 auto; padding: 0 20px 6px; }
.namore-section-sub { max-width: 1220px; margin: 0 auto; padding: 0 20px 28px; color: #46412f; font-size: 15px; }
.namore-section { padding: 48px 0; }
.namore-section--alt { background: var(--namore-bg-alt); }

/* ---------------- Hero ---------------- */
.namore-hero {
	position: relative;
	min-height: 560px;
	padding-bottom: 90px; /* room for the search card to overlap without clipping */
	overflow: visible;    /* <-- the fix: was overflow:hidden, which clipped the card */
	background: linear-gradient(180deg, #b9d4e4 0%, #e7dcc4 62%, #ecdfc9 100%);
	border-radius: 0 0 28px 28px;
}
.namore-hero__photo,
.namore-hero__art {
	position: absolute; inset: 0; width: 100%; height: 100%;
	border-radius: inherit; overflow: hidden;
	background-size: cover; background-position: center;
}
.namore-hero__art { display: block; }
.namore-hero__copy { position: relative; z-index: 2; max-width: 1220px; margin: 0 auto; padding: 72px 40px 0; }
.namore-hero__copy h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; max-width: 640px; margin: 0; }
.namore-hero__sub { margin-top: 16px; font-size: 17px; max-width: 480px; color: #33405a; }

.namore-searchcard {
	position: relative; z-index: 3;
	max-width: 1140px; margin: 32px auto 0;
	background: var(--namore-white); border-radius: 20px;
	box-shadow: 0 20px 44px -18px rgba(28,37,54,0.28);
	padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px 4px; align-items: stretch;
}
.namore-field { flex: 1 1 140px; min-width: 130px; padding: 4px 16px; border-right: 1px solid var(--namore-line); }
.namore-field:last-of-type { border-right: none; }
.namore-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #6b6558; margin-bottom: 4px; }
.namore-field input { border: none; padding: 0; font: inherit; font-size: 14.5px; width: 100%; background: transparent; color: var(--namore-ink); }
.namore-field input:focus { outline: none; }
.namore-search-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
	padding: 0 26px; border-radius: 14px; border: none; background: var(--namore-terracotta); color: var(--namore-white);
	font-size: 14.5px; font-weight: 700; cursor: pointer; min-height: 46px;
}
.namore-search-btn:hover { background: var(--namore-terracotta-dark); }

/* ---------------- Chips ---------------- */
.namore-chiprow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 28px 20px 0; overflow-x: auto; }
.namore-chip {
	padding: 10px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700; cursor: pointer;
	border: 1.5px solid var(--namore-line); background: var(--namore-white); color: var(--namore-ink); flex-shrink: 0;
}
.namore-chip.is-active { background: var(--namore-terracotta); border-color: var(--namore-terracotta); color: var(--namore-white); }

/* ---------------- Listing grid ---------------- */
.namore-listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px 20px; padding: 32px 20px; max-width: 1220px; margin: 0 auto; }
.namore-listing-card { position: relative; display: flex; flex-direction: column; }
.namore-listing-card[hidden] { display: none; }
.namore-thumb { position: relative; display: block; height: 168px; border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; }
.namore-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.namore-sponsor-tag { position: absolute; top: 12px; left: 12px; background: var(--namore-white); font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.namore-heart-btn { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 999px; background: rgba(28,37,54,0.35); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--namore-white); }
.namore-heart-btn svg { fill: none; stroke: currentColor; }
.namore-heart-btn.is-active svg { fill: #e0654a; stroke: var(--namore-white); }
.namore-listing-body { padding-top: 12px; }
.namore-listing-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.namore-listing-title { font-size: 15.5px; font-weight: 700; color: var(--namore-ink); text-decoration: none; }
.namore-rating { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; flex-shrink: 0; }
.namore-rating svg { fill: var(--namore-terracotta); }
.namore-listing-loc { font-size: 13.5px; color: #5b5647; margin-top: 3px; }
.namore-listing-type { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--namore-sea-dark); background: #dbe7ee; padding: 3px 9px; border-radius: 6px; margin-top: 8px; }
.namore-listing-price { margin-top: 9px; font-size: 14.5px; }
.namore-listing-price b { font-size: 16.5px; }

/* ---------------- Region grid ---------------- */
.namore-region-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.namore-region-card { display: block; border-radius: 16px; overflow: hidden; background: var(--namore-white); border: 1px solid var(--namore-line); text-decoration: none; color: var(--namore-ink); }
.namore-region-art { height: 100px; display: flex; align-items: center; justify-content: center; }
.namore-region-body { padding: 14px 16px 16px; }
.namore-region-name { font-size: 16px; font-weight: 700; }
.namore-region-count { font-size: 13px; color: #5b5647; margin-top: 3px; }

/* ---------------- Journal ---------------- */
.namore-journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.namore-journal-card { background: var(--namore-white); border-radius: 18px; overflow: hidden; border: 1px solid var(--namore-line); }
.namore-journal-art { display: block; height: 160px; background-size: cover; background-position: center; }
.namore-journal-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.namore-journal-body { padding: 20px 22px 24px; }
.namore-journal-place { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--namore-terracotta); }
.namore-journal-body h3 { font-size: 19px; margin: 8px 0 0; }
.namore-journal-body h3 a { color: var(--namore-ink); text-decoration: none; }
.namore-journal-excerpt { font-size: 14px; line-height: 1.55; color: #46412f; margin: 10px 0 0; }
.namore-journal-sourced { font-size: 12px; color: #7a7361; margin: 10px 0 0; font-style: italic; }

/* ---------------- Why us ---------------- */
.namore-why-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.namore-why-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #dbe7ee; color: var(--namore-sea-dark); margin-bottom: 14px; }
.namore-why-item h3 { font-size: 18px; margin: 0; }
.namore-why-item p { font-size: 14.5px; line-height: 1.55; color: #46412f; margin: 8px 0 0; }

/* ---------------- Host CTA ---------------- */
.namore-host-cta {
	max-width: 1220px; margin: 0 auto; border-radius: 24px; padding: 44px 44px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
	background: var(--namore-ink); color: #eef0f5;
}
.namore-host-cta h2 { color: var(--namore-white); font-size: 26px; margin: 0; max-width: 460px; }
.namore-host-cta p { color: #b9c0d1; font-size: 14.5px; margin: 10px 0 0; max-width: 420px; }

/* ---------------- Compare rates (single listing) ---------------- */
.namore-compare { max-width: 720px; margin: 32px 0; }
.namore-compare__notice { font-size: 13px; color: #8a5a1f; background: #fbeecd; padding: 8px 14px; border-radius: 10px; display: inline-block; }
.namore-compare__table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.namore-compare__table td { padding: 12px 10px; border-bottom: 1px solid var(--namore-line); vertical-align: middle; }
.namore-demo-flag { font-size: 10px; text-transform: uppercase; background: var(--namore-bg-alt); padding: 2px 6px; border-radius: 6px; margin-left: 4px; }

/* ---------------- Contact host / journal sources / search results ---------------- */
.namore-contact-host { margin: 28px 0; padding: 24px; border-radius: 16px; background: var(--namore-bg-alt); }
.namore-contact-host h3 { margin: 0 0 6px; font-size: 18px; }
.namore-contact-host p { margin: 0 0 14px; color: #46412f; font-size: 14px; }
.namore-sources { margin: 32px 0; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--namore-line); }
.namore-sources__disclaimer { font-style: italic; color: #6b6558; font-size: 13.5px; margin: 0 0 12px; }
.namore-sources h3 { font-size: 14px; margin: 0 0 8px; }
.namore-sources ul { margin: 0; padding-left: 18px; font-size: 14px; }
.namore-results-count { color: #6b6558; font-size: 14px; margin: 0 0 20px; }
.namore-pagination { display: flex; gap: 8px; justify-content: center; margin: 32px 0; }
.namore-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--namore-line); text-decoration: none; color: var(--namore-ink); }
.namore-pagination .page-numbers.current { background: var(--namore-terracotta); color: var(--namore-white); border-color: var(--namore-terracotta); }

/* ---------------- Account: header controls ---------------- */
.namore-login-link { background: none; border: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--namore-ink); }
.namore-account-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--namore-line); border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--namore-ink); }
.namore-account-avatar { width: 26px; height: 26px; border-radius: 999px; background: var(--namore-sea); color: var(--namore-white); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---------------- Modals ---------------- */
.namore-modal-layer { position: fixed; inset: 0; z-index: 1000; background: rgba(28,37,54,0.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.namore-modal-layer[hidden] { display: none; }
.namore-modal { position: relative; width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto; background: var(--namore-white); border-radius: 20px; padding: 32px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4); }
.namore-modal[hidden] { display: none; }
.namore-modal__close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: #6b6558; }
.namore-modal h2 { font-size: 22px; margin: 0 0 6px; }
.namore-modal__switch { font-size: 13.5px; color: #5b5647; margin: 0 0 20px; }
.namore-modal form { display: flex; flex-direction: column; gap: 14px; }
.namore-modal label { font-size: 13px; font-weight: 700; color: var(--namore-ink); display: flex; flex-direction: column; gap: 6px; }
.namore-modal input[type="text"], .namore-modal input[type="email"], .namore-modal input[type="password"] {
	font: inherit; font-size: 14.5px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--namore-line); background: var(--namore-bg);
}
.namore-input-row { display: flex; gap: 8px; }
.namore-input-row input { flex: 1; }
.namore-form__error { color: #b23b3b; font-size: 13px; margin: 0; }
.namore-form__hint { font-size: 12.5px; color: #7a7361; margin: 4px 0 0; }

/* ---------------- Dashboard popup ---------------- */
.namore-dash__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.namore-dash__avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--namore-sea); color: var(--namore-white); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.namore-dash__badges-row { display: flex; gap: 8px; margin-bottom: 12px; }
.namore-pill { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--namore-sea); color: var(--namore-white); }
.namore-pill--flame { background: #fbeecd; color: #8a5a1f; }
.namore-progress { height: 8px; border-radius: 999px; background: var(--namore-bg-alt); overflow: hidden; }
.namore-progress__bar { height: 100%; background: var(--namore-terracotta); }
.namore-dash__to-next { font-size: 12.5px; color: #7a7361; margin: 8px 0 18px; }
.namore-dash__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.namore-dash__stats div { background: var(--namore-bg); border-radius: 12px; padding: 12px 14px; }
.namore-dash__stats dt { font-size: 12px; color: #7a7361; margin: 0; }
.namore-dash__stats dd { font-size: 20px; font-weight: 700; margin: 4px 0 0; }
.namore-dash__badges { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.namore-badge { font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--namore-bg); }
.namore-badge.is-locked { opacity: 0.5; }
.namore-dash__actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------------- Favorites popup ---------------- */
.namore-favorites__list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.namore-favorites__list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--namore-ink); }
.namore-favorites__thumb { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; background-size: cover; background-position: center; overflow: hidden; }
.namore-favorites__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Travel tools ---------------- */
.namore-tool { max-width: 640px; margin: 0 auto; padding: 20px 0 60px; }
.namore-tool__form { display: flex; flex-direction: column; gap: 16px; }
.namore-tool__form--row { flex-direction: row; flex-wrap: wrap; align-items: end; }
.namore-tool__form--row label { flex: 1 1 100px; }
.namore-tool__form label { font-size: 13px; font-weight: 700; display: flex; flex-direction: column; gap: 6px; }
.namore-tool__form input, .namore-tool__form select {
	font: inherit; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--namore-line); background: var(--namore-white);
}
.namore-tool__form fieldset { border: 1px solid var(--namore-line); border-radius: 12px; padding: 12px 16px; }
.namore-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.namore-tool__result { margin-top: 24px; }
.namore-tool__note { font-size: 12.5px; color: #7a7361; margin-top: 14px; }
.namore-result-big { font-size: 22px; font-weight: 700; }
.namore-packing-lists { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-bottom: 20px; }
.namore-packing-group h4 { margin: 0 0 8px; font-size: 14px; }
.namore-packing-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.namore-budget-breakdown { display: flex; flex-direction: column; gap: 8px; }
.namore-budget-breakdown div { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--namore-bg-alt); border-radius: 10px; }
.namore-budget-total { background: var(--namore-ink) !important; color: var(--namore-white); font-weight: 700; }

/* ==========================================================================
   Responsive — collapses to fluid single/double columns, no horizontal
   scroll at any width.
   ========================================================================== */
@media (max-width: 900px) {
	.namore-listing-grid, .namore-region-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.namore-journal-grid, .namore-why-grid { grid-template-columns: 1fr; }
	.namore-searchcard { flex-direction: column; }
	.namore-field { border-right: none; border-bottom: 1px solid var(--namore-line); padding: 10px 4px; }
	.namore-field:last-of-type { border-bottom: none; }
	.namore-search-btn { min-height: 48px; }
}

@media (max-width: 640px) {
	.namore-listing-grid, .namore-region-grid { grid-template-columns: 1fr; }
	.namore-hero__copy { padding: 48px 20px 0; }
	.namore-host-cta { padding: 28px; flex-direction: column; align-items: flex-start; }
	.namore-packing-lists { grid-template-columns: 1fr; }
	.namore-tool__form--row { flex-direction: column; align-items: stretch; }
}
