/* =========================================================
   MY SITES DASHBOARD PAGE
========================================================= */

.mySitesPage {
	min-height: 100%;
	color: #3f443f;
	background: #f7f4eb;
}

.mySitesPage *,
.mySitesPage *::before,
.mySitesPage *::after {
	box-sizing: border-box;
}


/* =========================================================
   PAGE LAYOUT
========================================================= */

.mySitesPage {
	min-height: 100vh;
	color: #3f443f;
	background: #f7f4eb;
}

.mySitesPage > .row {
	align-items: stretch;
	min-height: 100vh;
}

.mySitesSidebarColumn {
	display: flex;
	align-self: stretch;
}

.mySitesMain {
	min-width: 0;
	background: #f7f4eb;
}


/* =========================================================
   SIDEBAR
========================================================= */

.mySitesSidebar {
	position: relative;

	width: 100%;
	min-height: 100%;
	overflow: hidden;

	background:
	linear-gradient(
		180deg,
		rgba(247, 244, 235, 0.96) 0%,
		rgba(38, 42, 39, 0.94) 65%,
		rgba(0, 0, 0, 0.99) 100%
	);

	border-right: none;
	box-shadow: 6px 0 18px rgba(30, 47, 34, 0.04);
}

/* Soft translucent highlight near the top */
.mySitesSidebar::before {
	position: absolute;
	inset: 0;

	content: "";
	pointer-events: none;

	background:
	linear-gradient(
		180deg,
		#fcfbf8 0%,
		#f7f4eb 25%,
		#f1ede4 65%,
		#e8e3d8 100%
	);
}

/* Slightly darker fade near the bottom */
.mySitesSidebar::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;

	height: 34%;

	content: "";
	pointer-events: none;

	background:
		linear-gradient(
			to top,
			rgba(18, 36, 23, 0.28),
			rgba(18, 36, 23, 0)
		);
}

.mySitesSidebarOverlay {
	position: relative;
	z-index: 1;

	width: 100%;
	min-height: 100%;
	padding: 1.25rem 0.8rem;
}

/* =========================================================
   SIDEBAR COMPONENT OVERRIDES
========================================================= */

.mySitesSidebar SidebarComponent {
	display: block;
	width: 100%;
}

.mySitesSidebar a,
.mySitesSidebar button {
	color: #ffffff;
}

.mySitesSidebar .nav-link,
.mySitesSidebar .sidebarLink,
.mySitesSidebar .list-group-item {
	margin-bottom: 0.25rem;
	padding: 0.68rem 0.85rem;

	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;

	background: transparent;
	border: 0;
	border-radius: 8px;

	transition:
		background-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.mySitesSidebar .nav-link:hover,
.mySitesSidebar .sidebarLink:hover,
.mySitesSidebar .list-group-item:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
	transform: translateX(2px);
}

.mySitesSidebar .nav-link.active,
.mySitesSidebar .sidebarLink.active,
.mySitesSidebar .list-group-item.active {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.17);
	box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.78);
}




/* =========================================================
   SIDEBAR CONTENT LAYOUT
========================================================= */

.sidebarContent {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;

	width: 100%;
	max-width: 180px;
	margin: 0 auto;
	padding-top: 2rem;
}

.sidebarContent .sidebarRetrieveDataButton,
.sidebarContent .sidebarActionDropdown,
.sidebarContent .sidebarDropdownButton,
.sidebarContent .sidebarAssignmentPanel {
	width: 100%;
}

.sidebarContent .sidebarAssignmentPanel {
	margin-top: 1.5rem;
	background: #2c4c34;
}


/* =========================================================
   SIDEBAR ACTION BUTTONS
========================================================= */

.sidebarRetrieveDataButton,
.sidebarDropdownButton {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;

	min-height: 36px;
	padding: 0.55rem 1rem;

	overflow: hidden;

	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;

	border-radius: 7px;

	transition:
		transform 160ms ease,
		background-color 160ms ease,
		border-color 160ms ease,
		box-shadow 160ms ease;
}

