/**
 * Restaurant Ostrovo — full page layout (shortcode [ostrovo_restaurant_page]).
 */

.orp-page {
	--orp-bg: #faf8f4;
	--orp-ink: #1c1917;
	--orp-muted: #57534e;
	--orp-accent: #b45309;
	--orp-accent-soft: rgba(180, 83, 9, 0.12);
	--orp-radius: 1rem;
	color: var(--orp-ink);
	background: var(--orp-bg);
}

body.ostrovo-restaurant-page .page-wrapper {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.orp-nav {
	position: sticky;
	top: clamp(79px, 9.7vw, 95px);
	z-index: 50;
	background: rgba(250, 248, 244, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(28, 25, 23, 0.08);
	margin: 0 calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	margin-bottom: 0;
}

.orp-nav__arrow {
	display: none;
}

.orp-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	justify-content: center;
	align-items: center;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0.65rem clamp(0.75rem, 3vw, 1.25rem);
	list-style: none;
}

.orp-nav__a {
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--orp-muted);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.orp-nav__a:hover,
.orp-nav__a:focus-visible {
	color: var(--orp-accent);
	outline: none;
}

@media (max-width: 47.99rem) {
	.orp-nav {
		top: clamp(50px, 9vw, 62px);
		z-index: 70;
	}

	.orp-nav__list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0.35rem;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-left: 2.35rem;
		padding-right: 2.35rem;
		cursor: grab;
		user-select: none;
	}

	.orp-nav__list.is-dragging {
		cursor: grabbing;
	}

	.orp-nav__list::-webkit-scrollbar {
		display: none;
	}

	.orp-nav__a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		white-space: nowrap;
		padding: 0.5rem 0.78rem;
		border: 1px solid rgba(28, 25, 23, 0.14);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.8);
	}

	.orp-nav__arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 1.55rem;
		height: 1.55rem;
		border: 1px solid rgba(28, 25, 23, 0.16);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.92);
		color: #57534e;
		font-size: 1rem;
		line-height: 1;
		padding: 0;
		z-index: 2;
	}

	.orp-nav__arrow--left {
		left: 0.55rem;
	}

	.orp-nav__arrow--right {
		right: 0.55rem;
	}

	.orp-nav__arrow.is-hidden {
		opacity: 0.35;
	}
}

.orp-nav + .orp-hero {
	margin-top: 0 !important;
}

@media (min-width: 48rem) {
	.orp-section[id],
	#orp-gallery,
	#orp-360 {
		scroll-margin-top: 10.5rem;
	}
}

.orp-hero {
	position: relative;
	min-height: clamp(14rem, 52vw, 28rem);
	display: flex;
	align-items: flex-end;
	margin: 0 calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	overflow: hidden;
	border-radius: 0 0 var(--orp-radius) var(--orp-radius);
}

.orp-hero--has-bg {
	background-image: var(--orp-hero-bg);
	background-size: cover;
	background-position: center;
}

.orp-hero--plain {
	background: linear-gradient(165deg, #44403c 0%, #292524 100%);
}

.orp-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(12, 10, 9, 0.82) 0%, rgba(12, 10, 9, 0.25) 55%, transparent 100%);
	pointer-events: none;
}

.orp-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 48rem;
	margin: 0 auto;
	padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
	text-align: center;
}

.orp-hero__kicker {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.orp-hero__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.85rem, 5vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.08;
	color: #fff;
}

.orp-hero__lead {
	margin: 0;
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
	max-width: 38rem;
	margin-left: auto;
	margin-right: auto;
}

.orp-shell {
	max-width: 52rem;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 1.5rem) clamp(3rem, 8vw, 5rem);
}

.orp-section {
	margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
	padding-bottom: clamp(2rem, 4vw, 2.75rem);
	border-bottom: 1px solid rgba(28, 25, 23, 0.08);
	animation: orp-fade-up 0.65s ease backwards;
}

.orp-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

@keyframes orp-fade-up {
	from {
		opacity: 0;
		transform: translateY(0.75rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.orp-section--accent {
	background: var(--orp-accent-soft);
	margin-left: calc(50% - 50vw + 1rem);
	margin-right: calc(50% - 50vw + 1rem);
	width: calc(100vw - 2rem);
	max-width: none;
	padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
	border-radius: var(--orp-radius);
	border-bottom: none;
}

.orp-section--seasonal-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: calc(50% - 50vw + 1rem);
	margin-right: calc(50% - 50vw + 1rem);
	width: calc(100vw - 2rem);
	max-width: none;
	padding: clamp(2.6rem, 6.5vw, 4rem) clamp(1.25rem, 4vw, 2rem);
	min-height: clamp(18rem, 36vw, 25rem);
	border-radius: var(--orp-radius);
	border-bottom: none;
	background: linear-gradient(160deg, #1f2937 0%, #0f172a 100%);
	background-image: var(--orp-seasonal-bg);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.orp-section__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.42) 100%);
	z-index: 0;
}

.orp-section__hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 42rem;
	margin: 0 auto;
	text-align: center;
}

