/*
 * E-Boatshow — Katılımcı listesi ve firma detay sayfaları
 * Figma: E-boatshow (Katılımcı Listesi 1:71, Firma detay 1:430)
 * Layout: 1360px content column with 40px gutters; navy header/footer bands.
 */
:root {
	--ebs-navy: #002147;
	--ebs-primary: #003d9b;
	--ebs-blue: #0052cc;
	--ebs-ink: #041b3c;
	--ebs-body: #434654;
	--ebs-muted: #737685;
	--ebs-placeholder: #6b7280;
	--ebs-line: #c3c6d6;
	--ebs-line-soft: rgba(195, 198, 214, 0.3);
	--ebs-tint: #f1f3ff;
	--ebs-chip: #e8edff;
	--ebs-chip-ink: #3f5881;
	--ebs-bg: #f9f9ff;
	--ebs-card-hover: #fbfbfb;
	--ebs-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--ebs-gutter: 40px;
	--ebs-max: 1360px;
}

/* ---------- Page shell ---------- */
body.ebs-page {
	background: var(--ebs-bg);
}
body.ebs-page #main-container,
body.ebs-page .site-main,
body.ebs-page .ct-container-full,
body.ebs-page article.page {
	background: transparent;
	padding-top: 0;
	padding-bottom: 0;
}
body.ebs-page .entry-content {
	--theme-content-spacing: 0;
}

.ebs,
.editor-styles-wrapper .ebs {
	font-family: var(--ebs-font);
	color: var(--ebs-ink);
	background: var(--ebs-bg);
	letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
}
.ebs :where(p, h1, h2, h3, a, button, input, select, label) {
	letter-spacing: inherit;
}
.ebs :is(h1, h2, h3, h4, p, figure, ul),
.ebs .wp-block-group,
.ebs .wp-block-columns,
.ebs .wp-block-buttons {
	margin: 0;
}
.ebs :is(h1, h2, h3, h4) {
	font-family: var(--ebs-font);
}
.ebs a {
	text-decoration: none;
}
.ebs a:focus-visible,
.ebs button:focus-visible,
.ebs input:focus-visible,
.ebs select:focus-visible {
	outline: 2px solid var(--ebs-blue);
	outline-offset: 2px;
}
.ebs img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Inner column: 1360px max, 40px gutter (16px on phones). */
.ebs-inner {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--ebs-max) + 2 * var(--ebs-gutter));
	margin-inline: auto !important;
	padding-left: max(var(--ebs-gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--ebs-gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Header (synced pattern "Katılımcı Header") ---------- */
.ebs.ebs-header,
.editor-styles-wrapper .ebs.ebs-header,
.ebs.ebs-footer,
.editor-styles-wrapper .ebs.ebs-footer {
	background: var(--ebs-navy);
}
.ebs-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ebs-navy);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
body.admin-bar .ebs-header {
	top: var(--admin-bar, 32px);
}
.ebs-header .ebs-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 80px;
}
.ebs-header__logo {
	flex: none;
	width: 50px;
	height: 50px;
	border: 2px solid #fff;
	border-radius: 8px;
	overflow: hidden;
	box-sizing: border-box;
}
.ebs-header__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ebs-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}
.ebs-nav p,
.ebs-header__lang {
	font-size: 14px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	white-space: nowrap;
}
.ebs-nav a {
	display: inline-block;
	color: rgba(255, 255, 255, 0.6);
	transition: color 0.15s ease;
}
.ebs-nav a:hover {
	color: #fff;
}
.ebs-nav .is-active a {
	color: #fff;
	padding-bottom: 6px;
	margin-bottom: -8px;
	border-bottom: 2px solid #fff;
}
.ebs-header__lang {
	color: rgba(255, 255, 255, 0.8);
}

