/* -----------------------------------------------------------
GLOBAL
----------------------------------------------------------- */
.stbarth-container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 20px 20px 0;
}

.stbarth-title {
	font-size: 1.5rem;
	font-weight: 600;
	text-align: left;
	margin: 0;
	color: #1a1a1a;
}

/* -----------------------------------------------------------
HERO
----------------------------------------------------------- */
.stbarth-hero {
	width: 100%;
	height: 380px;
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.stbarth-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.25);
}

.stbarth-hero-title {
	position: relative;
	z-index: 2;
	color: #fff;
	font-size: 48px;
	font-weight: 600;
	margin-bottom: 40px;
	text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* -----------------------------------------------------------
BREADCRUMB
----------------------------------------------------------- */
.stbarth-breadcrumb {
	font-size: 14px;
	margin-bottom: 0;
	color: #777;
}

.stbarth-breadcrumb a {
	color: #444;
	text-decoration: none;
	margin-right: 5px;
}

.stbarth-breadcrumb span {
	color: #000;
	font-weight: 500;
}

/* -----------------------------------------------------------
DESCRIPTION
----------------------------------------------------------- */
.stbarth-desc p {
	line-height: 1.7;
	margin-bottom: 1rem;
}
/* Two Column Layout */
.stbarth-two-col {
	display: grid;
	grid-template-columns: 70% 30%;
	grid-gap: 40px;
	margin-bottom: 25px;
}

.stbarth-left,
.stbarth-right {
	display: flex;
	flex-direction: column;
	gap: 35px;
}

.stbarth-section {
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 0 5px rgba(0,0,0,0.06);
}

.stbarth-right .stbarth-section {
	position: sticky;
	top: 120px; /* keeps booking/calendar fixed while scrolling */
}


/* -----------------------------------------------------------
AMENITIES
----------------------------------------------------------- */
.stbarth-amenities {
	list-style: none;
	padding: 0;
	columns: 2;
	column-gap: 20px;
	margin: 0;
}

.stbarth-amenities li {
	margin-bottom: 8px;
	padding-left: 15px;
	position: relative;
}

.stbarth-amenities li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #c2975b;
	font-size: 18px;
}

/* -----------------------------------------------------------
ACCORDION
----------------------------------------------------------- */
.stbarth-accordion {
	border-top: 1px solid #eee;
}

.stbarth-accordion-item {
	border-bottom: 1px solid #eee;
}

.stbarth-accordion-header {
	width: 100%;
	background: #fff;
	padding: 18px 10px;
	text-align: left;
	font-size: 20px;
	border: none;
	outline: none;
	cursor: pointer;
	position: relative;
}

.stbarth-accordion-header .acc-icon {
	position: absolute;
	right: 10px;
	top: 18px;
	font-size: 24px;
	transition: 0.3s;
}

.stbarth-accordion-header.active .acc-icon {
	transform: rotate(45deg);
}

.stbarth-accordion-content {
	display: none;
	padding: 15px 0 25px;
}

/* -----------------------------------------------------------
GALLERY
----------------------------------------------------------- */
.stbarth-gallery {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.stbarth-gallery img {
	width: 100%;
	border-radius: 6px;
	cursor: pointer;
	transition: 0.3s;
}

.stbarth-gallery img:hover {
	opacity: 0.85;
}

/* -----------------------------------------------------------
RATES TABLE
----------------------------------------------------------- */
.stbarth-rates {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.stbarth-rates th,
.stbarth-rates td {
	padding: 6px;
	border-bottom: 1px solid #eee;
	text-align: left;
	font-size: 14px;
}

.stbarth-rates th {
	background: #fafafa;
	font-weight: 600;
}

/* -----------------------------------------------------------
BOOKING FORM
----------------------------------------------------------- */
.stbarth-form {
	max-width: 480px;
}
.stbarth-form .stbarth-btn {
	width: 100%;
}
.stbarth-form .Custom-date {
	display: grid;
	grid-template-columns: 50% 50%;
	gap: 3px;
}
.stbarth-form label {
	font-weight: 500;
	margin-top: 15px;
	display: block;
}

.stbarth-form input,
.stbarth-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	margin-top: 5px;
	border-radius: 4px;
}

.stbarth-btn {
	background: #fbd703;
	border: none;
	color: #fff;
	padding: 12px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	transition: 0.3s;
}

.stbarth-btn:hover {
	opacity: 0.85;
}

/* Outline version */
.stbarth-btn-outline {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid #99adb6;
	color: #99adb6;
	border-radius: 4px;
	background: none;
	text-decoration: none;
	transition: 0.3s;
	cursor: pointer;
}

.stbarth-btn-outline:hover {
	background: #99adb6;
	color: #fff;
}

/* -----------------------------------------------------------
LISTING GRID
----------------------------------------------------------- */
.stbarth-listing-results {
	padding: 1.4rem 1.5rem 1.5rem;
}

.stbarth-listing-summary {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1.4rem;
	font-size: 13px;
	color: #666;
}

.stbarth-list,
.stbarth-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px;
	position: relative;
	font-family: Open Sans;

}