.sidebarRetrieveDataButton {
	color: #ffffff;
	background: #708090;
	border: 1px solid #708090;
	box-shadow: 0 3px 8px rgba(19, 39, 24, 0.14);
}

.sidebarRetrieveDataButton:hover,
.sidebarRetrieveDataButton:focus {
	color: #ffffff;
	background: #9bafc4;
	border-color: #9bafc4;
	box-shadow: 0 5px 11px rgba(19, 39, 24, 0.18);
	transform: translateY(-1px);
}

.sidebarDropdownButton {
	color: #ffffff;
	background: rgba(122, 44, 55, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 3px 8px rgba(19, 39, 24, 0.16);
}

.sidebarDropdownButton:hover,
.sidebarDropdownButton:focus,
.sidebarDropdownButton.show {
	color: #ffffff;
	background: #8c3541;
	border-color: rgba(255, 255, 255, 0.24);
	box-shadow: 0 5px 11px rgba(19, 39, 24, 0.2);
	transform: translateY(-1px);
}

.sidebarRetrieveDataButton i,
.sidebarDropdownButton i {
	font-size: 0.8rem;
}


/* =========================================================
   SIDEBAR DROPDOWN MENU
========================================================= */

.sidebarActionDropdown {
	width: 100%;
}

.sidebarDropdownMenu {
	width: 100%;
	min-width: 100%;
	margin-top: 0.35rem;
	padding: 0.35rem;

	background: #ffffff;
	border: 1px solid #dedbd2;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(29, 42, 32, 0.16);
}

.sidebarDropdownMenu .dropdown-item {
	padding: 0.55rem 0.7rem;

	color: #3f443f;
	font-size: 0.78rem;
	line-height: 1.3;
	white-space: normal;

	border-radius: 6px;
}

.sidebarDropdownMenu .dropdown-item:hover,
.sidebarDropdownMenu .dropdown-item:focus {
	color: #2c4c34;
	background: #f2f3ed;
}


/* =========================================================
   ASSIGNMENT PANEL
========================================================= */

.sidebarAssignmentPanel {
	padding: 0.85rem;

	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 9px;
}

.sidebarAssignmentHeading {
	margin: 0 0 0.65rem;

	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.sidebarAssignmentList {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.sidebarAssignmentLink {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;

	padding: 0.4rem 0.45rem;

	color: rgba(255, 255, 255, 0.9);
	font-size: 0.76rem;
	line-height: 1.35;
	text-decoration: none;

	border-radius: 6px;

	transition:
		color 150ms ease,
		background-color 150ms ease;
}

.sidebarAssignmentLink i {
	margin-top: 0.12rem;

	color: #e3c874;
	font-size: 0.65rem;
}

.sidebarAssignmentLink:hover,
.sidebarAssignmentLink:focus {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.11);
}

/*removes the solid line in the sidebar*/
.mySitesSidebar SidebarComponent,
.mySitesSidebar SidebarComponent > div {
	border-right: 0 !important;
	box-shadow: none !important;
}
/* =========================================================
   PAGE HERO
========================================================= */

.mySitesHero {
	position: relative;

	min-height: 145px;
	overflow: hidden;

	background-image: url("/images/login_background.png");
	background-repeat: no-repeat;
	background-position:  right 27%;
	background-size: cover;

	border-bottom: 1px solid #dedbd2;
}

.mySitesHeroOverlay {
	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			90deg,
			rgba(247, 244, 235, 0.96) 0%,
			rgba(247, 244, 235, 0.83) 35%,
			rgba(247, 244, 235, 0.39) 65%,
			rgba(247, 244, 235, 0.08) 100%
		);
}

.mySitesHeroContent {
	position: relative;
	z-index: 1;

	display: flex;
	align-items: center;
	gap: 0.9rem;

	width: 100%;
	max-width: 1348px;
	min-height: 145px;
	margin: 0 auto;
	padding: 1.5rem 2rem;
}

.mySitesHeroIcon {
	display: flex;
	flex: 0 0 54px;
	align-items: center;
	justify-content: center;

	width: 54px;
	height: 54px;

	color: #2c4c34;
	font-size: 1.3rem;

	background: rgba(255, 255, 255, 0.84);
	border: 1px solid rgba(44, 76, 52, 0.15);
	border-radius: 50%;

	box-shadow: 0 4px 12px rgba(44, 55, 46, 0.1);
	backdrop-filter: blur(4px);
}

.mySitesHeroText {
	max-width: 355px;
	
}

.mySitesHeroText h1 {
	margin: 0 0 0.2rem;

	color: #2c4c34;
	font-family: roboto;
	font-size: clamp(1.9rem, 3vw, 2.65rem);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.mySitesHeroText p {
	max-width: 500px;
	margin: 0;

	color: #60675f;
	font-size: 0.9rem;
	line-height: 1.45;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.mySitesContent {
	width: 100%;
	max-width: 1380px;
	margin: 0 auto;
	padding: 1.4rem 2rem 3rem;
}


/* =========================================================
   TOOLBAR
========================================================= */

.mySitesToolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;

	width: 100%;
	margin-bottom: 1.4rem;
}

.mySitesToolbarAction {
	display: flex;
	flex: 0 0 auto;
}

.mySitesToolbarActionCenter {
	margin-right: 0;
}


/* =========================================================
   TOOLBAR BUTTONS
========================================================= */

.mySitectionButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;

	width: 100%;
	max-width: 185px;
	min-height: 42px;
	padding: 0.5rem 0.85rem;

	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;

	border-radius: 7px;

	transition:
		transform 160ms ease,
		box-shadow 160ms ease,
		background-color 160ms ease,
		border-color 160ms ease;
}

/* Map View / Card View button */
.mySitesActionButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem; /* Increase from the default 0.5rem */
}