/* ---------- Footer (synced pattern "Katılımcı Footer") ---------- */
.ebs-footer {
	background: var(--ebs-navy);
	border-top: 1px solid rgba(115, 118, 133, 0.1);
	color: #fff;
}
.ebs-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 32px;
}
.ebs-footer__brand {
	width: 198px;
	flex: none;
}
.ebs-footer__brand img {
	width: 58px;
	height: 58px;
}
.ebs-footer__nav {
	display: flex;
	gap: 32px;
	opacity: 0.75;
}
.ebs-footer__nav p {
	font-size: 16px;
	line-height: 1.4;
	font-weight: 500;
	white-space: nowrap;
}
.ebs-footer__nav a,
.ebs-footer__mail a {
	color: #fff;
}
.ebs-footer__nav a:hover {
	text-decoration: underline;
}
.ebs-footer__mail {
	width: 198px;
	flex: none;
	display: flex;
	justify-content: flex-end;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 500;
	white-space: nowrap;
}
.ebs-footer__mail a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.ebs-footer__mail a::before {
	content: "";
	width: 20px;
	height: 14px;
	background: url("icons/mail.svg") no-repeat center / 20px 14px;
}
.ebs-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding: 25px 0 24px;
}
.ebs-footer__bottom p {
	text-align: center;
	font-size: 14px;
	line-height: 20px;
	color: rgba(255, 255, 255, 0.5);
}

/* ---------- List page ---------- */
.ebs-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 48px;
	padding-bottom: 80px;
}
.ebs-intro {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 16px;
}
.ebs-intro h1 {
	font-size: 48px;
	line-height: 56px;
	font-weight: 700;
	letter-spacing: -0.96px;
	color: var(--ebs-primary);
}
.ebs-intro p {
	font-size: 18px;
	line-height: 28px;
	color: var(--ebs-muted);
}

/* Filter bar */
.ebs-filters {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: var(--ebs-tint);
	border: 1px solid var(--ebs-line);
	border-radius: 8px;
}
.ebs .ebs-search {
	position: relative;
	display: block;
	flex: 1 1 0;
	min-width: 200px;
	margin: 0;
}
.ebs-search::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	background: url("icons/search.svg") no-repeat center / 16px 16px;
	pointer-events: none;
}
.ebs .ebs-search input {
	box-sizing: border-box;
	width: 100%;
	height: 38px;
	margin: 0;
	padding: 10px 17px 11px 41px;
	background: #fff;
	border: 1px solid var(--ebs-line);
	border-radius: 8px;
	box-shadow: none;
	font: 400 14px/17px var(--ebs-font);
	color: var(--ebs-ink);
}
.ebs .ebs-search input::placeholder {
	color: var(--ebs-placeholder);
	opacity: 1;
}
.ebs .ebs-category {
	box-sizing: border-box;
	flex: none;
	width: auto;
	min-width: 160px;
	height: 38px;
	margin: 0;
	padding: 9px 42px 9px 17px;
	background: #fff url("icons/chevron-down.svg") no-repeat right 9px center / 21px 21px;
	border: 1px solid var(--ebs-line);
	border-radius: 8px;
	box-shadow: none;
	font: 400 14px/20px var(--ebs-font);
	color: var(--ebs-ink);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}
.ebs .ebs-clear {
	flex: none;
	margin: 0;
	padding: 0 16px;
	min-height: 0;
	background: none;
	border: 0;
	font: 400 16px/24px var(--ebs-font);
	color: var(--ebs-primary);
	cursor: pointer;
}
.ebs .ebs-clear:hover {
	text-decoration: underline;
	background: none;
	color: var(--ebs-primary);
}

