/* ==========================================================================
   Experiences: single + archive
   Φορτώνει μόνο στις σελίδες Experiences (inc/post-types/experience.php).
   ========================================================================== */

.oh-experience,
.oh-experiences {
	--oh-exp-radius: 12px;
	--oh-exp-shadow: 0 18px 40px -28px rgba(31, 42, 38, 0.35);
	--oh-exp-divider: 1px solid rgba(31, 42, 38, 0.1);

	background-color: #fff;
	color: var(--oh-color-text);
}

/* --------------------------------------------------------------------------
   1. Hero: κείμενο κάτω-αριστερά, gradient κάτω
   ----------------------------------------------------------------------- */

.oh-page-hero.oh-page-hero--bottom {
	align-items: flex-end;
	justify-content: flex-start;
	min-height: 60vh;
	text-align: left;
}

.oh-page-hero--bottom .oh-page-hero__overlay {
	background: linear-gradient(180deg, rgba(22, 30, 24, 0.25) 0%, rgba(22, 30, 24, 0) 35%, rgba(22, 30, 24, 0.75) 100%);
}

.oh-page-hero--bottom .oh-page-hero__inner {
	align-items: flex-start;
	padding-bottom: clamp(40px, 6vw, 72px);
}

.oh-page-hero--bottom .oh-page-hero__title {
	max-width: 20ch;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
}

/* --------------------------------------------------------------------------
   2. Gallery (όλο το πλάτος του container)
   ----------------------------------------------------------------------- */

.oh-experience__gallery-wrap {
	padding-bottom: clamp(64px, 8vw, 112px);
}

.oh-experience__gallery {
	--oh-carousel-slide: calc((100% - var(--oh-carousel-gap)) / 2);
}

.oh-experience__gallery.is-single {
	--oh-carousel-slide: 100%;
}

.oh-experience .oh-experience__photo {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background-color: var(--oh-color-sage);
}

.oh-experience__gallery.is-single .oh-experience__photo {
	aspect-ratio: 21 / 9;
}

/* --------------------------------------------------------------------------
   3. Δύο στήλες: 70% κείμενο / 30% χάρτης + experiences
   ----------------------------------------------------------------------- */

.oh-experience__layout {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
	gap: clamp(40px, 5vw, 72px);
	align-items: start;
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: clamp(64px, 8vw, 112px);
}

.oh-experience__main > :first-child {
	margin-top: 0;
}

/* Intro (excerpt) */
.oh-experience .oh-experience__intro {
	margin: 0;
	font-family: var(--oh-font-heading);
	font-size: clamp(1.25rem, 2.2vw, 1.625rem);
	line-height: 1.5;
	color: var(--oh-color-dark);
}

/* Info bar */
.oh-experience .oh-experience__info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 32px;
	margin: 32px 0 0;
	padding: 18px 0;
	border-top: var(--oh-exp-divider);
	border-bottom: var(--oh-exp-divider);
	list-style: none;
	font-size: 0.9375rem;
	color: var(--oh-color-dark);
}

.oh-experience__info li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.oh-experience__info .oh-icon {
	color: var(--oh-color-primary);
}

/* Περιγραφή */
.oh-experience .oh-experience__content {
	margin-top: 40px;
	font-size: 1.0625rem;
	line-height: 1.75;
}

.oh-experience .oh-experience__main > .oh-experience__content:first-child {
	margin-top: 0;
}

.oh-experience__content::after {
	content: "";
	display: table;
	clear: both;
}

/* Κενά μεταξύ παραγράφων */
.oh-experience .oh-experience__content p {
	margin: 0 0 1.5em;
}

.oh-experience__content > :first-child {
	margin-top: 0;
}

.oh-experience .oh-experience__content > :last-child {
	margin-bottom: 0;
}

.oh-experience .oh-experience__content :where(h2, h3, h4) {
	font-family: var(--oh-font-heading);
	font-weight: 400;
	line-height: 1.25;
	color: var(--oh-color-dark);
}

.oh-experience .oh-experience__content h2 {
	margin: 2em 0 0.6em;
	font-size: clamp(1.75rem, 3vw, 2.125rem);
}

