/* Compact density — one rollback-able file, loaded LAST (see resources/views/layouts/main.php). Delete its <link> line to go back.
   The public pages were built up in layers (app, discovery, refresh, experience, listing-cards, brand-theme), each adding its own vertical
   padding, so the home page had 60-100 px of empty space above and below every widget and a 760 px hero. This file sets ONE rhythm:
   --dk-y between sections, tighter headings and cards, and aligns the Recent-activity container with every other section. */

:root {
    --dk-y: clamp(22px, 3vw, 40px);      /* vertical padding of a section */
    --dk-head: clamp(10px, 1.4vw, 16px); /* space under a section heading */
}

/* ---- hero ---------------------------------------------------------------------------------------------------------------------- */
.hero-layout,
.hero-has-premium .hero-layout {
    min-height: 0;
    gap: clamp(22px, 3vw, 40px);
    padding-top: clamp(22px, 3.2vw, 40px);
    padding-bottom: clamp(22px, 3.2vw, 40px);
}
.hero-spotlight-full .hero-layout { padding: 0 0 18px; }
.hero h1 { margin: 12px 0 12px; }
.hero-intro > p { margin-bottom: 16px; }
.hero-proof { margin-top: 12px; gap: 8px 16px; }
.hero-counters { margin-top: 8px; }
.hero .discovery-search .search-field { padding: 6px 12px; }

/* ---- "What would you like to do?" ------------------------------------------------------------------------------------------------ */
.journey-section { padding-top: 22px; padding-bottom: 0; }
.journey-section + .discovery-section { padding-top: var(--dk-y); }
.journey-heading { margin-bottom: 10px; }
.journey-heading .section-link { min-height: 36px; }
.journey-grid { gap: 10px; }
.journey-card { min-height: 0; padding: 12px 14px; gap: 12px; }

/* ---- section rhythm -------------------------------------------------------------------------------------------------------------- */
.discovery-section, .industry-section, .explore-city-section { padding-block: var(--dk-y); }
.featured-section { padding-block: var(--dk-y); }
.how-section { padding-block: calc(var(--dk-y) * 1.25); }
.community-section { padding-block: var(--dk-y); }
.paid-spotlight-section { padding: 22px 0 26px; }
.paid-spotlight-heading { margin-bottom: 14px; }
.trust-strip li { padding: .75rem 1rem; }
.section-link { min-height: 32px; padding-block: 4px; }

.section-heading,
.section-heading.compact { margin-bottom: var(--dk-head); gap: 8px 24px; }
.section-heading h2,
.section-heading.compact h2 { margin-top: 6px; font-size: clamp(1.65rem, 2.6vw, 2.35rem); line-height: 1.1; }
.section-heading p { margin-top: 4px; }

/* Recent activity: same width as every other section (it was capped narrower, so its heading sat ~76 px to the right of the rest) */
.activity-section { padding-block: var(--dk-y); margin-top: 18px; }
@media (min-width: 1200px) { .activity-section .container { max-width: 1140px; } }
@media (min-width: 1400px) { .activity-section .container { max-width: 1320px; } }
.activity-section .activity-subheading { margin-bottom: 10px; }
.activity-layout { gap: 18px; }
.activity-more { margin-top: 14px; }
.activity-more > .activity-card-grid { margin-top: 14px; }

/* ---- cards and widgets ------------------------------------------------------------------------------------------------------------ */
.industry-grid { gap: .75rem; }
.industry-card { padding: .85rem .95rem .7rem; }
.industry-links { margin-top: .55rem; padding-top: .45rem; }
.industry-links a { min-height: 26px; }
.community-banner { padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 40px); }
.community-banner h2 { margin: 10px 0; }
.community-banner p { margin-bottom: 16px; }
.community-owner-grid { gap: clamp(20px, 3vw, 32px); }
.how-layout { gap: clamp(24px, 4vw, 48px); }
.recently-viewed { padding: .65rem; }
.business-card .card-body { padding-top: 14px; padding-bottom: 10px; }
.business-card .business-card-actions { padding-top: 10px; }

/* ---- footer --------------------------------------------------------------------------------------------------------------------- */
.site-footer { margin-top: 0; padding: clamp(24px, 3vw, 36px) 0 26px; }  /* bottom unchanged: it keeps clear of the phone tab bar */
.footer-grid, .footer-grid.footer-grid-wide { gap: clamp(20px, 3vw, 32px); }
.footer-intro p { margin-top: 10px; }
.footer-links { gap: 4px; }
.footer-links h2 { margin-bottom: 6px; }
.footer-links a, .footer-contact a { min-height: 28px; }
.footer-contact { margin-top: .7rem; }
.footer-bottom { margin-top: 20px; padding-top: 14px; }

