/* Search, 404, empty states, comments, Gutenberg prose — design-system-derived */

.elgamal-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 640px;
	width: 100%;
}

.elgamal-search-form__input {
	flex: 1 1 220px;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid #e7e1d7;
	background: #fff;
	color: #1d1d1b;
	font-size: 16px;
}

.elgamal-search-form__input:focus {
	outline: 2px solid #a97529;
	outline-offset: 2px;
}

.elgamal-search-form__submit {
	min-height: 48px;
	padding: 0 20px;
	border: 0;
	background: #1d1d1b;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.elgamal-search-form__submit:hover,
.elgamal-search-form__submit:focus-visible {
	background: #a97529;
	outline: none;
}

.elgamal-search-page {
	background: #fff;
	padding-bottom: var(--elgamal-section-y, clamp(48px, 6vw, 96px));
}

.elgamal-search-page__form {
	max-width: 1280px;
	margin: -12px auto 0;
	padding: 0 clamp(20px, 6vw, 96px) 28px;
}

.elgamal-search-page__count {
	max-width: 1280px;
	margin: 0 auto 20px;
	padding: 0 clamp(20px, 6vw, 96px);
	font-size: 14px;
	font-weight: 600;
	color: #8a6424;
}

.elgamal-search-page__list {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(20px, 6vw, 96px);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.elgamal-search-page__pager {
	max-width: 1280px;
	margin: 40px auto 0;
	padding: 0 clamp(20px, 6vw, 96px);
}

.elgamal-search-page__pager .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.elgamal-search-page__pager a,
.elgamal-search-page__pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #e7e1d7;
	background: #fff;
	color: #1d1d1b;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.elgamal-search-page__pager .current {
	background: #1d1d1b;
	border-color: #1d1d1b;
	color: #fff;
}

.elgamal-search-card {
	margin: 0;
	height: 100%;
	background: #f6f4f0;
}

.elgamal-search-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.elgamal-search-card__link:hover,
.elgamal-search-card__link:focus-visible {
	outline: none;
	transform: translateY(-3px);
	transition: transform 0.3s ease;
}

.elgamal-search-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #1a1a18;
}

.elgamal-search-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.elgamal-search-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2a2925, #4a453c);
}

.elgamal-search-card__type {
	position: absolute;
	left: 14px;
	bottom: 14px;
	padding: 6px 10px;
	background: #7a5520;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.elgamal-search-card__body {
	padding: 18px 16px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.elgamal-search-card__title {
	margin: 0;
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.3;
	font-weight: 700;
	color: #1d1d1b;
}

.elgamal-search-card__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #5e584f;
}

.elgamal-404 {
	min-height: 70vh;
	display: flex;
	align-items: center;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(169, 117, 41, 0.12), transparent 55%),
		linear-gradient(180deg, #f6f4f0 0%, #fff 60%);
	padding: clamp(72px, 8vw, 112px) clamp(20px, 6vw, 96px) 80px;
}

.elgamal-404__inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.elgamal-404__code {
	margin: 0 0 12px;
	font-size: clamp(64px, 12vw, 120px);
	line-height: 1;
	font-weight: 900;
	letter-spacing: -0.04em;
	color: #a97529;
	opacity: 0.85;
}

.elgamal-404__title {
	margin: 0 0 16px;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
	font-weight: 800;
	color: #1d1d1b;
}

.elgamal-404__lede {
	margin: 0 auto 28px;
	max-width: 42ch;
	font-size: 16px;
	line-height: 1.7;
	color: #5e584f;
}

.elgamal-404__search {
	display: flex;
	justify-content: center;
	margin-bottom: 32px;
}

.elgamal-404__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.elgamal-404__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #e7e1d7;
	background: #fff;
	color: #1d1d1b;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
}

.elgamal-404__link--primary {
	background: #1d1d1b;
	border-color: #1d1d1b;
	color: #fff;
}

.elgamal-404__link:hover,
.elgamal-404__link:focus-visible {
	border-color: #a97529;
	color: #a97529;
	outline: none;
}

.elgamal-404__link--primary:hover,
.elgamal-404__link--primary:focus-visible {
	background: #a97529;
	border-color: #a97529;
	color: #fff;
}

.elgamal-empty {
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px clamp(20px, 6vw, 96px) 48px;
}

.elgamal-empty__title {
	margin: 0 0 12px;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	color: #1d1d1b;
}

.elgamal-empty__text {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.7;
	color: #5e584f;
	max-width: 52ch;
}

.elgamal-empty__form {
	margin-bottom: 24px;
}

.elgamal-empty__suggest {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
}

.elgamal-empty__suggest a {
	color: #8a6424;
	font-weight: 700;
	text-decoration: none;
}

.elgamal-empty__suggest a:hover,
.elgamal-empty__suggest a:focus-visible {
	text-decoration: underline;
	outline: none;
}

.elgamal-comments {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 clamp(20px, 6vw, 96px) 80px;
}