/* CARD WRAPPER */
.stbarth-card-new {
	display: block;
	background: #fff;
	text-decoration: none;
	transition: 0.2s ease;
	border-radius: 8px;
}


/* IMAGE */
.stbarth-card-img-new img {
	width: 100%;
	height: 250px !important;
	width: 100%;
	display: block;
	border-top-left-radius: 8px !important;
	border-top-right-radius: 8px !important;
}

/* BODY */
.stbarth-card-body-new {
	padding: 14px 14px;
}


/* ICON ROW */
.stbarth-icons-row {
	display:flex;
	gap: 5px;
	font-size: 0.85rem;
	color: #666;
	margin: 10px 0;
	color: #AAAAAA;
	font-weight: normal;
}


/* DIVIDER */
.stbarth-divider {
	border: none;
	height: 1px;
	background: #eee;
	margin: 8px 0;
}

/* PRICE */
.stbarth-price {
	font-family: "Open Sans", Sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #000000; 
}

.stbarth-card {
	display: block;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	color: #000;
	transition: 0.3s;
}

.stbarth-card:hover {
	transform: translateY(-3px);
}

.stbarth-card-img {
	width: 100%;
	height: 220px;
	background-size: cover;
	background-position: center;
	box-shadow: -3px 3px 14px rgba(0, 0, 0, .1);
	border-radius: 10px;
	overflow: hidden;
	z-index: 2;
}

.stbarth-card-title {
	font-family: 'Open Sans';
	font-size: 16px;
	padding: 5px 0 ;
	font-weight: 600;
	color: #000;
	border-bottom: 1px solid #AAAAAA;
}

.stbarth-card-body p {
	margin: 2px 0;
	color: #666;
}

.stbarth-card-img-new {
	position: relative;
	overflow: hidden;
	height: 220px;
}

.slider-track {
	display: flex;
	height: auto;
	transition: transform 0.4s ease;
}

.slider-track img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	flex-shrink: 0;
}

/* Buttons */
.slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: white;
	color: black;
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 50px;
	cursor: pointer;
	z-index: 2;
	display: none;
}

.slider-btn div {
	margin: -17px 0 0 0;
}

.stbarth-card-new:hover .slider-btn {
	display: block;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* Bounce effect */
.slider-track.bounce-left {
	transform: translateX(-20px);
}

.slider-track.bounce-right {
	transform: translateX(20px);
}


.favorite-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,0.9);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: all 0.25s ease;
}

.favorite-btn i {
	font-size: 18px;
	color: #444;
	transition: all 0.25s ease;
}

/* Hover */
.favorite-btn:hover {
	background: #fff;
	transform: scale(1.05);
}

/* Active (Favorited) */
.favorite-btn.active i {
	color: #e63946;
	font-weight: 900;
}

/* Optional subtle shadow */
.favorite-btn {
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive control */
@media (max-width: 1600px) {
	.stbarth-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1200px) {
	.stbarth-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.date-input-box {
        flex:none;
    }
}

@media (max-width: 800px) {
	.stbarth-grid {
		grid-template-columns: 1fr;
	}
	.date-input-box {
        flex: none;
    }
}

@media (max-width: 768px) {
    .stbarth-list{
    	grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .stbarth-card-img-new {
        height: auto;
    }
    .stbarth-card-img-new img {
        height: auto !important;
    }
}


/* -----------------------------------------------------------
FILTERS
----------------------------------------------------------- */
.stbarth-filter-form {
	border-top: 1px solid #ccd6db;
	border-bottom: 1px solid #ccd6db;
}
.stbarth-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 25px;
	z-index: 105;
	position: sticky;
	background-color: #fff;
	width: 100%;
	padding: 1rem 1.5rem 0;
	top: 0;
}

.stbarth-filters .stb-heading {
	color: #000;
	margin: 0 0 1rem;
}

.stbarth-filters label {
	margin: 0;
	font-size: .9rem;
	line-height: 1.25rem;
	color: var(--name);
	font-weight: 700;
}

.stbarth-filters input,
.stbarth-filters select {
	border: 1px solid #ddd;
	max-width: 100%;
	height: 41px;
	padding: 9px 15px;
	margin: 0;
	background: transparent;
	background-color: var(--field-bg);
	color: var(--color);
	border: 0;
	border-radius: 10px;
	box-shadow: none;
}

.stbarth-filter-form-footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 0 1.5rem 1.5rem;
}
/* -----------------------------------------------------------
PAGINATION
----------------------------------------------------------- */
.stbarth-pagination {
	display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}
