/**
 * ShavyStays Universal Editorial Inner-Page Masthead Stylesheet — Batch 7G Final Page 23032 Spacing Correction
 * Brand Tokens:
 * - Shavy Pink: #E00C5D
 * - Warm Cream: #F8F4F0
 * - Charcoal: #24222C
 * - Muted text: #6F6C7A
 * - White: #FFFFFF
 * - Soft border: rgba(224, 12, 93, 0.14)
 */

/* Hide parent theme default breadcrumbs globally */
.custom-breadcrumb.breadcrumb-default,
.breadcrumb-main,
.boliin-breadcrumb,
.boliin-page-breacrumb {
	display: none !important;
}

/* Hide empty Elementor post breadcrumb widgets on masthead-enabled pages */
body.ss-has-inner-masthead .elementor-widget-gva_post_breadcrumb {
	display: none !important;
}

/* Suppress duplicate legacy breadcrumb widgets (e.g. Elementor .custom-breadcrumb) on masthead-enabled pages */
.ss-has-inner-masthead .custom-breadcrumb,
.ss-has-inner-masthead .gva-breadcrumb-content,
.ss-has-inner-masthead .babe-header-breadcrumb {
  display: none !important;
}

.ss-inner-masthead {
	width: 100%;
	background-color: #F8F4F0;
	border-bottom: 1px solid rgba(224, 12, 93, 0.14);
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.ss-masthead-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 190px;
	position: relative;
	z-index: 2;
}

.ss-masthead-content {
	flex: 0 0 58%;
	max-width: 58%;
	padding: 42px 0 28px 0; /* Eyebrow has ~26px top breathing room below header */
	position: relative;
	z-index: 2;
}

.ss-masthead-eyebrow {
	display: inline-block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #E00C5D;
	margin-bottom: 6px;
}

.ss-masthead-title,
.ss-inner-masthead-title.h1-style {
  font-family: var(--ss-font-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ss-warm-charcoal, #2d272a);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  display: block;
}

.ss-masthead-breadcrumb {
	margin-top: 6px;
}

.ss-breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: #6F6C7A;
}

.ss-breadcrumb-item {
	display: inline-flex;
	align-items: center;
}

.ss-breadcrumb-item a {
	color: #6F6C7A;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ss-breadcrumb-item a:hover {
	color: #E00C5D;
}

.ss-breadcrumb-sep {
	margin: 0 8px;
	color: rgba(111, 108, 122, 0.4);
	font-size: 11px;
}

.ss-breadcrumb-current {
	color: #24222C;
	font-weight: 500;
}

.ss-masthead-accent {
	width: 42px;
	height: 2px;
	background-color: #E00C5D;
	margin-top: 14px;
	border-radius: 1px;
}

/* Full-Bleed Right-Side Media Panel (Extends continuously from split point to far-right edge of browser viewport) */
.ss-masthead-media {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: calc(50% + 100px);
	height: 100%;
	overflow: hidden;
	z-index: 1;
}

.ss-masthead-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.ss-masthead-media-overlay {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 35%;
	background: linear-gradient(to right, #F8F4F0 0%, rgba(248, 244, 240, 0) 100%);
	pointer-events: none;
}

.ss-masthead-pattern {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	pointer-events: none;
}

/* Minimal / Policy Mode */
.ss-masthead--policy .ss-masthead-content {
	flex: 0 0 100%;
	max-width: 100%;
}

.ss-masthead--policy .ss-masthead-media {
	left: auto;
	width: 240px;
}

/* Standard Masthead Content Spacing Reset & Gap Enforcement (Target gap: 48px Desktop) */
body.ss-has-inner-masthead #wp-main-content .single-content-inner,
body.ss-has-inner-masthead #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:first-child:not(:has(.elementor-widget-gva_post_breadcrumb)),
body.ss-has-inner-masthead #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:nth-child(2),
body.ss-has-inner-masthead .template-posts-archive {
	padding-top: 48px !important;
	margin-top: 0 !important;
}

/* Destination Archives Breathing Room (Gap: 26px Desktop) — LOCKED & UNCHANGED FOR TAXONOMY ARCHIVES */
body.ss-context-destination:not(.page-id-23032) #wp-main-content .single-content-inner,
body.ss-context-destination:not(.page-id-23032) #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:first-child,
body.ss-context-destination:not(.page-id-23032) .template-posts-archive,
body.tax-ba_location #wp-main-content {
	padding-top: 26px !important;
}