.mySitesActionButton i {
	margin-right: 0; /* Ensure no conflicting margin */
	font-size: 0.9rem;
}

.mySitesRetrieveButton {
	color: #2c4c34;
	background: #ffffff;
	border: 1px solid #d9d6cc;
	box-shadow: 0 3px 8px rgba(45, 54, 46, 0.07);
}

.mySitesRetrieveButton:hover,
.mySitesRetrieveButton:focus {
	color: #2c4c34;
	background: #f8f7f2;
	border-color: #bdc6bc;
	box-shadow: 0 5px 11px rgba(45, 54, 46, 0.1);
	transform: translateY(-1px);
}

.mySitesMapButton {
	color: #ffffff;
	background: #2c4c34;
	border: 1px solid #2c4c34;
	box-shadow: 0 3px 8px rgba(44, 76, 52, 0.15);
}

.mySitesMapButton:hover,
.mySitesMapButton:focus {
	color: #ffffff;
	background: #3a6345;
	border-color: #3a6345;
	box-shadow: 0 5px 12px rgba(44, 76, 52, 0.19);
	transform: translateY(-1px);
}


/* =========================================================
   FILTER
========================================================= */

.mySitesToolbarFilter {
	display: flex;
	flex: 0 0 310px;
	justify-content: flex-end;

	width: 310px;
	max-width: 310px;
	min-width: 0;
	margin-left: auto;
}