/* Alphabet */
.ebs-alpha {
	display: flex;
	justify-content: space-between;
	gap: 4px;
	padding: 8px 0;
}
.ebs .ebs-alpha button {
	flex: 0 1 40px;
	min-width: 28px;
}
.ebs .ebs-alpha button,
.ebs .ebs-pager button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--ebs-line);
	border-radius: 8px;
	font: 400 16px/24px var(--ebs-font);
	color: var(--ebs-muted);
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.ebs .ebs-alpha button:hover:not(:disabled),
.ebs .ebs-pager button:hover:not(:disabled):not(.is-active) {
	border-color: var(--ebs-primary);
	color: var(--ebs-primary);
}
.ebs .ebs-alpha button.is-active,
.ebs .ebs-pager button.is-active {
	background: var(--ebs-primary);
	border-color: var(--ebs-primary);
	color: #fff;
}
.ebs .ebs-pager button.is-active {
	font-weight: 700;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.ebs .ebs-alpha button:disabled {
	opacity: 0.4;
	cursor: default;
}

/* Grid + cards */
.ebs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding-top: 16px;
}
.ebs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--ebs-line);
	border-radius: 8px;
	transition: background-color 0.15s ease;
}
.ebs-card:hover {
	background: var(--ebs-card-hover);
}
.ebs-card[hidden],
.ebs-grid[hidden],
.ebs-pager[hidden],
.ebs-empty[hidden] {
	display: none !important;
}
.ebs-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 128px;
	background: var(--ebs-tint);
	border-radius: 4px;
	overflow: hidden;
}
.ebs-card__logo img {
	width: auto;
	max-width: 80%;
	max-height: 60px;
}
.ebs .ebs-card h3 {
	padding-top: 12px;
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	color: var(--ebs-ink);
}
.ebs-card h3 a {
	color: inherit;
}
/* whole card is clickable through the name link */
.ebs-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 8px;
}
.ebs-card__country {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 8px;
	font-size: 14px;
	line-height: 20px;
	color: var(--ebs-muted);
}
.ebs-card__country::before {
	content: "";
	flex: none;
	width: 11.667px;
	height: 11.667px;
	background: url("icons/globe.svg") no-repeat center / contain;
}
.ebs-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-top: 1px solid var(--ebs-line-soft);
	border-bottom: 1px solid var(--ebs-line-soft);
}
.ebs-card__meta::before {
	content: "";
	order: 1;
	width: 1px;
	height: 32px;
	background: var(--ebs-line-soft);
}
.ebs-card__meta > :last-child {
	order: 2;
	text-align: right;
}
.ebs-label {
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	letter-spacing: -0.3px;
	text-transform: uppercase;
	color: var(--ebs-muted);
}
.ebs-value {
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
	color: var(--ebs-ink);
	font-variant-numeric: tabular-nums;
}
.ebs-card__tag {
	padding-top: 12px;
}
.ebs-card__tag span,
p.ebs-card__tag {
	align-self: flex-start;
}
p.ebs-card__tag {
	margin-top: 12px !important;
	padding: 4px 12px;
	background: var(--ebs-chip);
	border-radius: 9999px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	color: var(--ebs-chip-ink);
	white-space: nowrap;
}

.ebs-empty {
	padding: 48px 16px;
	text-align: center;
	font-size: 16px;
	line-height: 24px;
	color: var(--ebs-muted);
	background: #fff;
	border: 1px dashed var(--ebs-line);
	border-radius: 8px;
}

/* Pagination */
.ebs-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding-top: 16px;
}
.ebs .ebs-pager .ebs-pager__step::before {
	content: "";
	width: 7.4px;
	height: 12px;
	background: url("icons/prev.svg") no-repeat center / contain;
}
.ebs .ebs-pager .ebs-pager__step--next::before {
	background-image: url("icons/next.svg");
}
.ebs .ebs-pager button:disabled {
	opacity: 0.4;
	cursor: default;
}
.ebs-pager__gap {
	padding: 0 8px;
	font-size: 16px;
	line-height: 24px;
	color: var(--ebs-muted);
}

