/**
 * Trail Notes Block Styles
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Main Container */
.trail-notes {
	width: 100%;
	position: relative;
	padding: 0;
}

.trail-notes-container {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	background-color: #4C4C3B;
	background-image: url('../../assets/images/trail-topo.png');
	background-repeat: repeat;
	background-position: center;
	background-size: cover;
	position: relative;
	padding: 49px 20px 5px 20px;
	min-height: 600px;
}

/* TRAIL NOTES Tab */
.trail-notes-tab {
	position: absolute;
	top: -51px;
	right: 138px;
	background-color: #4c4c3b;
	padding: 15px 27px;
	border-radius: 12px 12px 0 0;
	z-index: 10;
	color: #C1B488;
}

.trail-notes-tab-text {
	color: #C1B488;
	font-size: 30px;
	text-transform: uppercase;
	letter-spacing: 0;
	font-family: 'Palmer Lake Print';
}

/* Header Section (Title and Subtitle) */
.trail-notes-header {
	text-align: center;
	margin-bottom: 62px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 20px;
}

.trail-notes-title {
	margin: 0 0 11px;
	padding: 0;
	font-size: 35px;
	line-height: 41px;
	font-weight: 100;
	font-family: 'Sunrider', sans-serif;
	text-transform: uppercase;
	color: #F8F2DF;
	text-align: center;
	letter-spacing: 0.01rem;
}

.trail-notes-title .highlight {
	color: #D4B055;
	font-weight: 100;
}

.trail-notes-subtitle {
	margin: 0;
	padding: 0;
	font-size: 26px;
	line-height: 28px;
	font-weight: 400;
	font-family: 'Article Century';
	color: #F8F2DF!important;
	text-align: center;
}

.trail-notes-subtitle .highlight {
	color: #C1B588;
	font-weight: 600;
}

/* Cards Container */
.trail-notes-cards {
	display: flex;
	gap: 0;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 53px 0 22px;
	justify-content: space-between;
}

/* Individual Card */
.trail-notes-card {
	position: relative;
	background-color: #C1B588;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s ease;
	will-change: transform;
	width: 278px;
	transform-origin: center center;
}

.trail-notes-card:hover {
	animation: mtt-wiggle-rotate 0.55s ease-in-out;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@keyframes mtt-wiggle-rotate {
	0%   { transform: rotate(0deg); }
	20%  { transform: rotate(-1.2deg); }
	40%  { transform: rotate(1.2deg); }
	60%  { transform: rotate(-0.8deg); }
	80%  { transform: rotate(0.8deg); }
	100% { transform: rotate(0deg); }
}

.trail-notes-card-link {
	display: flex;
	flex-direction: row;
	text-decoration: none;
	color: inherit;
	width: 100%;
	position: relative;
}

.trail-notes-card-content {
	flex: 1;
	padding: 27px 21px 1px;
	display: flex;
	flex-direction: column;
}

.trail-notes-card-title {
	margin: 0 0 24px 0;
	padding: 0;
	font-size: 15px;
	line-height: 18px;
	font-weight: 100;
	font-family: 'Sunrider', sans-serif;
	text-transform: uppercase;
	color: #F8F2DF!important;
	text-align: center;
}

.trail-notes-card-image-wrapper {
	margin: 0;
	padding: 0;
	width: 100%;
	height: auto;
	border-radius: 8px;
	overflow: hidden;
}

.trail-notes-card-image-wrapper img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 12px;
	aspect-ratio: 1/1;
}

/* Category Tab (Vertical) */
.trail-notes-card-category-tab {
	background-color: #c1b688;
	writing-mode: sideways-lr;
	text-orientation: mixed;
	padding: 20px 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	border-left: none;
	position: absolute;
	top: 0;
	right: -35px;
	border-top-right-radius: 12px;
	border-bottom-right-radius: 12px;
	min-height: 139px;
}

.trail-notes-card-category-text {
	color: #4C4C3B;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-family: 'Sunrider', sans-serif;
	transform: rotate(180deg);
	white-space: nowrap;
}

/* Responsive Design - Tablet (768px - 1024px) */
@media (max-width:1024px) {
	.trail-notes-card {
		max-width:29%;
	}
	.trail-notes-container {
		padding-bottom:60px;
	}
}

/* Responsive Design - Mobile (max-width: 767px) */
@media (max-width: 767px) {
	.trail-notes-cards {
		display:block;
	}
	.trail-notes-card {
        max-width: 100%;
		margin:0 auto 30px;
    }
}