.oh-experience .oh-experience__content h3 {
	margin: 2.2em 0 0.5em;
	font-size: clamp(1.375rem, 2.4vw, 1.625rem);
}

/* Εικόνες μέσα στο κείμενο: όλο το πλάτος της στήλης */
.oh-experience .oh-experience__content > :is(
	figure.wp-block-image:not(.alignleft):not(.alignright),
	div.wp-block-image:not(:has(.alignleft, .alignright)),
	figure.wp-caption:not(.alignleft):not(.alignright),
	p:has(> img:only-child:not(.alignleft):not(.alignright))
) {
	width: 100%;
	max-width: none;
	margin: 2.2em 0;
}

.oh-experience .oh-experience__content :is(.wp-block-image, .wp-caption, p) img {
	display: block;
	width: 100%;
	height: auto;
}

.oh-experience .oh-experience__content .wp-block-image figure {
	margin: 0;
}

/* Εικόνες αριστερά/δεξιά: 40%, το κείμενο τυλίγεται δίπλα */
.oh-experience .oh-experience__content .alignleft,
.oh-experience .oh-experience__content .alignright {
	width: 40%;
	max-width: 40%;
	margin-top: 0.4em;
	margin-bottom: 1em;
}

.oh-experience .oh-experience__content .alignleft {
	float: left;
	margin-right: 2em;
	margin-left: 0;
}

.oh-experience .oh-experience__content .alignright {
	float: right;
	margin-left: 2em;
	margin-right: 0;
}

.oh-experience .oh-experience__content :is(.alignleft, .alignright) img,
.oh-experience .oh-experience__content img:is(.alignleft, .alignright) {
	width: 100%;
	height: auto;
}

/* Captions */
.oh-experience .oh-experience__content :is(figcaption, .wp-caption-text, .wp-element-caption) {
	margin: 10px 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	text-align: center;
	color: var(--oh-color-muted);
}

/* Blockquote σε στυλ ποιήματος */
.oh-experience .oh-experience__content blockquote {
	margin: 2.5em auto;
	padding: 1.5em 0;
	border: 0;
	border-top: 1px solid rgba(31, 42, 38, 0.15);
	border-bottom: 1px solid rgba(31, 42, 38, 0.15);
	background: none;
	font-family: var(--oh-font-heading);
	font-size: 1.25rem;
	font-style: italic;
	line-height: 1.7;
	text-align: center;
	color: var(--oh-color-dark);
}

.oh-experience .oh-experience__content blockquote p {
	margin: 0 0 0.6em;
}

.oh-experience .oh-experience__content blockquote p:last-of-type {
	margin-bottom: 0;
}

.oh-experience .oh-experience__content blockquote cite {
	display: block;
	margin-top: 1em;
	font-family: var(--oh-font-body);
	font-size: 0.8125rem;
	font-style: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--oh-color-muted);
}

/* Places to visit */
.oh-experience__places {
	margin-top: clamp(48px, 6vw, 72px);
}

.oh-experience .oh-experience__heading {
	margin: 0 0 24px;
	padding: 0;
	font-family: var(--oh-font-heading);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--oh-color-dark);
}

.oh-experience .oh-places-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oh-place-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 20px;
	background-color: #fff;
	border: 1px solid rgba(31, 42, 38, 0.08);
	border-radius: var(--oh-exp-radius);
	box-shadow: var(--oh-exp-shadow);
}

.oh-place-card__icon:has(.oh-icon + .oh-icon) {
	display: flex;
	justify-content: center;
	gap: 1px;
}

.oh-place-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.oh-experience .oh-place-card__name {
	margin: 0;
	padding: 0;
	font-family: var(--oh-font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--oh-color-dark);
}

.oh-experience .oh-place-card__distance {
	margin: 0;
	font-size: 0.875rem;
	color: var(--oh-color-muted);
}

.oh-experience .oh-place-card__note {
	margin: 2px 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--oh-color-text);
}

.oh-experience .oh-place-card__map,
.oh-experience .oh-place-card__map:visited {
	margin-top: 6px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--oh-color-primary);
	text-decoration: none;
}

.oh-experience .oh-place-card__map:hover {
	color: var(--oh-color-primary-dark);
}

/* Δεξιά στήλη */
.oh-experience__aside {
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 5vw, 56px);
}