/* ---------- Detail page ---------- */
.ebs-detail {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 32px;
	padding-bottom: 32px;
}
.ebs-back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.7px;
	color: var(--ebs-primary);
}
.ebs-back a::before {
	content: "";
	width: 16px;
	height: 16px;
	background: url("icons/back.svg") no-repeat center / 16px 16px;
	transition: transform 0.15s ease;
}
.ebs-back a:hover::before {
	transform: translateX(-3px);
}
.ebs-eyebrow {
	padding-top: 8px;
	font-size: 14px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--ebs-body);
}
.ebs .ebs-detail h1 {
	font-size: 48px;
	line-height: 56px;
	font-weight: 700;
	letter-spacing: -0.96px;
	color: var(--ebs-ink);
}
.ebs-detail__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
	padding-top: 24px;
}
.ebs-detail__main {
	grid-column: 1 / span 7;
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}
.ebs-detail__aside {
	grid-column: 8 / span 5;
	min-width: 0;
}
.ebs-detail__photo {
	aspect-ratio: 16 / 9;
	border: 1px solid var(--ebs-line);
	border-radius: 8px;
	overflow: hidden;
	background: var(--ebs-chip);
}
.ebs .ebs-detail__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ebs-about {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ebs .ebs-about h2 {
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
	color: var(--ebs-ink);
}
.ebs-about p {
	max-width: 672px;
	font-size: 18px;
	line-height: 28px;
	color: var(--ebs-body);
}

/* Contact card */
.ebs-contact {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 32px;
	background: #fff;
	border: 1px solid var(--ebs-line);
	border-radius: 8px;
	filter: drop-shadow(0 4px 6px rgba(0, 33, 71, 0.08));
}
.ebs .ebs-contact h3 {
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	color: var(--ebs-ink);
}
.ebs-contact__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.ebs-row {
	position: relative;
	padding-left: 36px;
}
.ebs-row::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 36px;
	height: 16px;
	background: url("icons/email.svg") no-repeat left top / auto 100%;
}
.ebs-row--web::before {
	height: 20px;
	background-image: url("icons/web.svg");
}
.ebs-row--address {
	padding-left: 32px;
}
.ebs-row--address::before {
	width: 32px;
	height: 20px;
	background-image: url("icons/address.svg");
}
.ebs-row--country {
	padding-left: 31px;
}
.ebs-row--country::before {
	width: 31px;
	height: 17px;
	background-image: url("icons/flag.svg");
}
.ebs-row .ebs-label {
	letter-spacing: 0;
	color: var(--ebs-body);
}
.ebs-row p:not(.ebs-label) {
	font-size: 16px;
	line-height: 24px;
	color: var(--ebs-ink);
}
.ebs-row a {
	color: var(--ebs-primary);
	word-break: break-word;
}
.ebs-row a:hover {
	text-decoration: underline;
}
.ebs-stand {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	background: var(--ebs-tint);
	border: 1px solid rgba(0, 82, 204, 0.2);
	border-radius: 8px;
}
.ebs-stand .ebs-label {
	letter-spacing: 0;
	color: var(--ebs-body);
}
.ebs-stand p:not(.ebs-label) {
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	color: var(--ebs-blue);
}
.ebs-social {
	display: flex;
	gap: 16px;
	padding-top: 16px;
}
.ebs-social a {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ebs-line);
	border-radius: 9999px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ebs-social a:hover {
	border-color: var(--ebs-primary);
	background: var(--ebs-tint);
}
.ebs-social img {
	width: 20px;
	height: 20px;
}
.ebs .ebs-cta .wp-block-button,
.ebs .ebs-cta .wp-block-button__link {
	width: 100%;
}
.ebs .ebs-cta .wp-block-button__link {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 16px;
	background: var(--ebs-primary);
	border: 0;
	border-radius: 8px;
	font: 600 14px/16px var(--ebs-font);
	letter-spacing: 0.7px;
	color: #fff;
	text-align: center;
	transition: background-color 0.15s ease;
}
.ebs .ebs-cta .wp-block-button__link:hover {
	background: var(--ebs-blue);
	color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ebs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ebs-detail__main,
	.ebs-detail__aside {
		grid-column: 1 / -1;
	}
	.ebs-footer__top {
		flex-wrap: wrap;
	}
}
@media (max-width: 782px) {
	.ebs {
		--ebs-gutter: 16px;
	}
	.ebs-header .ebs-inner {
		flex-wrap: wrap;
		row-gap: 12px;
		padding-block: 12px;
	}
	.ebs-nav {
		order: 3;
		width: 100%;
		gap: 20px;
		overflow-x: auto;
		padding-bottom: 8px;
	}
	.ebs-intro h1,
	.ebs .ebs-detail h1 {
		font-size: 34px;
		line-height: 40px;
	}
	.ebs-filters {
		flex-wrap: wrap;
	}
	.ebs-search {
		flex-basis: 100%;
	}
	.ebs .ebs-category {
		flex: 1 1 auto;
	}
	.ebs-alpha {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 6px;
	}
	.ebs .ebs-alpha button {
		flex: none;
		width: 36px;
		height: 36px;
	}
	.ebs-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.ebs-contact {
		padding: 24px;
	}
	.ebs-footer__top {
		flex-direction: column;
		align-items: flex-start;
	}
	.ebs-footer__nav {
		flex-wrap: wrap;
		gap: 16px 24px;
	}
	.ebs-footer__brand,
	.ebs-footer__mail {
		width: auto;
		justify-content: flex-start;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ebs *,
	.ebs *::before {
		transition: none !important;
	}
}