.mySitesFilterWrapper {
	display: flex;
	align-items: center;

	width: 310px;
	max-width: 310px;
	min-width: 0;
	min-height: 42px;
	padding: 0;

	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.mySitesFilterIcon {
	display: flex;
	flex: 0 0 24px;
	align-items: center;
	justify-content: flex-start;

	color: #708090;
	font-size: 0.75rem;
}

.mySitesFilterComponent {
	flex: 1 1 auto;

	width: 100%;
	min-width: 0;
}

.mySitesFilterComponent SiteListFilterComponent {
	display: block;
	width: 100%;
}


/* =========================================================
   FILTER COMPONENT OVERRIDES
========================================================= */

.mySitesFilterComponent .row {
	align-items: center;

	width: 100%;
	margin: 0;
}

.mySitesFilterComponent .form-group,
.mySitesFilterComponent p {
	margin-top: 0;
	margin-bottom: 0;
}

.mySitesFilterComponent label {
	margin-bottom: 0.15rem;

	color: #60675f;
	font-size: 0.68rem;
	font-weight: 600;
}

.mySitesFilterComponent select,
.mySitesFilterComponent input,
.mySitesFilterComponent .form-select,
.mySitesFilterComponent .form-control,
.mySitesFilterComponent button {
	width: 100%;
	min-height: 40px;
	padding: 0.35rem 0.65rem;

	color: #424942;
	font-size: 0.82rem;

	background-color: #ffffff;
	border: 1px solid #d9d6cc;
	border-radius: 7px;
	box-shadow: 0 3px 8px rgba(45, 54, 46, 0.06);
}

.mySitesFilterComponent select:hover,
.mySitesFilterComponent input:hover,
.mySitesFilterComponent .form-select:hover,
.mySitesFilterComponent .form-control:hover,
.mySitesFilterComponent button:hover {
	border-color: #bdc6bc;
}

.mySitesFilterComponent select:focus,
.mySitesFilterComponent input:focus,
.mySitesFilterComponent .form-select:focus,
.mySitesFilterComponent .form-control:focus,
.mySitesFilterComponent button:focus {
	border-color: #708090;
	outline: 0;
	box-shadow: 0 0 0 0.15rem rgba(112, 128, 144, 0.12);
}


/* =========================================================
   SITE GRID
========================================================= */

.mySitesGrid {
	align-items: stretch;
	margin-top: 0;
}

.mySitesGrid .siteBlock {
	display: flex;
}


/* =========================================================
   SITE CARD
========================================================= */

.mySiteCard {
	display: flex;
	flex-direction: column;

	width: 100%;
	height: 100%;
	margin: 0;
	overflow: visible;

	background: #708090;
	border: 1px solid rgba(77, 91, 105, 0.35);
	border-radius: 14px;

	box-shadow: 0 5px 14px rgba(44, 55, 46, 0.1);

	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		border-color 180ms ease;
}

.mySiteCardClickable {
	cursor: pointer;
}

.mySiteCardClickable:focus-visible {
	outline: 3px solid rgba(122, 44, 55, 0.25);
	outline-offset: 3px;
}

.mySiteCard:hover {
	border-color: rgba(77, 91, 105, 0.55);
	box-shadow: 0 9px 20px rgba(44, 55, 46, 0.15);
	transform: translateY(-2px);
}


/* =========================================================
   SITE CARD IMAGE / POLYGON THUMBNAIL
========================================================= */

.mySiteCardImage {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	height: 150px;
	min-height: 150px;
	overflow: hidden;

	background-color: #d7dcd7;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}


/* =========================================================
   READ-ONLY MAP THUMBNAIL
========================================================= */

.mySiteBoundaryThumbnail {
	position: absolute;
	inset: 0;
	z-index: 2;

	display: block;

	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;

	overflow: hidden;
	pointer-events: none;
}

.mySiteBoundaryThumbnail .vineyardMapCanvas {
	position: absolute;
	inset: 0;

	display: block;

	width: 100% !important;
	height: 100% !important;
	min-width: 0;
	min-height: 0;

	margin: 0 !important;
	padding: 0 !important;

	overflow: hidden;
	pointer-events: none;
}

.mySiteBoundaryThumbnail .vineyardMap {
	position: absolute;
	inset: 0;

	display: block;

	width: 100% !important;
	height: 100% !important;
	min-width: 0;
	min-height: 0;

	margin: 0 !important;
	padding: 0 !important;

	overflow: hidden;
	pointer-events: none;
}

.mySiteBoundaryThumbnail .maplibregl-map,
.mySiteBoundaryThumbnail .maplibregl-canvas-container,
.mySiteBoundaryThumbnail .maplibregl-canvas {
	width: 100% !important;
	height: 100% !important;
	min-width: 0;
	min-height: 0;

	pointer-events: none !important;
}

.mySiteBoundaryThumbnail .maplibregl-control-container {
	display: none !important;
}

.mySiteBoundaryThumbnail,
.mySiteBoundaryThumbnail .vineyardMap,
.mySiteBoundaryThumbnail .vineyardMapCanvas,
.mySiteBoundaryThumbnail .maplibregl-map,
.mySiteBoundaryThumbnail .maplibregl-canvas-container,
.mySiteBoundaryThumbnail .maplibregl-canvas {
	border-radius: 0 !important;
}


/* =========================================================
   STOCK VINEYARD FALLBACK
========================================================= */

.mySiteCardFallbackImage {
	position: absolute;
	inset: 0;
	z-index: 0;

	display: block;

	width: 100%;
	height: 100%;

	background-image:
		url("/images/block_background_1.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.mySiteCardImageOverlay {
	position: absolute;
	inset: 0;
	z-index: 1;

	pointer-events: none;

	background:
		linear-gradient(
			to bottom,
			rgba(18, 28, 21, 0.01) 0%,
			rgba(18, 28, 21, 0.05) 55%,
			rgba(18, 28, 21, 0.32) 100%
		);

	transition: background 180ms ease;
}

.mySiteCard:hover .mySiteCardImageOverlay {
	background:
		linear-gradient(
			to bottom,
			rgba(18, 28, 21, 0.03) 0%,
			rgba(18, 28, 21, 0.1) 55%,
			rgba(18, 28, 21, 0.38) 100%
		);
}

.mySiteCardImage:has(.mySiteBoundaryThumbnail)
	.mySiteCardImageOverlay {
	display: none;
}


/* =========================================================
   SITE CARD TITLE
========================================================= */

.mySiteCardHeader {
	display: flex;
	align-items: center;

	min-height: 39px;
	padding: 0.42rem 0.8rem;

	background: #2c4d34;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.mySiteCardHeader {
	overflow: hidden;
	border-radius: 14px 14px 0 0;
}

.mySiteCardImage,
.mySiteBoundaryThumbnail,
.mySiteCardFallbackImage {
	border-radius: 0;
}

.mySiteCardTitle {
	width: 100%;
	margin: 0;

	color: #ffffff;
	font-family: Roboto, Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.22;
	text-align: center;
	text-decoration: none;

	cursor: pointer;
	word-break: normal;
	overflow-wrap: anywhere;
}

.mySiteCardTitle:hover,
.mySiteCardTitle:focus {
	color: #ffffff;
	text-decoration: none;
}


/* =========================================================
   SITE CARD DATA
========================================================= */

.siteBlockData.mySiteCardData,
.mySiteCardData {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;

	padding: 0 0.85rem;

	color: #ffffff;
	background: #708090;
}

.mySiteDataItem {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	align-items: center;
	column-gap: 0.48rem;

	min-width: 0;
	min-height: 35px;
	padding: 0.38rem 0;

	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mySiteDataItem:last-child {
	border-bottom: 0;
}

.mySiteDataItem:nth-child(odd),
.mySiteDataItem:nth-child(-n + 2) {
	border-right: 0;
}

.mySiteDataIcon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 20px;
	min-width: 20px;
	height: 20px;
	padding-top: 0.05rem;

	color: rgba(255, 255, 255, 0.94);
	font-size: 0.79rem;
	line-height: 1;
}

.mySiteDataText {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	align-items: center;
	column-gap: 0.45rem;

	min-width: 0;
}

.mySiteDataLabel {
	display: block;
	padding-top: 0.05rem;

	color: rgba(255, 255, 255, 0.72);
	font-size: 0.61rem;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.mySiteDataValue {
	display: block;

	min-width: 0;
	overflow: visible;

	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.24;
	text-overflow: clip;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}

.grapeIcon {
	width: 14px;
	height: 14px;

	object-fit: contain;

	filter:
		grayscale(1)
		brightness(0)
		invert(1);
}


/* =========================================================
   SITE CARD FOOTER
========================================================= */

.mySiteCardFooter {
	flex: 0 0 auto;
	margin-top: auto;

	background: #647483;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mySiteCardLink {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;

	min-height: 32px;
	padding: 0.34rem 0.7rem;

	color: rgba(255, 255, 255, 0.96);
	font-size: 0.71rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	letter-spacing: 0.01em;

	transition:
		color 160ms ease,
		background-color 160ms ease,
		gap 160ms ease;
}

.mySiteCardLink i {
	font-size: 0.58rem;

	transition: transform 160ms ease;
}

.mySiteCardLink:hover,
.mySiteCardLink:focus {
	gap: 0.58rem;

	color: #ffffff;
	background: #2c4c34;
}

.mySiteCardLink:hover i,
.mySiteCardLink:focus i {
	transform: translateX(2px);
}


/* =========================================================
   RESPONSIVE SITE CARDS
========================================================= */

@media (max-width: 1199.98px) {
	.mySiteCardImage {
		height: 145px;
		min-height: 145px;
	}

	.mySiteDataText {
		grid-template-columns: 82px minmax(0, 1fr);
	}
}

@media (max-width: 767.98px) {
	.mySiteCard {
		max-width: 520px;
		margin: 0 auto;
	}

	.mySiteCardImage {
		height: 165px;
		min-height: 165px;
	}

	.mySiteDataText {
		grid-template-columns: 92px minmax(0, 1fr);
	}
}

@media (max-width: 419.98px) {
	.mySiteCardImage {
		height: 155px;
		min-height: 155px;
	}

	.mySiteDataText {
		display: block;
	}

	.mySiteDataLabel {
		margin-bottom: 0.08rem;
	}

	.mySiteCardTitle {
		font-size: 0.92rem;
	}
}

/* =========================================================
   BOTTOM SPACING
========================================================= */

.mySitesBottomSpacing {
	height: 2rem;
}


/* =========================================================
   RESPONSIVE: LARGE TABLETS
========================================================= */

@media (max-width: 1199.98px) {
	.mySitesToolbar {
		align-items: flex-start;
	}

	.mySitesToolbarFilter {
		flex-basis: 310px;

		width: 310px;
		max-width: 310px;
	}

	.mySitesFilterWrapper {
		width: 310px;
		max-width: 310px;
	}
}


/* =========================================================
   RESPONSIVE: TABLET
========================================================= */

@media (max-width: 991.98px) {
	.mySitesPage > .row {
		min-height: auto;
	}

	.mySitesSidebar {
		position: relative;

		min-height: auto;

		background-position: center 60%;
	}

	.mySitesSidebarOverlay {
		min-height: auto;
		padding: 0.75rem 0.9rem;
	}

	.mySitesSidebar::after {
		display: none;
	}

	.mySitesHero {
		min-height: 135px;
	}

	.mySitesHeroContent {
		min-height: 135px;
		padding: 1.35rem 1.5rem;
	}

	.mySitesContent {
		padding: 1.25rem 1.5rem 2.75rem;
	}
}


/* =========================================================
   RESPONSIVE: MOBILE
========================================================= */

@media (max-width: 767.98px) {
	.mySitesHero {
		min-height: 165px;

		background-position: 62% center;
	}

	.mySitesHeroOverlay {
		background:
			linear-gradient(
				90deg,
				rgba(247, 244, 235, 0.96),
				rgba(247, 244, 235, 0.76)
			);
	}

	.mySitesHeroContent {
		align-items: center;

		min-height: 165px;
		padding: 1.4rem 1.1rem;
	}

	.mySitesHeroIcon {
		flex-basis: 44px;

		width: 44px;
		height: 44px;

		font-size: 1.05rem;
	}

	.mySitesHeroText h1 {
		font-size: 1.85rem;
	}

	.mySitesHeroText p {
		font-size: 0.82rem;
	}

	.mySitesContent {
		padding: 1.15rem 1rem 2.5rem;
	}

	.mySitesToolbar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.7rem;
	}

	.mySitesToolbarAction,
	.mySitesToolbarActionCenter {
		justify-content: stretch;
	}

	.mySitesActionButton {
		max-width: none;
	}

	.mySitesToolbarFilter {
		grid-column: 1 / -1;

		width: 100%;
		max-width: none;
		margin-left: 0;
	}

	.mySitesFilterWrapper {
		width: 100%;
		max-width: none;
		padding: 0;
	}

	.mySiteCardImage {
		height: 165px;
		min-height: 165px;
	}

	.mySiteDataItem:nth-child(odd) {
		border-right: 0;
	}

	.mySiteDataItem {
		min-height: auto;

		border-bottom: 1px solid #ece9e1;
	}

	.mySiteDataItem:last-child {
		border-bottom: 0;
	}
}


/* =========================================================
   RESPONSIVE: SMALL MOBILE
========================================================= */

@media (max-width: 479.98px) {
	.mySitesToolbar {
		grid-template-columns: 1fr;
	}

	.mySitesToolbarFilter {
		grid-column: auto;
	}

	.mySitesHeroContent {
		gap: 0.7rem;
	}

	.mySitesHeroText h1 {
		font-size: 1.65rem;
	}

	.mySitesHeroText p {
		display: none;
	}

	.mySiteCardTitle {
		font-size: 0.92rem;
	}
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
	.mySitesPage *,
	.mySitesPage *::before,
	.mySitesPage *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
/* =========================================================
   SITE LIST FILTER
========================================================= */

:host {
	display: block;
	width: auto;
}

.siteListFilter {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.45rem;

	width: auto;
}


/* =========================================================
   FILTER ACTION ICONS
========================================================= */

.siteListFilterActions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.2rem;

	width: 100%;
}

.siteListFilterIconButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 34px;
	height: 34px;
	padding: 0;

	color: #708090;

	background: transparent;
	border: 0;
	border-radius: 7px;
}

.siteListFilterIconButton i {
	font-size: 0.9rem;
}

.siteListFilterIconButton:hover,
.siteListFilterIconButton:focus {
	color: #2c4c34;
	background: rgba(44, 76, 52, 0.08);
}


/* =========================================================
   SORT AND VINEYARD FIELDS
========================================================= */

.siteListFilterFields {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 0.7rem;

	width: auto;
}

.siteListSortField {
	flex: 0 0 215px;

	width: 215px;
	max-width: 215px;
}

.siteListVineyardField {
	flex: 0 0 185px;

	width: 185px;
	max-width: 185px;
}

.siteListSortField .input-group {
	flex-wrap: nowrap;

	width: 100%;
}

.siteListSortField .input-group-text {
	flex: 0 0 auto;

	min-height: 40px;
	padding: 0.35rem 0.65rem;

	color: #60675f;
	font-size: 0.72rem;
	font-weight: 600;
	white-space: nowrap;

	background: #f5f4ef;
	border: 1px solid #d9d6cc;
	border-right: 0;
	border-radius: 7px 0 0 7px;
}

.siteListSortField .form-select,
.siteListVineyardField .form-select {
	min-height: 40px;
	padding: 0.35rem 2rem 0.35rem 0.65rem;

	color: #424942;
	font-size: 0.82rem;

	background-color: #ffffff;
	border: 1px solid #d9d6cc;
	border-radius: 7px;
	box-shadow: 0 3px 8px rgba(45, 54, 46, 0.06);
}

.siteListSortField .form-select {
	min-width: 0;

	border-radius: 0 7px 7px 0;
}

.siteListVineyardField .form-select {
	width: 185px;
	max-width: 185px;
}

.siteListSortField .form-select:hover,
.siteListVineyardField .form-select:hover {
	border-color: #bdc6bc;
}

.siteListSortField .form-select:focus,
.siteListVineyardField .form-select:focus {
	border-color: #708090;
	box-shadow: 0 0 0 0.15rem rgba(112, 128, 144, 0.12);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767.98px) {
	:host,
	.siteListFilter {
		width: 100%;
	}

	.siteListFilterFields {
		width: 100%;
	}

	.siteListSortField,
	.siteListVineyardField {
		flex: 1 1 0;

		width: auto;
		max-width: none;
	}

	.siteListVineyardField .form-select {
		width: 100%;
		max-width: none;
	}
}

@media (max-width: 479.98px) {
	.siteListFilterFields {
		flex-direction: column;
		align-items: stretch;
	}

	.siteListSortField,
	.siteListVineyardField {
		width: 100%;
	}

	.siteListVineyardField .form-select {
		width: 100%;
	}
}
/* =========================================================
   SITE LIST SEARCH / FILTER ACTIONS
========================================================= */

.siteListFilterActions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
}

.siteListSearchField {
	position: relative;
	width: 250px;
}

.siteListSearchIcon {
	position: absolute;
	top: 50%;
	left: 0.85rem;
	z-index: 2;
	color: #767c77;
	font-size: 0.85rem;
	pointer-events: none;
	transform: translateY(-50%);
}

.siteListSearchInput {
	width: 100%;
	height: 40px;
	padding: 0.45rem 2.2rem 0.45rem 2.35rem;
	border: 1px solid #d8d8d2;
	border-radius: 8px;
	background: #ffffff;
	color: #3f443f;
	font-size: 0.9rem;
	box-shadow: none;
}

.siteListSearchInput::placeholder {
	color: #909590;
}

.siteListSearchInput:hover {
	border-color: #b9beb9;
}

.siteListSearchInput:focus {
	border-color: #879b8b;
	box-shadow: 0 0 0 0.2rem rgba(44, 77, 52, 0.12);
	outline: none;
}

.siteListFilterButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;

	height: 40px;
	padding: 0 1rem;

	border: 1px solid #d8d8d2;
	border-radius: 8px;

	background: #ffffff;
	color: #2c4d34;

	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;

	box-shadow: none;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease;
}

