/*
 * ANA extras — the few styles that exist ONLY because of the dynamic
 * (WordPress) build and therefore are not in the approved static main.css /
 * responsive.css (which are kept byte-identical to the static export).
 * Everything here is additive and scoped; it never overrides a rule from
 * main.css for an element that exists in the static design.
 */

/* Header search trigger as a real <button> (static design used a <div>) */
button.search_area {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
button.search_area:focus-visible,
.ana-search-close:focus-visible,
.ana-search-form button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Search results: type chip + empty state + pagination */
.ana-search-result .menu-product-info h3 {
	margin-bottom: 8px;
}
.ana-search-empty {
	padding: 60px 0 80px;
	color: #fff;
}
.ana-search-empty h2 {
	color: #fff;
	margin-bottom: 14px;
}
.search_page .navigation.pagination {
	margin: 50px 0 0;
}
.search_page .navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}
.search_page .navigation.pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	text-decoration: none;
}
.search_page .navigation.pagination .page-numbers.current,
.search_page .navigation.pagination .page-numbers:hover {
	background: #fff;
	color: #8e2135;
}

/* Landing copy (SEO editors) */
.ana-landing-copy {
	padding: 60px 0;
	color: #fff;
}
.ana-landing-copy__body h2,
.ana-landing-copy__body h3 {
	color: #fff;
	margin: 1.4em 0 0.6em;
}
.ana-landing-copy__body h2:first-child,
.ana-landing-copy__body h3:first-child {
	margin-top: 0;
}
.ana-landing-copy__body p,
.ana-landing-copy__body li {
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.8;
}
.ana-landing-copy__body a {
	color: #fff;
	text-decoration: underline;
}

/* Generic page (page.php) */
.ana-generic-content {
	padding-bottom: 80px;
	color: #fff;
}
.ana-entry-content h2,
.ana-entry-content h3 {
	color: #fff;
}
.ana-entry-content p,
.ana-entry-content li {
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.8;
}
.ana-entry-content a {
	color: #fff;
	text-decoration: underline;
}

/* Store reviews block (footer) — tabs + rating cards. Colours are sampled from the approved design:
   card/tab surface #9e253b on the #8e2135 brand background, stars #ff9800. */
/* Tablet/mobile: the footer column is a wrapping flex row, so give the social + reviews row the full width. */
._social_google:has(.review_container) {
	width: 100%;
}

._social_google .review_container {
	flex: 1 1 300px;
	min-width: 0;
}

.stores_reviews {
	display: flex;
	flex-wrap: wrap;
}

.stores_reviews .sr_btn {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--cream-color);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: .3px;
	text-transform: uppercase;
	padding: 10px 15px;
	cursor: pointer;
	transition: background-color .25s ease;
}

.stores_reviews .sr_btn:hover {
	background-color: rgba(158, 37, 59, .55);
}

.stores_reviews .sr_btn.active {
	background-color: #9e253b;
}

.ratings-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.rating-card {
	flex: 1 1 0;
	max-width: 200px;
	min-width: 140px;
	box-sizing: border-box;
	background-color: #9e253b;
	color: var(--cream-color);
	text-align: center;
	padding: 15px 12px 16px;
}

.rating-platform img {
	display: block;
	width: 100px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.rating-platform-name {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
}

.rating-score {
	margin-top: 6px;
	line-height: 1;
}

.rating-score .rating-value {
	font-size: 48px;
	font-weight: 300;
}

.rating-score .rating-out-of {
	font-size: 15px;
	margin-left: 2px;
}

.rating-stars {
	margin-top: 8px;
	color: #ff9800;
	font-size: 15px;
	letter-spacing: 1px;
	line-height: 1;
}

.rating-review-count {
	margin: 10px 0 6px;
	font-size: 11px;
	line-height: 1.3;
}

.rating-link {
	color: var(--cream-color);
	font-size: 12px;
	text-decoration: none;
}

.rating-link:hover,
.rating-link:focus {
	color: var(--cream-color);
	text-decoration: underline;
}

.rating-link span {
	display: inline-block;
}

@media (max-width: 575.98px) {
	.rating-score .rating-value {
		font-size: 40px;
	}
}

/* Partial / empty star states and panel show-hide. */
.rating-stars .star-empty {
	opacity: .3;
}

.rating-stars .star-half {
	background: linear-gradient(90deg, currentColor 50%, rgba(128, 128, 128, .35) 50%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.store-reviews {
	display: none;
}

.store-reviews.active {
	display: block;
}

/* Menu teaser: the "Explore Our Food" link text wraps into balanced lines by itself (e.g. "Explore" / "Our Food"),
   so editors never need to type a line break. Works for English and Arabic; em-based so it follows every responsive font size. */
.exp_menu_title h3 {
	max-width: 5.2em;
	text-wrap: balance;
}

/* Menu teaser: "Explore Our Food" subheading as a link keeps the heading's look. */
.exp_menu_title h3 a.exp_menu_title_link {
	color: inherit;
	text-decoration: none;
}

.exp_menu_title h3 a.exp_menu_title_link:hover,
.exp_menu_title h3 a.exp_menu_title_link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 6px;
}

/* Related-product cards: the global ANA badge sits in the photo's bottom-right corner, like every other dish photo.
   (The card's own `.related-product-image img` rules — square crop + hover zoom — must not distort the badge.) */
.related-product-image {
	position: relative;
}

.related-product-image .small_logo {
	width: 30px;
	height: auto;
	bottom: 10px;
	right: 10px;
}

.related-product-image .small_logo img,
.related-product-card:hover .related-product-image .small_logo img {
	width: 100%;
	height: auto;
	aspect-ratio: auto;
	object-fit: contain;
	transform: none;
	transition: none;
}

html[dir="rtl"] .related-product-image .small_logo {
	right: 10px;
	left: auto;
}

/* Related-product price uses the shared price markup: keep it the card's colour (not the menu-list red) and size. */
.related-product-content strong .menu-product-price {
	color: inherit;
	font-family: inherit;
	font-size: inherit;
}

.related-product-content strong .menu-product-price .woocommerce-Price-currencySymbol {
	font-size: 1.1em;
}

/*
 * 404 page: the approved markup's wrapper is spelled `.conatiner` (kept as-is), so it has no Bootstrap side padding
 * and the search box touched / overflowed the screen edges on phones. Give it the container gutter.
 */
.not_found_page .conatiner {
	padding-right: var(--bs-gutter-x, .75rem);
	padding-left: var(--bs-gutter-x, .75rem);
}

/* Per-Location price in the product page's "Available At" cards (shown only when the Locations differ). */
.ana-location-card-content .ana-location-price {
	margin: 0 0 12px;
	font-size: 1.05em;
}

.ana-location-card-content .ana-location-price .menu-product-price {
	color: inherit;
}