.elgamal-comments__title {
	margin: 0 0 24px;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
}

.elgamal-comments__list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

.elgamal-comments__list .comment {
	margin: 0 0 24px;
	padding: 20px;
	background: #f6f4f0;
}

.elgamal-comments__list .children {
	list-style: none;
	margin: 16px 0 0;
	padding: 0 0 0 20px;
}

.elgamal-comments__list .comment-author {
	font-weight: 700;
}

.elgamal-comments__list .comment-meta {
	font-size: 13px;
	color: #5e584f;
	margin: 4px 0 12px;
}

.elgamal-comments__list .reply a {
	font-size: 13px;
	font-weight: 700;
	color: #8a6424;
	text-decoration: none;
}

.elgamal-comments__closed {
	font-size: 14px;
	color: #5e584f;
}

.elgamal-comments__form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
}

.elgamal-comments__form input[type="text"],
.elgamal-comments__form input[type="email"],
.elgamal-comments__form input[type="url"],
.elgamal-comments__form textarea {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid #e7e1d7;
	background: #fff;
	font: inherit;
}

.elgamal-comments__form textarea {
	min-height: 140px;
	resize: vertical;
}

.elgamal-comments__notes {
	font-size: 13px;
	color: #5e584f;
}

.elgamal-comments__submit {
	margin-top: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	background: #1d1d1b;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.elgamal-comments__submit:hover,
.elgamal-comments__submit:focus-visible {
	background: #a97529;
	outline: none;
}

/* Gutenberg prose for pages / post content */
.elgamal-prose,
.elgamal-post-single__content {
	font-size: 17px;
	line-height: 1.85;
	color: #3a3631;
}

.elgamal-prose > *:first-child {
	margin-top: 0;
}

.elgamal-prose .wp-block-image,
.elgamal-post-single__content .wp-block-image {
	margin: 1.5em 0;
}

.elgamal-prose .wp-block-image figcaption,
.elgamal-post-single__content .wp-block-image figcaption,
.elgamal-prose .wp-element-caption {
	margin-top: 8px;
	font-size: 13px;
	color: #5e584f;
	text-align: center;
}

.elgamal-prose .wp-block-gallery {
	gap: 12px;
}

.elgamal-prose .wp-block-quote,
.elgamal-post-single__content .wp-block-quote {
	margin: 1.5em 0;
	padding: 0 0 0 20px;
	border-left: 3px solid #a97529;
	color: #1d1d1b;
}

.elgamal-prose .wp-block-code,
.elgamal-prose pre,
.elgamal-post-single__content .wp-block-code,
.elgamal-post-single__content pre {
	padding: 16px;
	background: #1a1a18;
	color: #f6f4f0;
	overflow-x: auto;
	font-size: 14px;
	line-height: 1.6;
}

.elgamal-prose .wp-block-table table,
.elgamal-post-single__content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.elgamal-prose .wp-block-table td,
.elgamal-prose .wp-block-table th,
.elgamal-post-single__content .wp-block-table td,
.elgamal-post-single__content .wp-block-table th {
	border: 1px solid #ece7df;
	padding: 10px 12px;
	text-align: start;
}

.elgamal-prose .wp-block-embed,
.elgamal-post-single__content .wp-block-embed {
	margin: 1.5em 0;
}

.elgamal-prose .alignwide {
	max-width: min(1100px, 100%);
}

.site-main--page .elgamal-prose {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 clamp(20px, 6vw, 96px) 80px;
}

/* Booking / contact / hero pages: sections own their full-bleed width. */
.site-main--has-hero .elgamal-prose {
	max-width: none;
	margin: 0;
	padding: 0;
}

.site-main--has-hero .elgamal-prose > .alignfull,
.site-main--has-hero .elgamal-prose > .wp-block-acf-elgamal-booking-wizard,
.site-main--has-hero .elgamal-prose > .wp-block-acf-elgamal-contact-form,
.site-main--has-hero .elgamal-prose > .elgamal-booking-wizard,
.site-main--has-hero .elgamal-prose > .elgamal-contact {
	max-width: none;
	width: 100%;
	margin-inline: 0;
}

.site-main--page .entry-header.elgamal-container {
	max-width: 820px;
	margin: 0 auto;
	padding: clamp(100px, 12vw, 140px) clamp(20px, 6vw, 96px) 24px;
}

.site-main--page .entry-title {
	margin: 0;
	font-size: clamp(34px, 4.4vw, 52px);
	line-height: 1.1;
	font-weight: 900;
	letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
	.elgamal-search-page__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.elgamal-search-page__list {
		grid-template-columns: 1fr;
	}
}

[dir="rtl"] .elgamal-prose .wp-block-quote,
[dir="rtl"] .elgamal-post-single__content .wp-block-quote {
	border-left: 0;
	border-right: 3px solid #a97529;
	padding: 0 20px 0 0;
}

[dir="rtl"] .elgamal-comments__list .children {
	padding: 0 20px 0 0;
}
