/*
 * Alpage design for La Récup' (theme option Design = Alpage). Loaded after the classic styles: the home page,
 * header and footer are its own markup (ap-*); every other page keeps the classic markup and is restyled here.
 * Phone first: 83% of visitors are on phones.
 */
body.alpage {
    --cream: #f7f4ec; --cream-2: #efeadd; --paper: #fffdf8; --line: #e4dfd1;
    --ink: #1b2219; --ink-2: #4f5a4b; --ink-3: #6f7a6a;
    --forest: #1d4a2a; --forest-2: #245c34; --leaf: #3aa935; --leaf-dark: #2f8f2b; --leaf-soft: #e3f1d9; --star: #e0352b;
    --r: 20px; --shadow: 0 1px 2px rgba(27, 34, 25, .05), 0 18px 40px -22px rgba(27, 34, 25, .35);
    --serif: 'Fraunces', Georgia, serif;
    background: var(--cream);
    color: var(--ink);
    font: 400 16px/1.55 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 0;
}
body.alpage *, body.alpage *::before, body.alpage *::after { box-sizing: border-box; }
body.alpage h1, body.alpage h2, body.alpage h3, body.alpage h4, body.alpage h5, body.alpage h6 { font-family: 'Figtree', system-ui, sans-serif; color: var(--ink); }
body.alpage a { color: var(--forest-2); }
body.alpage a:hover, body.alpage a:focus { color: var(--leaf-dark); }
body.alpage img { max-width: 100%; }
body.alpage .ap-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* buttons */
.alpage .ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15.5px; text-decoration: none; border: 0; }
.alpage .ap-btn svg { width: 18px; height: 18px; }
.alpage .ap-btn-leaf, .alpage .ap-btn-leaf:hover, .alpage .ap-btn-leaf:focus { background: var(--leaf); color: #fff; box-shadow: 0 8px 20px -10px rgba(58, 169, 53, .9); }
.alpage .ap-btn-leaf:hover { background: var(--leaf-dark); }
.alpage .ap-btn-ghost { border: 1.5px solid var(--line); background: var(--paper); color: var(--forest); }
.alpage .ap-btn-white, .alpage .ap-btn-white:hover { background: #fff; color: var(--forest); }

/* utility bar + header */
.alpage .ap-util { background: var(--forest); color: #d8e6d3; font-size: 13px; }
.alpage .ap-util .ap-wrap { display: flex; justify-content: flex-end; align-items: center; min-height: 38px; gap: 12px; }
.alpage .ap-langs { display: flex; gap: 4px; }
.alpage .ap-langs a { padding: 6px 9px; border-radius: 6px; font-weight: 600; letter-spacing: .02em; color: #d8e6d3; text-decoration: none; }
.alpage .ap-langs a.on, .alpage .ap-langs a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.alpage .ap-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.alpage .ap-header > .ap-wrap { display: flex; align-items: center; gap: 36px; min-height: 84px; padding-top: 10px; padding-bottom: 10px; }
.alpage .ap-brand { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.alpage .ap-logo { min-width: 0; align-self: flex-start; }
/* the strapline under the logo */
.alpage .ap-util-text { font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.alpage .ap-util-text b { color: var(--forest); font-weight: 600; }
.alpage .ap-logo img { height: 44px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.alpage .ap-logo span { font: 600 24px var(--serif); color: var(--forest); }
.alpage .ap-nav { display: flex; gap: 26px; font-weight: 500; font-size: 15.5px; }
.alpage .ap-nav a { color: var(--ink-2); text-decoration: none; }
.alpage .ap-nav a.on, .alpage .ap-nav a:hover { color: var(--ink); }
.alpage .ap-hright { margin-left: auto; display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 15px; flex: none; }
.alpage .ap-give { white-space: nowrap; }
.alpage .ap-signin { color: var(--ink); text-decoration: none; }
.alpage .ap-account { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 4px; }
.alpage .ap-account > li { position: relative; list-style: none; }
.alpage .ap-account > li > a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); }
.alpage .ap-account > li > a:hover, .alpage .ap-account > li.open > a, .alpage .ap-account > li.active > a { background: var(--cream-2); color: var(--ink); }
.alpage .ap-account .dropdown-menu { right: 0; left: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px; }
.alpage .ap-account .dropdown-menu > li > a { padding: 8px 12px; border-radius: 8px; }
.alpage .ap-burger { display: none; }
.alpage .ap-menu { border-top: 1px solid var(--line); background: var(--paper); }
.alpage .ap-menu .ap-wrap { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 12px; }
.alpage .ap-menu a { padding: 13px 4px; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.alpage .ap-menu a:last-child { border-bottom: 0; }
.alpage .ap-badge { display: inline-block; min-width: 22px; padding: 2px 7px; margin-left: 6px; border-radius: 999px; background: var(--star); color: #fff; font-size: 13px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px; }
/* the burger (and its menu) is shown up to 991px, where the header has no room for the menu */
@media (min-width: 992px) { .alpage .ap-menu, .alpage .ap-menu.in { display: none !important; } }

/* hero */
.alpage .ap-hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.alpage .ap-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
/* grid items may shrink below their content's width (long words, the search form), never widen the page */
.alpage .ap-hero-grid > *, .alpage .ap-steps .ap-wrap > *, .alpage .ap-grid > *, .alpage .ap-cats > *, .alpage .ap-valais > *, .alpage .ap-dist > *, .alpage .ap-two > *, .alpage .ap-ftop > * { min-width: 0; }
.alpage .ap-ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 220px; color: var(--cream-2); }
.alpage .ap-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.alpage .ap-eyebrow i { width: 22px; height: 22px; border-radius: 50%; background: var(--star); display: grid; place-items: center; }
.alpage .ap-eyebrow i svg { width: 12px; height: 12px; color: #fff; }
.alpage .ap-hero h1 { font-family: var(--serif); font-weight: 600; font-size: 74px; line-height: .98; letter-spacing: -.025em; margin: 26px 0 22px; color: var(--forest); }
.alpage .ap-hero h1 em, .alpage .ap-sh h2 em { font-style: italic; font-weight: 400; color: var(--leaf); }
.alpage .ap-lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0 0 34px; }
.alpage .ap-search { display: flex; align-items: center; background: var(--paper); border-radius: 999px; padding: 8px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 600px; margin: 0; }
.alpage .ap-search .ap-f { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 52px; margin: 0; font-weight: 400; min-width: 0; }
.alpage .ap-search .ap-f + .ap-f { border-left: 1px solid var(--line); flex: .8; }
.alpage .ap-search .ap-f svg { width: 19px; height: 19px; color: var(--ink-2); flex: none; }
.alpage .ap-search input, .alpage .ap-search select { border: 0; background: transparent; outline: 0; width: 100%; min-width: 0; height: 100%; font: inherit; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; padding: 0; box-shadow: none; }
.alpage .ap-search input::placeholder { color: var(--ink-3); }
.alpage .ap-search select { cursor: pointer; color: var(--ink-2); }
.alpage .ap-go { height: 52px; padding: 0 26px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 700; font-size: 16px; border: 0; flex: none; }
.alpage .ap-go:hover { background: var(--forest-2); }
.alpage .ap-pop { margin-top: 18px; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.alpage .ap-pop a { padding: 7px 13px; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.alpage .ap-stats { display: flex; gap: 40px; margin-top: 44px; }
.alpage .ap-stats b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--forest); line-height: 1; letter-spacing: -.02em; }
.alpage .ap-stats span { font-size: 14px; color: var(--ink-3); }

.alpage .ap-collage { position: relative; height: 610px; }
.alpage .ap-pc { position: absolute; display: block; background: var(--paper); padding: 10px 10px 14px; border-radius: 18px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.alpage .ap-pc img { width: 100%; height: calc(100% - 34px); object-fit: cover; border-radius: 11px; display: block; }
.alpage .ap-pc .ap-cap { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 4px 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.alpage .ap-pc .ap-cap span { color: var(--ink-3); font-weight: 500; }
.alpage .ap-p1 { width: 290px; height: 320px; left: 0; top: 40px; transform: rotate(-4deg); }
.alpage .ap-p2 { width: 250px; height: 280px; right: 0; top: 0; transform: rotate(3deg); }
.alpage .ap-p3 { width: 250px; height: 260px; left: 70px; bottom: 0; transform: rotate(2deg); z-index: 2; }
.alpage .ap-p4 { width: 220px; height: 250px; right: 6px; bottom: 34px; transform: rotate(-3deg); z-index: 1; }
.alpage .ap-tag { position: absolute; z-index: 3; background: var(--star); color: #fff; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; box-shadow: 0 10px 20px -10px rgba(224, 53, 43, .8); }
.alpage .ap-t1 { left: -6px; top: 8px; transform: rotate(-8deg); }
.alpage .ap-t2 { left: 270px; bottom: 240px; background: var(--forest); transform: rotate(6deg); }

/* sections */
.alpage .ap-section { padding: 96px 0; }
.alpage .ap-section.ap-flush { padding-top: 0; }
.alpage .ap-sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.alpage .ap-sh h2 { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.05; letter-spacing: -.02em; margin: 0; color: var(--forest); }
.alpage .ap-sh p { margin: 10px 0 0; color: var(--ink-2); font-size: 17px; }
.alpage .ap-more { font-weight: 700; color: var(--forest); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; text-decoration: none; }
.alpage .ap-more svg { width: 18px; height: 18px; }

.alpage .ap-steps { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.alpage .ap-steps .ap-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.alpage .ap-step { display: flex; gap: 20px; }
.alpage .ap-n { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--leaf-soft); color: var(--forest); font: 600 24px var(--serif); display: grid; place-items: center; }
.alpage .ap-step h3 { margin: 4px 0 6px; font-size: 19px; font-weight: 700; }
.alpage .ap-step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.alpage .ap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.alpage .ap-card { display: block; color: var(--ink); text-decoration: none; }
.alpage .ap-card:hover h4 { color: var(--forest-2); }
.alpage .ap-ph { position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: var(--r); overflow: hidden; background: var(--cream-2); }
.alpage .ap-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alpage .ap-noimg { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 1; color: var(--ink-3); font-weight: 600; background: var(--cream-2); border-radius: 13px; }
.alpage .ap-free { position: absolute; left: 12px; top: 12px; background: var(--paper); color: var(--forest); font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.alpage .ap-cnt { position: absolute; right: 12px; bottom: 12px; background: rgba(27, 34, 25, .65); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; display: flex; gap: 5px; align-items: center; }
.alpage .ap-cnt svg { width: 13px; height: 13px; }
.alpage .ap-card h4 { margin: 14px 0 4px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.alpage .ap-meta { font-size: 14px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.alpage .ap-meta svg { width: 14px; height: 14px; flex: none; }

.alpage .ap-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.alpage .ap-cat { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 16px; color: var(--ink); text-decoration: none; }
.alpage .ap-cat img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 13px; display: block; }
.alpage .ap-cat img.ap-icon { object-fit: contain; background: var(--cream); padding: 12%; }
.alpage .ap-cat .ap-noimg { height: auto; }
.alpage .ap-cat b { display: block; margin: 12px 4px 2px; font-size: 15px; font-weight: 600; line-height: 1.25; }
.alpage .ap-cat span { margin: 0 4px; font-size: 13px; color: var(--ink-3); }

.alpage .ap-valais { background: var(--forest); color: #e8f0e4; border-radius: 32px; padding: 64px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; position: relative; overflow: hidden; }
.alpage .ap-valais-text { position: relative; }
.alpage .ap-valais h2 { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 16px; color: #fff; }
.alpage .ap-valais h2 em { font-style: italic; font-weight: 400; color: #9fdc8f; }
.alpage .ap-valais p { color: #bcd0b6; font-size: 17px; margin: 0 0 28px; }
.alpage .ap-ridge2 { position: absolute; left: 0; bottom: 0; width: 100%; height: 140px; color: rgba(255, 255, 255, .05); }
.alpage .ap-dist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; align-content: start; }
.alpage .ap-dist a { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 15px 18px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09); font-weight: 600; font-size: 15px; color: #fff; text-decoration: none; }
.alpage .ap-dist a:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.alpage .ap-dist a span { font-size: 13px; color: #9fdc8f; font-weight: 600; }
.alpage .ap-dist a.z span { color: #8fa889; }

.alpage .ap-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.alpage .ap-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 36px; }
.alpage .ap-panel h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 0 0 6px; color: var(--forest); letter-spacing: -.01em; }
.alpage .ap-panel > p { margin: 0 0 22px; color: var(--ink-2); }
.alpage .ap-w { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; margin: 0; }
.alpage .ap-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; flex: none; color: var(--forest); }
.alpage .ap-ic svg { width: 19px; height: 19px; }
.alpage .ap-wt b { display: block; font-weight: 600; }
.alpage .ap-wt small { color: var(--ink-3); font-size: 13.5px; }
.alpage .ap-h { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--forest); white-space: nowrap; }
.alpage .ap-wmore { margin-top: 12px; }
.alpage .ap-vol { background: var(--leaf-soft); border-color: #cfe5c2; display: flex; flex-direction: column; }
.alpage .ap-vol .ap-big { font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--forest); margin: 6px 0 24px; font-style: italic; }
.alpage .ap-rules { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; }
.alpage .ap-rules li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.alpage .ap-rules li svg { width: 20px; height: 20px; color: var(--leaf); flex: none; margin-top: 1px; }
.alpage .ap-vol .ap-btn { margin-top: auto; align-self: flex-start; }

/* footer */
.alpage .ap-footer { background: var(--ink); color: #b9c2b4; padding: 64px 0 36px; font-size: 15px; margin-top: 96px; }
.alpage.alpage-home .ap-footer { margin-top: 0; }
.alpage .ap-footer a { color: #b9c2b4; text-decoration: none; }
.alpage .ap-footer a:hover { color: #fff; }
.alpage .ap-ftop { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.alpage .ap-ftop > div > a { display: block; padding: 5px 0; }
.alpage .ap-flogo { background: #fff; display: inline-block !important; padding: 10px 14px !important; border-radius: 12px; margin-bottom: 16px; }
.alpage .ap-flogo img { height: 32px; width: auto; display: block; }
.alpage .ap-fabout p { margin: 0; max-width: 320px; }
.alpage .ap-footer h5 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.alpage .ap-fbot { border-top: 1px solid #2e372b; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #8b9686; }
.alpage .ap-flangs { display: flex; gap: 14px; flex-wrap: wrap; }
.alpage .ap-flangs a { color: #8b9686; font-weight: 600; letter-spacing: .02em; }
.alpage .ap-flangs a.on { color: #fff; }

/* the search bar at the top of the listing and search pages (alpage/listing_search.php) */
.alpage .ap-search-list { max-width: none; margin: 0 0 24px; }
.alpage .ap-search-list select { -webkit-appearance: menulist; appearance: auto; }

/* FAQ (pages/faq/listing.php): each answer opens in place */
.alpage .ap-faq { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 12px; }
.alpage .ap-faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.alpage .ap-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 17px; color: var(--ink); }
.alpage .ap-faq details[open] summary { color: var(--forest); }
.alpage .ap-faq .ap-faq-a { padding: 0 20px 16px; color: var(--ink-2); }

/* ---- every other page: the classic markup, restyled ---- */
.alpage .ap-page { padding: 28px 0 0; }
.alpage .ap-page .breadcrumb { background: transparent; padding: 0; margin: 0 0 20px; font-size: 14px; }
.alpage .ap-page .breadcrumb > li + li::before { color: var(--ink-3); }
.alpage .ap-page .breadcrumb a { color: var(--ink-2); }
.alpage .ap-page h1, .alpage .ap-page .listings-title, .alpage .ap-page .page-header h1 { font-family: var(--serif); font-weight: 600; color: var(--forest); letter-spacing: -.015em; line-height: 1.1; }
.alpage .ap-page h1 { font-size: 40px; margin: 0 0 18px; }
.alpage .ap-page h2, .alpage .ap-page h3 { color: var(--forest); }
.alpage .ap-page .page-header { border-bottom: 1px solid var(--line); }
.alpage #content { padding-bottom: 24px; }

.alpage .btn { border-radius: 999px; font-weight: 700; padding: 10px 20px; border-width: 1.5px; }
.alpage .btn-sm, .alpage .btn-xs { padding: 6px 13px; font-weight: 600; }
.alpage .btn-lg { padding: 14px 28px; font-size: 17px; }
.alpage .btn-primary, .alpage .btn-success, .alpage .btn-warning { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.alpage .btn-primary:hover, .alpage .btn-success:hover, .alpage .btn-warning:hover,
.alpage .btn-primary:focus, .alpage .btn-success:focus, .alpage .btn-warning:focus,
.alpage .btn-primary:active, .alpage .btn-success:active, .alpage .btn-warning:active { background: var(--leaf-dark); border-color: var(--leaf-dark); color: #fff; }
.alpage .btn-info { background: var(--forest); border-color: var(--forest); color: #fff; }
.alpage .btn-default { background: var(--paper); border-color: var(--line); color: var(--ink); }
.alpage .btn-default:hover, .alpage .btn-default.active, .alpage .btn-default:active { background: var(--cream-2); border-color: var(--line); color: var(--ink); box-shadow: none; }
.alpage .btn-group > .btn { border-radius: 0; }
.alpage .btn-group > .btn:first-child { border-radius: 999px 0 0 999px; }
.alpage .btn-group > .btn:last-child, .alpage .btn-group > .dropdown-toggle { border-radius: 0 999px 999px 0; }
.alpage .btn-group > .btn:only-child { border-radius: 999px; }
.alpage .label-info, .alpage .label-success { background: var(--leaf-soft); color: var(--forest); }
.alpage .label { border-radius: 999px; padding: 4px 9px; font-weight: 700; }

.alpage .form-control { height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); box-shadow: none; font-size: 16px; color: var(--ink); }
.alpage textarea.form-control { height: auto; min-height: 120px; }
.alpage .form-control:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(58, 169, 53, .18); }
.alpage label, .alpage .control-label { font-weight: 600; color: var(--ink); }
.alpage .help-block { color: var(--ink-3); }
.alpage .input-group .form-control:first-child { border-radius: 14px 0 0 14px; }
.alpage .input-group-btn:last-child > .btn { border-radius: 0 14px 14px 0; height: 48px; }
.alpage .select2-container--default .select2-selection--single,
.alpage .select2-container--default .select2-selection--multiple { min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); }
.alpage .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 45px; }
.alpage .select2-container--default .select2-selection--single .select2-selection__arrow { height: 45px; }

.alpage .panel, .alpage .well, .alpage .thumbnail { border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); box-shadow: none; }
.alpage .panel-heading { border-radius: var(--r) var(--r) 0 0; background: transparent; border-bottom: 1px solid var(--line); }
.alpage .panel-sidebar { padding: 18px 20px; }
.alpage .panel-sidebar .panel-heading, .alpage #sidebar h3, .alpage #sidebar .panel-title { font-family: var(--serif); font-weight: 600; color: var(--forest); font-size: 21px; padding-left: 0; padding-right: 0; }
.alpage #sidebar { padding-top: 4px; }
.alpage .modal-content { border-radius: 24px; border: 0; }
.alpage .modal-header { border-bottom: 1px solid var(--line); }
.alpage .modal-title { font-family: var(--serif); color: var(--forest); font-weight: 600; }
.alpage .alert { border-radius: 16px; }
.alpage .nav-tabs > li > a { border-radius: 12px 12px 0 0; }
.alpage .pagination > li > a, .alpage .pagination > li > span { border: 0; margin: 0 3px; border-radius: 12px !important; min-width: 44px; height: 44px; line-height: 30px; text-align: center; color: var(--forest); background: var(--paper); }
.alpage .pagination > .active > a, .alpage .pagination > .active > span, .alpage .pagination > .active > a:hover { background: var(--forest); color: #fff; }

/* listings */
.alpage .listing-row.single-list-product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0 0 14px; }
.alpage .listing-row .item { margin: 0; }
.alpage .listing-row .listing-thumbnail .thumbnail { border: 0; padding: 0; margin: 0; border-radius: 14px; overflow: hidden; background: var(--cream-2); }
.alpage .listing-row .listing-thumbnail img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.alpage .listing-meta h2, .alpage .listing-meta h3, .alpage .listing-meta h4 { font-family: 'Figtree', sans-serif; font-size: 18px; font-weight: 700; margin: 4px 0 6px; color: var(--ink); line-height: 1.3; }
.alpage .listing-meta h2 a, .alpage .listing-meta h3 a, .alpage .listing-meta h4 a { color: var(--ink); }
.alpage .listing-meta .muted, .alpage .listing-meta p { color: var(--ink-2); font-size: 14.5px; }
.alpage .favorite a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cream-2); color: var(--star); }
.alpage .listing-row-header, .alpage .btn-group-sort { margin-bottom: 12px; }
.alpage .premium.listing-row { border-color: var(--leaf); }
.alpage .top-classifieds .thumbnail { padding: 8px; }

/* single ad */
.alpage #content .ad-title, .alpage #content .item-title { font-family: var(--serif); color: var(--forest); font-weight: 600; }
.alpage #content .carousel, .alpage #content .gallery-img, .alpage #content .ad-images img { border-radius: var(--r); }
.alpage #content .well { padding: 20px; }

@media (max-width: 991px) {
    .alpage .ap-hero h1 { font-size: 58px; }
    .alpage .ap-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .alpage .ap-collage { max-width: 600px; }
    .alpage .ap-grid { grid-template-columns: repeat(3, 1fr); }
    .alpage .ap-cats { grid-template-columns: repeat(4, 1fr); }
    .alpage .ap-valais { grid-template-columns: 1fr; }
    .alpage .ap-nav { display: none; }
    .alpage .ap-burger { display: grid; }
}

/* phones */
@media (max-width: 760px) {
    body.alpage .ap-wrap { padding: 0 18px; }
    .alpage .ap-util .ap-wrap { justify-content: center; }
    .alpage .ap-header > .ap-wrap { min-height: 68px; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
    .alpage .ap-util-text { font-size: 11px; }
    .alpage .ap-hright { gap: 8px; }
    .alpage .ap-logo img { height: auto; max-height: 36px; }
    .alpage .ap-signin, .alpage .ap-account { display: none; }
    .alpage .ap-give { min-height: 44px; padding: 0 14px; font-size: 14px; gap: 6px; }
    .alpage .ap-give svg { width: 16px; height: 16px; }
    .alpage .ap-burger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 0; }
    .alpage .ap-burger svg { width: 22px; height: 22px; }
    .alpage .ap-hero { padding: 36px 0 60px; }
    .alpage .ap-hero h1 { font-size: 44px; margin: 18px 0 14px; }
    .alpage .ap-lead { font-size: 17px; margin-bottom: 22px; }
    .alpage .ap-search { flex-direction: column; border-radius: 22px; align-items: stretch; padding: 6px; }
    .alpage .ap-search .ap-f, .alpage .ap-search .ap-f + .ap-f { flex: none; }
    .alpage .ap-search .ap-f + .ap-f { border-left: 0; border-top: 1px solid var(--line); }
    .alpage .ap-go { border-radius: 16px; width: 100%; }
    .alpage .ap-stats { gap: 22px; margin-top: 28px; }
    .alpage .ap-stats b { font-size: 26px; }
    .alpage .ap-stats span { font-size: 12.5px; }
    /* the collage: 2 x 2 */
    .alpage .ap-collage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 8px; }
    .alpage .ap-collage > .ap-pc { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; height: auto; min-width: 0; padding: 7px 7px 10px; }
    .alpage .ap-pc img { height: auto; aspect-ratio: 1; }
    .alpage .ap-p1, .alpage .ap-p4 { transform: rotate(-2deg); }
    .alpage .ap-p2, .alpage .ap-p3 { transform: rotate(2deg); }
    .alpage .ap-t1 { left: -4px; top: 0; }
    .alpage .ap-t2 { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%) rotate(6deg); }
    .alpage .ap-pc .ap-cap { font-size: 12px; }
    .alpage .ap-pc .ap-cap span { display: none; }
    .alpage .ap-section { padding: 56px 0; }
    .alpage .ap-steps { padding: 36px 0; }
    .alpage .ap-steps .ap-wrap { grid-template-columns: 1fr; gap: 24px; }
    .alpage .ap-sh { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
    .alpage .ap-sh h2, .alpage .ap-valais h2 { font-size: 34px; }
    .alpage .ap-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .alpage .ap-card h4 { font-size: 15px; }
    .alpage .ap-meta { font-size: 12.5px; }
    .alpage .ap-cats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .alpage .ap-cat { padding: 6px 6px 10px; border-radius: 14px; }
    .alpage .ap-cat b { font-size: 12.5px; margin: 8px 2px 0; }
    .alpage .ap-cat span { font-size: 11.5px; margin: 0 2px; }
    .alpage .ap-valais { padding: 36px 22px; border-radius: 24px; gap: 28px; margin: 0 -4px; }
    .alpage .ap-dist { grid-template-columns: 1fr 1fr; }
    .alpage .ap-two { grid-template-columns: 1fr; }
    .alpage .ap-panel { padding: 26px 20px; }
    .alpage .ap-h { display: none; }
    .alpage .ap-footer { margin-top: 56px; }
    .alpage .ap-ftop { grid-template-columns: 1fr 1fr; }
    .alpage .ap-ftop > div:first-child { grid-column: 1 / -1; }
    .alpage .ap-fbot { flex-direction: column; gap: 10px; }
    .alpage .ap-page { padding-top: 18px; }
    .alpage .ap-page h1 { font-size: 30px; }
    .alpage .listing-row.single-list-product { padding: 10px; }
    .alpage .listing-row .listing-thumbnail { width: 34%; float: left; }
    .alpage .listing-row .listing-meta { width: 66%; float: left; }
    .alpage .listing-meta h2, .alpage .listing-meta h3, .alpage .listing-meta h4 { font-size: 16px; }
    .alpage .btn-group-sort { float: none !important; display: flex; flex-wrap: wrap; gap: 6px; }
    .alpage .btn-group-sort > .btn, .alpage .btn-group-sort > .btn-group > .btn { border-radius: 999px !important; }
}