.pagination-number, .pagination-arrow {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
	font-weight:bold;
}

.pagination-number:hover, .pagination-arrow:hover {
    background-color: #f8f9fa;
    border-color: #000;
}

.pagination-number.active {
    background-color: #000; /* Black background for active page */
    color: #fff;            /* White text */
    border-color: #000;
    pointer-events: none;   /* Disable clicking on the current page */
}
.stb-calendar {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 30px;
}

.stb-month h3 {
	text-align: center;
	margin-bottom: 10px;
}

.stb-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.day {
	padding: 6px;
	border-radius: 4px;
	text-align: center;
	font-size: 14px;
}

.day.available {
	background: #f7f7f7;
}

.day.booked {
	background: #ffdddd;
	color: #a00;
	font-weight: 600;
}

.empty {
	background: none;
}
.stb-accordion-item {
	border-bottom: 1px solid #eee;
	padding: 10px 0;
}

.stb-accordion-header {
	width: 100%;
	background: none;
	border: none;
	padding: 12px 0;
	font-size: 18px;
	display: flex;
	justify-content: space-between;
	cursor: pointer;
}

.stb-accordion-body {
	display: none;
	padding: 10px 0 20px;
}

.stb-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.stb-gallery-grid img {
	width: 100%;
	border-radius: 6px;
}

.stb-cal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.stb-cal-header button {
	background: #f3f3f3;
	border: 1px solid #ffd700;
	padding: 5px 10px;
	border-radius: 4px;
	cursor: pointer;
	background: linear-gradient(90deg, hsla(0, 0%, 100%, 0), #ffd700);
	background-color: #ffd700;
}

.stb-cal-title {
	font-weight: 600;
	font-size: 16px;
}

.stb-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.dayname {
	text-align: center;
	font-size: 12px;
	color: #888;
}

.day {
	padding: 8px;
	border-radius: 4px;
	text-align: center;
	font-size: 14px;
}

.day.available {
	background: #f7f7f7;
}

.day.booked {
	background: #ffe1e1;
	color: #b00;
	font-weight: 600;
}

.empty {
	background: transparent;
}

.stbarth-single h2 {
	font-size: 1.5rem;
}
.card-block {
	background-color: #fff;
	padding: 1.35rem;
	border-radius: 6px;
	border: 1px solid #ddd;
}
/* Slider container */
.stb-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	margin: 20px 0;
}

/* Track */
.stb-slide-track {
	display: flex;
	gap: 12px;
	transition: transform 0.3s ease-in-out;
}

/* Slide item */
.stb-slide {
	min-width: 280px;
	height: 180px;
	flex-shrink: 0;
}

.stb-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
	cursor: pointer;
}

/* Prev/Next Arrows */
.stb-slide-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.4);
	border: none;
	padding: 10px 14px;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	z-index: 5;
	font-size: 22px;
	transition: 0.25s;
}

.stb-slide-btn:hover {
	background: rgba(0,0,0,0.6);
}

.stb-prev { left: 10px; }
.stb-next { right: 10px; }
.stb-calendar {
	margin-bottom: 30px;
	border: 1px solid #ddd;
	padding: 15px;
	border-radius: 8px;
	background: #fff;
}

.stb-calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.stb-calendar-header h3 {
	margin: 0;
}

.stb-calendar-header button {
	background: #eee;
	border: none;
	padding: 5px 12px;
	border-radius: 4px;
	cursor: pointer;
}

.stb-calendar-table {
	width: 100%;
	border-collapse: collapse;
}

.stb-calendar-table th {
	padding: 8px;
	background: #f7f7f7;
	border-bottom: 1px solid #ddd;
}

.stb-calendar-table td {
	text-align: center;
	padding: 8px;
	border-bottom: 1px solid #eee;
	border-right: 1px solid #eee;
}

.stb-calendar-table td:last-child {
	border-right: none;
}

/* Booked dates */
.stb-booked {
	background: #ffdddd;
	color: #a00;
	text-decoration: line-through;
	opacity: 0.6;
	pointer-events: none;
}

/* Available */
.stb-available {
	background: #fff;
}

/* Today */
.stb-today {
	border: 2px solid #0073aa;
	font-weight: bold;
}
/* Loader wrapper */
#stbarth-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999999;
}

/* Spinner */
.stbarth-spinner {
	width: 45px;
	height: 45px;
	border: 4px solid #ccc;
	border-top-color: #111;
	border-radius: 50%;
	animation: stbarth-spin 0.9s linear infinite;
}