/* ---- hero spotlight card ("Local Inspiration"): it set the hero's height (570 px minimum, 100 px / 92 px of padding inside) ----------- */
.premium-spotlight .premium-spotlight-card,
.hero-spotlight-full .premium-spotlight-card { min-height: 470px; }
.premium-spotlight-content { padding: 64px 28px 76px; }
@media (max-width: 575.98px) {
    .premium-spotlight .premium-spotlight-card,
    .hero-spotlight-full .premium-spotlight-card { min-height: 420px; }
    .premium-spotlight-content { padding: 56px 18px 70px; }
}

/* ---- Recent activity: a six-column grid --------------------------------------------------------------------------------------------
   Eighteen of the newest listings and reviews instead of twelve, six across on a desktop (three full rows), so more of what is new
   is seen without scrolling. The photo panel is 4:3 (not 8:5) so each smaller card keeps a real picture to look at, and the text
   steps down a little. Narrower screens keep fewer, larger cards: 4 across from 992 px, 3 from 768 px, 2 from 576 px, 1 below -
   and the last six cards are hidden there so no row is ever left half empty.
   TO GO BACK: delete this block (and set the two "18" in HomeController and views/home/activity.php back to 12). */
.activity-card-grid { gap: 14px; }
@media (min-width: 768px) { .activity-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .activity-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .activity-card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }
.activity-card-grid > .activity-card:nth-child(n+13) { display: none; }
@media (min-width: 1200px) {
    .activity-card-grid > .activity-card:nth-child(n+13) { display: flex; }
    .activity-card .activity-card-media,
    .activity-card .activity-card-media .biz-photo-track { aspect-ratio: 4 / 3; }
    .activity-card .activity-card-header { min-height: 34px; padding: 8px 10px; }
    /* one line, always: the kind label is cut with an ellipsis rather than wrapping, so every card's photo starts at the same height */
    .activity-card .activity-update { flex-wrap: nowrap; gap: 6px; }
    .activity-card .activity-update p { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .activity-card .activity-update p i { display: none; }
    .activity-card .activity-update time { flex: none; }
    .activity-card .activity-card-body { padding: 9px 10px; gap: 4px; }
    .activity-card .activity-card-title { gap: 6px; }
    .activity-card .activity-card-title h4 { font-size: .86rem; line-height: 1.3; }
    .activity-card .activity-card-footer { margin: 0 10px; }
    .activity-card .activity-card-footer > a { min-height: 40px; font-size: .72rem; }
}

/* ---- navbar icon buttons: language, data saver, dark mode - no borders --------------------------------------------------------------------
   They sit straight in the bar (the "Display settings" drop-down that held two of them is gone: a one-tap switch behind two taps). Plain icons: no border and
   no fill; a soft fill on hover / keyboard focus, a coral icon while data saver is on. Scoped to the navbar - nothing else uses .theme-toggle.
   TO GO BACK: delete this block; the borders return. (The drop-down itself comes back only by restoring views/partials/navbar.php from the earlier package.) */
.site-nav .theme-toggle { border: 0; background: transparent; box-shadow: none; }
.site-nav .theme-toggle:hover, .site-nav .theme-toggle:focus-visible { background: var(--ui-soft); }
.site-nav .theme-toggle:focus-visible { outline: 2px solid var(--ui-accent, #b14b30); outline-offset: 1px; }
.site-nav .theme-toggle.is-on { color: var(--bd-coral-dark, #b14b30); }
.site-nav .nav-tool, .site-nav .nav-language { align-self: center; }
/* one more button in the bar than before, so the bar is tightened a little to stay on ONE row at laptop widths (1200-1399 px) */
.site-nav .theme-toggle { min-width: 40px; height: 40px; }
@media (min-width: 1200px) {
    .site-nav .nav-end { gap: 4px !important; }
    .site-nav .navbar-nav > .nav-link { padding-inline: .55rem !important; }
}
@media (max-width: 1199.98px) {
    /* in the opened phone menu the three little buttons share one row instead of one line each */
    .site-nav .nav-end { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 4px; }
    .site-nav .nav-end > .nav-item { flex: 0 0 100%; }
    .site-nav .nav-end > .nav-item.nav-language, .site-nav .nav-end > .nav-item.nav-tool { flex: 0 0 auto; margin-top: 8px; }
}
