/* Happy Hour Directory — shared front-end styles (totdir + lasdir).
   Loaded by includes/modules/front-styles.php. Keep rules minimal and well-scoped. */

/* Center the gd_locations city-tile grid when it has fewer tiles than columns.
   GeoDirectory renders the tiles in a Bootstrap `row row-cols-*` grid, which
   left-aligns a partial row — so lasdir's two cities (Henderson + Las Vegas) in
   a 3-up grid sat against the left edge. Centering the flex row balances them
   and has no effect on full rows (totdir). */
.geodir-location-grid-container.row {
	justify-content: center;
}

/* Hours of Operation ([hh_hours] shortcode) — readable line spacing for the per-day lines. */
.hh-hours-list {
	line-height: 1.7;
}

/* Website button in the listing Contact Info block — match the Get Direction button's full width. */
.hh-contact-btn .elementor-button {
	display: inline-flex;
}

/* Featured Special — the field stores each special on its own line (CRLF-separated); the default
   white-space collapses them into one paragraph. Render the existing line breaks as lines. */
.hh-featured-special .elementor-heading-title {
	white-space: pre-line;
	line-height: 1.7;
}

/* ===== gd_place archive cleanup ===== */
/* Drop the redundant CPT/category description and the duplicate linked title;
   keep the single page <h1>. (The "Restaurant post type." text sits in a sibling
   <p> the browser splits out of .archive-description, so hide every page-header <p>.) */
.geodir-archive .page-header p { display: none !important; }
.geodir-archive .page-content > article.post > h2.entry-title { display: none !important; }

/* Kill wpautop empty-paragraph / stray-break gaps inside archive cards. */
.geodir-archive .geodir-post .card-body p:empty { display: none !important; }
.geodir-archive .geodir-post .card-body > p { margin: 0 !important; }
.geodir-archive .geodir-post .card-body > br,
.geodir-archive .geodir-post .card-body > p > br { display: none !important; }
.geodir-archive .geodir-post .card-body { padding-top: 4px !important; }
.geodir-archive .geodir-post .geodir-post-title { margin: 0 !important; }

/* ===== "Right Now" happy-hour flag (right-now-badge.php) ===== */
/* The flag (a static Elementor image widget, custom class `happy-hour-image`) is baked into
   every gd_place card. Hide it by default and reveal it only on cards whose happy hour is
   active right now — marked with `.hh-open-now` on the card wrapper by post_class. This makes
   the flag denote a live happy hour instead of showing on every listing. */
.happy-hour-image { display: none !important; }
.hh-open-now .happy-hour-image { display: block !important; }

/* reCAPTCHA CAPTCHA widget (captcha.php) */
.hh-captcha { margin: 14px 0; }
.uwp-login-form .hh-captcha,
.uwp-registration-form .hh-captcha,
#geodir-add-listing .hh-captcha { margin: 14px 0 4px; }