/* ==========================================================================
   Batch 7G — Page ID 23032 Blank Space Elimination
   Hide obsolete Elementor Section #1 (a7b112c with 220px padding) & reset Section #2 top padding
   ========================================================================== */
body.page-id-23032 #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:first-child {
	display: none !important;
}

body.page-id-23032 #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:nth-child(2),
body.page-id-23032 #wp-main-content .single-content-inner {
	padding-top: 16px !important;
	margin-top: 0 !important;
}

@media (max-width: 991px) {
	body.page-id-23032 #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:nth-child(2),
	body.page-id-23032 #wp-main-content .single-content-inner {
		padding-top: 14px !important;
	}
}

@media (max-width: 767px) {
	body.page-id-23032 #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:nth-child(2),
	body.page-id-23032 #wp-main-content .single-content-inner {
		padding-top: 12px !important;
	}
}

/* ==========================================================================
   Batch 7F — Villa List Results Toolbar Alignment & Spacing
   Scope: Destination Archives (Koh Samui, Lonavala) & Page ID 23032 (/villa-list-view/)
   ========================================================================== */

/* 1. Results Toolbar Top Gap (Desktop: 16px, Tablet: 14px, Mobile: 12px) */
body.tax-ba_location .shavystays-results-header,
body.ss-context-destination .shavystays-results-header,
body.page-id-23032 .shavystays-results-header {
	margin-top: 16px !important;
	margin-bottom: 24px !important;
	padding-bottom: 16px !important;
	border-bottom: 1px solid rgba(224, 12, 93, 0.14) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
	box-sizing: border-box !important;
}

/* 2. Results Count Left-Aligned */
body.tax-ba_location .shavystays-result-count,
body.ss-context-destination .shavystays-result-count,
body.page-id-23032 .shavystays-result-count,
body.page-id-23032 .results-count {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: #24222C !important;
	margin: 0 !important;
	line-height: 1.4 !important;
}

body.tax-ba_location .shavystays-result-count .count,
body.ss-context-destination .shavystays-result-count .count,
body.page-id-23032 .shavystays-result-count .count {
	color: #E00C5D !important;
	font-weight: 700 !important;
}

/* 3. Right-Aligned Header Controls Flex Wrapper */
body.tax-ba_location .shavystays-header-controls,
body.ss-context-destination .shavystays-header-controls,
body.page-id-23032 .shavystays-header-controls {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	margin: 0 !important;
}

/* 4. Sort Dropdown (Height: 56px, Gap to first view button: 12px) */
body.tax-ba_location .shavystays-sort-select,
body.ss-context-destination .shavystays-sort-select,
body.page-id-23032 .shavystays-sort-select {
	height: 56px !important;
	line-height: 54px !important;
	padding: 0 36px 0 16px !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #24222C !important;
	background-color: #FFFFFF !important;
	border: 1px solid rgba(224, 12, 93, 0.2) !important;
	border-radius: 6px !important;
	box-sizing: border-box !important;
	cursor: pointer !important;
	margin: 0 !important;
	outline: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2324222C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
}

body.tax-ba_location .shavystays-sort-select:focus,
body.ss-context-destination .shavystays-sort-select:focus,
body.page-id-23032 .shavystays-sort-select:focus {
	border-color: #E00C5D !important;
	box-shadow: 0 0 0 3px rgba(224, 12, 93, 0.1) !important;
}

/* 5. View Toggle Buttons Container (Gap between grid & list buttons: 8px) */
body.tax-ba_location .shavystays-view-toggle,
body.ss-context-destination .shavystays-view-toggle,
body.page-id-23032 .shavystays-view-toggle {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
}

/* 6. Grid & List View Buttons (Height: 56px, Width: 56px) */
body.tax-ba_location .shavystays-view-toggle button,
body.ss-context-destination .shavystays-view-toggle button,
body.page-id-23032 .shavystays-view-toggle button,
body.tax-ba_location .btn-view-grid,
body.tax-ba_location .btn-view-list,
body.page-id-23032 .btn-view-grid,
body.page-id-23032 .btn-view-list {
	width: 56px !important;
	min-width: 56px !important;
	height: 56px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: #FFFFFF !important;
	border: 1px solid rgba(224, 12, 93, 0.2) !important;
	border-radius: 6px !important;
	color: #6F6C7A !important;
	font-size: 16px !important;
	cursor: pointer !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	transition: all 0.2s ease !important;
}