.siteListFilterButton i {
	font-size: 0.9rem;
}

.siteListFilterButton:hover,
.siteListFilterButton:focus,
.siteListFilterButton[aria-expanded="true"] {
	background: #f1f4f1;
	border-color: #2c4d34;
	color: #2c4d34;
	box-shadow: 0 4px 12px rgba(44, 77, 52, 0.12);
}

@media (max-width: 575.98px) {
	.siteListFilterActions {
		width: 100%;
	}

	.siteListSearchField {
		flex: 1 1 auto;
		width: autopx;
		min-width: 0;
	}
}

/* ==========================================================
   MAP POPUP CONTAINER
========================================================== */

.maplibregl-popup-content {
	padding: 0 !important;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.maplibregl-popup-tip {
	border-top-color: #ffffff !important;
}
.mySitesMapPopup {
	width: flex;
	margin: 0;
	padding: 0;
	background: #fff;
}

.mySitesMapPopupHeader {
	padding: 0.9rem 1rem 0.65rem;
	border-bottom: 1px solid #ece8df;
	background: #faf9f5;
}

.mySitesMapPopupHeader h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #2c4c34;
	text-align: center;
}

.mySitesMapPopupBody {
	padding: 0.9rem 1rem;
}

.mySitesMapPopupField {
	padding: .45rem 0;
	border-bottom: 1px solid rgba(0,0,0,.06);
}

.mySitesMapPopupField:last-child {
	border-bottom: none;
}

.popupLabel {
	margin-bottom: .15rem;

	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;

	color: #8a8a8a;
}

.popupValue {
	font-size: .88rem;
	font-weight: 500;
	line-height: 1.4;

	color: #2f2f2f;

	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
}

.popupLabel {
	text-align: left;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8a8a8a;
	white-space: nowrap;
}

.popupValue {
	text-align: left;
	font-size: .84rem;
	font-weight: 500;
	color: #2f2f2f;

	/* Allow long names to wrap instead of overlapping */
	overflow-wrap: anywhere;
	word-break: break-word;
	min-width: 0;
}

.mySitesMapPopupAction {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .45rem;

	padding: .75rem;

	border-top: 1px solid #ece8df;

	font-weight: 600;

	color: #7a2c37;
	background: #faf9f5;

	transition: all .2s ease;
}

.mySitesMapPopupAction:hover {
	background: #f3efe7;
}