@keyframes stbarth-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Fade while loading */
.stbarth-loading {
	opacity: 0.3;
	pointer-events: none;
}
.stbarth-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* 2 column layout */
.stbarth-map-layout {
	display: grid;
	grid-template-columns: 55% 45%;
	gap: 20px;
/* 	margin-bottom: 40px; */
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .stbarth-map-layout {
        display: flex;
        flex-direction: column;
        clear: both;
    }
    #stbarth-map {
        display: none;
    }
}

/* Left side scroll */
.stbarth-list-side {
	height: calc(100vh - 120px);
	overflow-y: auto;
	position: relative;
	background: #f5f7f9;
}

/* Right side map */
#stbarth-map {
	height: calc(100vh - 120px);
	width: 100%;
	background: #f0f0f0;
}

/* Highlight villa card on map hover */
.stbarth-card-new.highlight {
	border: 2px solid #2bb1ff;
	background: #e8f6ff;
	transform: scale(1.02);
}

/* Highlight pin on card hover */
.mapboxgl-marker.highlight {
	transform: scale(1.5);
	z-index: 10;
}

.stbarth-map-popup {
	width: 180px;
	font-family: inherit;
}

.popup-img {
	width: 100%;
	border-radius: 5px;
	margin-bottom: 6px;
}

.popup-btn {
	display: inline-block;
	padding: 6px 10px;
	background: #000;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	margin-top: 6px;
	font-size: 12px;
}



/* -----------------------------------------------------------
VACASA FILTERS
----------------------------------------------------------- */

.search-bar {
	display: flex;
	background: #fff;
	flex-wrap: wrap;
	border: 1px solid #ddd;
}

.search-item {
	position: relative;
}

.search-item button {
	padding: 1rem 1.5rem 1rem;
	background: #fff;
	border: 1px solid #ddd;
	border-bottom: none;
	cursor: pointer;
	white-space: nowrap;
	color: #000;
}

.search-item button:hover {
	border-color: #0073e6;
}

.search-item .done-button {
	padding: 6px 15px;
	background: black;
	border: 1px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	color: white;
	margin: 10px 0;
	width: fit-content;
}

.dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	padding: 15px;
	width: 220px;
	z-index: 1001;
	border: 1px solid #ddd;
	overflow-y: auto;
	max-height: 800px;
}

.dropdown:hover .dropdown-menu {
	display: block;
}

.dropdown-menu input {
	width: 100%;
	padding: 8px;
	margin-bottom: 8px;
}

.dropdown-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dropdown-menu li {
	padding: 6px 0;
	cursor: pointer;
}

.dropdown-menu li:hover {
	color: #0073e6;
}

.dropdown-menu.wide {
	width: 350px;
}

.filter-group {
	margin-bottom: 20px;
}

.filter-group h4 {
	font-weight: 600;
	margin: 0 0 15px 0;
	color: #333;
	font-size: 15px;
	font-family: arial;
}

.filter-group-row {
	display: flex;
	align-items: baseline;
	margin-bottom: 10px;
}

.filter-group-row label {
	flex: 1;
}

.filter-group-row > div {
	display: flex;
	align-items: center;
	flex: 1;
}

.filter-group-row input {
	margin-bottom: 0;
}

.filter-group-row input[type=number] {
	margin-right: 0;
}

.filter-group-checkbox-options div {
	display: inline-flex;
	width: 49%;
}

.filter-group-checkbox-options input {
	width: auto;
	margin-bottom: 0;
}

.filter-group-checkbox-options label {
	margin-left: 5px;
}

.range-separator {
	margin: 0 5px;
}

.search-item .fa-caret-down {
	color: #000;
	margin-left: 5px;
}

.search-item .far, .search-item .fa, .search-item .fa-users, .search-item .fa-filter {
	color: #000;
	margin-right: 5px;
	font-size: 18px;
}

@media (max-width: 1199px) {
    .dropdown-menu {
        left: auto;
        right: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .search-bar {
        display: block;
        border: none;
    }
    .search-item {
        width: 100%;
        padding-left: 1.5rem;
        border: 1px solid #e2e8f0;
        border-top: 0;
    }
    .search-item:nth-child(3), .search-item:nth-child(4) {
        width: 50%;
        float: left;
        border-right: none;
    }
    .search-item button {
        padding: 1rem 0;   
    }
	.dropdown-menu {
		width: 100%;
		box-shadow: none;
	}

	.dropdown:hover .dropdown-menu {
		display: block;
	}
	.search-item .date-input-box {
        flex: 1;
        padding: 10px 1.5rem;
    }
    .search-item .date-input-box:nth-child(1) {
        padding-left: 0;
    }
}