/* "Read post" button below image - Desktop and Mobile */
.trail-notes-card-image-wrapper {
	position: relative;
	margin-bottom: 15px;
}

.trail-notes-card-image-wrapper::after {
	content: 'Read post';
	padding: 4px 12px 2px;
	text-decoration: none;
	border-radius: 7px;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #4C4C3B;
	font-family: 'Sunrider';
	margin: -17px auto 0;
	display: block;
	max-width: 130px;
	position: relative;
	text-align: center;
	background-color: #F8F2DF;
	border: 2px solid #4C4C3B;
}

/* Extra Small Devices (max-width: 480px) */
@media (max-width: 550px) {
	.trail-notes-tab {
		display:none;
	}
	.trail-notes-title {
		font-size:25px;
		line-height:23px;
	}
	.trail-notes-subtitle {
		font-size:16px;
		line-height:18px;
	}
	.trail-notes-header {
		margin-bottom:20px;
	}
	.trail-notes-container {
		padding:30px 10px 20px;
	}
	.trail-notes-card-title {
		font-size:12px;
		line-height:14px;
		margin: 0 0 15px;
	}
	.trail-notes-card-category-text {
		font-size:12px;
	}
	.trail-notes-card-content {
		padding:20px;
	}
	.trail-notes-card-category-tab {
	    background-color: #c1b688;
	    writing-mode: sideways-lr;
	    text-orientation: mixed;
	    padding: 10px 2px;
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    min-width: 30px;
	    border-left: none;
	    position: absolute;
	    top: 0;
	    right: -20px;
	    border-top-right-radius: 12px;
	    border-bottom-right-radius: 12px;
	    min-height: 109px;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.trail-notes-container {
		background-color: #2C2C1F;
		background-image: none;
	}

	.trail-notes-title,
	.trail-notes-subtitle {
		color: #FFFFFF;
		text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
	}

	.trail-notes-title .highlight,
	.trail-notes-subtitle .highlight {
		color: #FFD700;
		background-color: rgba(0, 0, 0, 0.3);
		padding: 2px 4px;
		border-radius: 3px;
	}

	.trail-notes-card {
		background-color: #E8D5A3;
		border: 2px solid #4C4C3B;
	}

	.trail-notes-card-title {
		color: #000000;
		font-weight: 700;
	}

	.trail-notes-card-category-tab {
		background-color: #E8D5A3;
		border-color: #000000;
	}

	.trail-notes-card-category-text {
		color: #000000;
		font-weight: 700;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.trail-notes-card {
		transition: none;
	}

	.trail-notes-card:hover {
		animation: none;
		transform: none;
	}
}

/* Print Styles */
@media print {
	.trail-notes-container {
		background-color: #FFFFFF;
		background-image: none;
		padding: 20px;
	}

	.trail-notes-tab {
		background-color: #F0F0F0;
		border: 1px solid #000000;
	}

	.trail-notes-tab-text {
		color: #000000;
	}

	.trail-notes-title,
	.trail-notes-subtitle {
		color: #000000;
	}

	.trail-notes-title .highlight,
	.trail-notes-subtitle .highlight {
		color: #000000;
		font-weight: 700;
	}

	.trail-notes-card {
		background-color: #F5F5F5;
		border: 1px solid #000000;
		page-break-inside: avoid;
		margin-bottom: 20px;
	}

	.trail-notes-card-link {
		text-decoration: underline;
	}

	.trail-notes-card-title {
		color: #000000;
	}

	.trail-notes-card-category-tab {
		background-color: #F0F0F0;
		border-color: #000000;
	}

	.trail-notes-card-category-text {
		color: #000000;
	}
}

/* Support for block wrapper color classes */
.trail-notes.has-background {
	padding: 0;
}

.trail-notes.has-text-color .trail-notes-title,
.trail-notes.has-text-color .trail-notes-subtitle,
.trail-notes.has-text-color .trail-notes-card-title {
	color: inherit;
}

/* Ensure proper spacing when background color is applied */
.trail-notes.has-background .trail-notes-container {
	padding: 80px 20px 80px 20px;
}

/* Focus styles for accessibility */
.trail-notes-card-link:focus {
	outline: 3px solid #C1B588;
	outline-offset: 2px;
}

.trail-notes-card-link:focus-visible {
	outline: 3px solid #C1B588;
	outline-offset: 2px;
}