body.tax-ba_location .shavystays-view-toggle button.active,
body.ss-context-destination .shavystays-view-toggle button.active,
body.page-id-23032 .shavystays-view-toggle button.active,
body.tax-ba_location .btn-view-grid.active,
body.tax-ba_location .btn-view-list.active,
body.page-id-23032 .btn-view-grid.active,
body.page-id-23032 .btn-view-list.active {
	background-color: #E00C5D !important;
	color: #FFFFFF !important;
	border-color: #E00C5D !important;
}

body.tax-ba_location .shavystays-view-toggle button:hover:not(.active),
body.ss-context-destination .shavystays-view-toggle button:hover:not(.active),
body.page-id-23032 .shavystays-view-toggle button:hover:not(.active) {
	border-color: #E00C5D !important;
	color: #E00C5D !important;
}

/* Tablet Responsive (< 992px) */
@media (max-width: 991px) {
	.ss-masthead-container {
		min-height: 160px;
		padding: 0 20px;
	}
	
	.ss-masthead-content {
		flex: 0 0 65%;
		max-width: 65%;
		padding: 32px 0 20px 0;
	}
	
	.ss-masthead-title {
		font-size: clamp(24px, 3.8vw, 34px);
	}
	
	.ss-masthead-media {
		left: calc(50% + 80px);
	}
	
	body.ss-has-inner-masthead #wp-main-content .single-content-inner,
	body.ss-has-inner-masthead #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:first-child:not(:has(.elementor-widget-gva_post_breadcrumb)),
	body.ss-has-inner-masthead #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:nth-child(2),
	body.ss-has-inner-masthead .template-posts-archive {
		padding-top: 38px !important;
	}
	
	body.ss-context-destination:not(.page-id-23032) #wp-main-content .single-content-inner,
	body.ss-context-destination:not(.page-id-23032) #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:first-child,
	body.tax-ba_location #wp-main-content {
		padding-top: 20px !important;
	}

	body.tax-ba_location .shavystays-results-header,
	body.ss-context-destination .shavystays-results-header,
	body.page-id-23032 .shavystays-results-header {
		margin-top: 14px !important;
	}
}

/* Mobile Responsive (< 768px) */
@media (max-width: 767px) {
	.ss-masthead-container {
		min-height: 135px;
		padding: 0 16px;
	}
	
	.ss-masthead-content {
		flex: 0 0 100%;
		max-width: 100%;
		padding: 24px 0 18px 0;
	}
	
	.ss-masthead-eyebrow {
		font-size: 10px;
		letter-spacing: 1.5px;
	}
	
	.ss-masthead-title {
		font-size: clamp(22px, 5.5vw, 28px);
		margin-bottom: 6px;
	}
	
	.ss-masthead-breadcrumb {
		font-size: 12px;
	}
	
	.ss-masthead-media {
		left: auto;
		width: 40%;
		opacity: 0.35;
	}
	
	.ss-masthead-media-overlay {
		width: 100%;
		background: linear-gradient(to right, #F8F4F0 10%, rgba(248, 244, 240, 0.4) 100%);
	}
	
	body.ss-has-inner-masthead #wp-main-content .single-content-inner,
	body.ss-has-inner-masthead #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:first-child:not(:has(.elementor-widget-gva_post_breadcrumb)),
	body.ss-has-inner-masthead #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:nth-child(2),
	body.ss-has-inner-masthead .template-posts-archive {
		padding-top: 30px !important;
	}
	
	body.ss-context-destination:not(.page-id-23032) #wp-main-content .single-content-inner,
	body.ss-context-destination:not(.page-id-23032) #wp-main-content .elementor[data-elementor-type="wp-page"] > .elementor-section:first-child,
	body.tax-ba_location #wp-main-content {
		padding-top: 16px !important;
	}

	body.tax-ba_location .shavystays-results-header,
	body.ss-context-destination .shavystays-results-header,
	body.page-id-23032 .shavystays-results-header {
		margin-top: 12px !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 10px !important;
	}
	
	body.tax-ba_location .shavystays-header-controls,
	body.ss-context-destination .shavystays-header-controls,
	body.page-id-23032 .shavystays-header-controls {
		width: 100% !important;
		justify-content: space-between !important;
	}
	
	body.tax-ba_location .shavystays-sort-select,
	body.ss-context-destination .shavystays-sort-select,
	body.page-id-23032 .shavystays-sort-select {
		flex-grow: 1 !important;
	}
}