.oh-experience .oh-experience__aside-title {
	margin: 0 0 16px;
	padding: 0 0 12px;
	border-bottom: var(--oh-exp-divider);
	font-family: var(--oh-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--oh-color-muted);
}

.oh-experience__map {
	overflow: hidden;
	background-color: var(--oh-color-sage);
	box-shadow: var(--oh-exp-shadow);
}

.oh-experience__map iframe {
	display: block;
	width: 100%;
	height: 400px;
	border: 0;
}

.oh-experience .oh-experience__map-link {
	margin: 12px 0 0;
}

/* Υπόλοιπα experiences: το ένα κάτω από το άλλο */
.oh-experience .oh-experience__others {
	display: grid;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oh-experience__others > li {
	margin: 0;
}

.oh-experience__others .oh-exp-card .oh-exp-card__link {
	aspect-ratio: 4 / 3;
}

.oh-experience .oh-experience__all {
	justify-content: center;
	width: 100%;
	margin-top: 20px;
	padding: 17px 24px;
}

@media (max-width: 1024px) {
	.oh-experience .oh-experience__all {
		width: auto;
	}
}

/* --------------------------------------------------------------------------
   Archive: grid καρτών
   ----------------------------------------------------------------------- */

.oh-experiences .oh-experiences__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oh-experiences__grid > li {
	margin: 0;
}

.oh-experiences__empty {
	padding: 24px;
	border: 1px dashed rgba(31, 42, 38, 0.25);
	color: var(--oh-color-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet: οι στήλες γίνονται η μία κάτω από την άλλη */
@media (max-width: 1024px) {
	.oh-experience__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Experiences δίπλα-δίπλα όταν η δεξιά στήλη πάει κάτω */
	.oh-experience .oh-experience__others {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}

	.oh-experience__gallery {
		--oh-carousel-slide: 85%;
	}

	.oh-experiences .oh-experiences__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.oh-page-hero.oh-page-hero--bottom {
		min-height: 45vh;
	}

	.oh-page-hero--bottom .oh-page-hero__inner {
		padding-top: 120px;
	}

	.oh-experience .oh-experience__content .alignleft,
	.oh-experience .oh-experience__content .alignright {
		float: none;
		width: 100%;
		max-width: 100%;
		margin: 1.5em 0;
	}

	.oh-experience .oh-places-grid,
	.oh-experiences .oh-experiences__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.oh-experience__map iframe {
		height: 320px;
	}

	.oh-experience__gallery,
	.oh-experience__gallery.is-single {
		--oh-carousel-slide: 88%;
	}

	.oh-experience__gallery.is-single .oh-experience__photo {
		aspect-ratio: 4 / 3;
	}
}

/* --------------------------------------------------------------------------
   Κάρτες experiences σε λευκό φόντο (Explore Ithaca, "Explore more"):
   σκιά + ανέβασμα στο hover, όπως οι κάρτες των apartments.
   ----------------------------------------------------------------------- */

.oh-experiences__grid .oh-exp-card .oh-exp-card__link,
.oh-experience__others .oh-exp-card .oh-exp-card__link {
	box-shadow: 0 14px 34px -26px rgba(31, 42, 38, 0.45);
	transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.oh-experiences__grid .oh-exp-card .oh-exp-card__link:hover,
.oh-experiences__grid .oh-exp-card .oh-exp-card__link:focus-visible,
.oh-experience__others .oh-exp-card .oh-exp-card__link:hover,
.oh-experience__others .oh-exp-card .oh-exp-card__link:focus-visible {
	box-shadow: 0 26px 48px -24px rgba(31, 42, 38, 0.55);
	transform: translateY(-6px);
}

/* Πιο σκούρο gradient στο hover — το κείμενο "ανεβαίνει" λίγο */
.oh-exp-card__body {
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.oh-exp-card__link:hover .oh-exp-card__body,
.oh-exp-card__link:focus-visible .oh-exp-card__body {
	transform: translateY(-6px);
}

.oh-exp-card__link:hover::after,
.oh-exp-card__link:focus-visible::after {
	opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
	.oh-exp-card .oh-exp-card__link,
	.oh-exp-card__body {
		transition: none;
	}
}