.orp-section--seasonal-hero .orp-h2,
.orp-section--seasonal-hero .orp-prose,
.orp-section--seasonal-hero .orp-prose p {
	color: #fff;
}

.orp-section--split {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 48rem) {
	.orp-section--split {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.orp-h2 {
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	color: var(--orp-ink);
}

.orp-prose {
	font-size: 1.02rem;
	line-height: 1.65;
	color: #44403c;
}

.orp-prose p {
	margin: 0 0 0.85rem;
}

.orp-prose p:last-child {
	margin-bottom: 0;
}

.orp-prose ul,
.orp-prose ol {
	margin: 0 0 0.85rem 1.1rem;
	padding: 0;
}

.orp-section__media {
	margin: 1.1rem 0 0;
	border-radius: var(--orp-radius);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.11);
}

.orp-section__media img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.orp-section__media--split {
	margin-top: 0;
	height: 100%;
}

.orp-section__media--split img {
	height: 100%;
	min-height: 16rem;
}

.orp-map.orp-embed-frame,
.orp-embed-frame {
	border-radius: var(--orp-radius);
	overflow: hidden;
	background: #e7e5e4;
	min-height: 14rem;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.orp-embed-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 16rem;
	border: 0;
}

.orp-embed-frame--tall iframe {
	min-height: min(70vh, 28rem);
}

.orp-menu__intro {
	margin-bottom: 1.25rem;
}

.orp-menu__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.orp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.15rem;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 0.55rem;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.orp-btn--primary {
	background: linear-gradient(135deg, #b45309, #d97706);
	color: #fff;
	box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
}

.orp-btn--primary:hover {
	transform: translateY(-1px);
}

.orp-btn--ghost {
	background: #fff;
	color: var(--orp-ink);
	border: 1px solid #d6d3d1;
}

.orp-btn--ghost:hover {
	border-color: var(--orp-accent);
	color: var(--orp-accent);
}

.orp-menu__cover {
	margin: 0;
	border-radius: var(--orp-radius);
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.orp-menu__cover img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
}

.orp-gallery__hint {
	font-size: 0.88rem;
	color: var(--orp-muted);
	margin: -0.35rem 0 1rem;
}

.orp-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
	gap: 0.65rem;
}

.orp-gal-item {
	position: relative;
	display: block;
	border-radius: 0.55rem;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease;
}

.orp-gal-item:hover,
.orp-gal-item:focus-visible {
	transform: scale(1.02);
	outline: none;
	z-index: 1;
}

.orp-gal-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.orp-gal-zoom {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0) center / 2rem 2rem no-repeat;
	transition: background-color 0.2s ease;
}

.orp-gal-item:hover .orp-gal-zoom,
.orp-gal-item:focus-visible .orp-gal-zoom {
	background-color: rgba(0, 0, 0, 0.25);
}

/* Lightbox (isto povedenie kako stay) */
html.orp-lightbox-open,
html.orp-lightbox-open body {
	overflow: hidden;
}

.orp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100001;
	background: rgba(12, 10, 9, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

.orp-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.orp-lightbox__stage {
	max-width: min(96vw, 72rem);
	max-height: 88vh;
}

.orp-lightbox__stage img {
	max-width: 100%;
	max-height: 88vh;
	width: auto;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: 0.35rem;
}

.orp-lightbox__close,
.orp-lightbox__prev,
.orp-lightbox__next {
	position: absolute;
	z-index: 2;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	cursor: pointer;
	border-radius: 0.35rem;
	font-size: 1.75rem;
	line-height: 1;
	padding: 0.35rem 0.55rem;
}

.orp-lightbox__close:hover,
.orp-lightbox__prev:hover,
.orp-lightbox__next:hover {
	background: rgba(255, 255, 255, 0.28);
}

.orp-lightbox__close {
	top: 1rem;
	right: 1rem;
}

.orp-lightbox__prev {
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.orp-lightbox__next {
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.orp-lightbox__counter {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
}

body.ostrovo-restaurant-page .entry-content .ostrovo-root > .orp-page {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
}
