/* VentureBnb Properties — public styles
   Colors: gold #C9A22A | dark #1C1C1C | white #fff | light bg #F9F9F7 */

/* ─── Custom properties ───────────────────────────────────────────────────── */
:root {
	--vbnb-gold:        #C9A22A;
	--vbnb-gold-hover:  #b08c1e;
	--vbnb-dark:        #1C1C1C;
	--vbnb-text:        #333333;
	--vbnb-text-muted:  #666666;
	--vbnb-bg:          #F9F9F7;
	--vbnb-white:       #ffffff;
	--vbnb-border:      #E3E3DF;
	--vbnb-radius:      8px;
	--vbnb-shadow:      0 2px 12px rgb(0 0 0 / 0.08);
	--vbnb-shadow-lg:   0 8px 32px rgb(0 0 0 / 0.14);
}

/* ─── Utilities ───────────────────────────────────────────────────────────── */
.vbnb-container {
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.vbnb-btn {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border-radius: var(--vbnb-radius);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	line-height: 1.2;
	text-align: center;
	border: 2px solid transparent;
}

.vbnb-btn--primary {
	background-color: var(--vbnb-gold);
	color: var(--vbnb-dark);
	border-color: var(--vbnb-gold);
}

.vbnb-btn--primary:hover,
.vbnb-btn--primary:focus-visible {
	background-color: var(--vbnb-gold-hover);
	border-color: var(--vbnb-gold-hover);
	color: var(--vbnb-dark);
}

.vbnb-btn--outline {
	background-color: transparent;
	color: var(--vbnb-dark);
	border-color: var(--vbnb-border);
}

.vbnb-btn--outline:hover,
.vbnb-btn--outline:focus-visible {
	border-color: var(--vbnb-gold);
	color: var(--vbnb-gold);
}

.vbnb-btn--full {
	display: block;
	width: 100%;
}

.vbnb-btn:focus-visible {
	outline: 2px solid var(--vbnb-gold);
	outline-offset: 2px;
}

/* ─── Stat icons (Unicode-based, no external deps) ────────────────────────── */
.vbnb-stat-icon {
	display: inline-block;
	font-style: normal;
}

.vbnb-stat-icon--bed::before    { content: "🛏"; font-size: 1em; }
.vbnb-stat-icon--bath::before   { content: "🚿"; font-size: 1em; }
.vbnb-stat-icon--guests::before { content: "👥"; font-size: 1em; }

/* ─── Tags ────────────────────────────────────────────────────────────────── */
.vbnb-tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 100px;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.vbnb-tag--neighborhood {
	background-color: var(--vbnb-gold);
	color: var(--vbnb-dark);
}

.vbnb-tag--type {
	background-color: var(--vbnb-bg);
	color: var(--vbnb-text-muted);
	border: 1px solid var(--vbnb-border);
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/* ARCHIVE                                                                     */
/* ═══════════════════════════════════════════════════════════════════════════ */

.vbnb-archive {
	background-color: var(--vbnb-bg);
	min-height: 60vh;
}

/* ─── Hero band ──────────────────────────────────────────────────────────── */
.vbnb-archive__hero {
	background-color: var(--vbnb-dark);
	color: var(--vbnb-white);
	padding: 4rem 0 3rem;
	text-align: center;
}

.vbnb-archive__title {
	font-size: clamp(2rem, 4vw + 1rem, 3rem);
	font-weight: 700;
	margin: 0 0 0.75rem;
	line-height: 1.15;
}

.vbnb-archive__subtitle {
	color: rgb(255 255 255 / 0.7);
	font-size: 1.05rem;
	margin: 0;
	max-width: 600px;
	margin-inline: auto;
}

/* ─── Filter bar ─────────────────────────────────────────────────────────── */
.vbnb-archive__filters {
	background-color: var(--vbnb-white);
	border-bottom: 1px solid var(--vbnb-border);
	padding: 0.75rem 0;
}

.vbnb-filter-row {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.65rem 0;
}

.vbnb-filter-row + .vbnb-filter-row {
	border-top: 1px solid var(--vbnb-border);
}

.vbnb-filter-row__label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--vbnb-text-muted);
	white-space: nowrap;
	padding-top: 0.45rem;
	min-width: 90px;
}

@media (max-width: 480px) {
	.vbnb-filter-row {
		flex-direction: column;
		gap: 0.4rem;
	}
	.vbnb-filter-row__label {
		padding-top: 0;
	}
}

.vbnb-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.vbnb-filter-bar__item {
	padding: 0.4rem 1rem;
	border-radius: 100px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--vbnb-text-muted);
	text-decoration: none;
	background-color: transparent;
	border: 1px solid var(--vbnb-border);
	transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.vbnb-filter-bar__item:hover,
.vbnb-filter-bar__item:focus-visible {
	color: var(--vbnb-dark);
	border-color: var(--vbnb-gold);
}

.vbnb-filter-bar__item--active {
	background-color: var(--vbnb-gold);
	border-color: var(--vbnb-gold);
	color: var(--vbnb-dark);
}

/* ─── Property grid ──────────────────────────────────────────────────────── */
.vbnb-archive__listings {
	padding: 3rem 0 4rem;
}

.vbnb-property-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
}

@media (min-width: 640px) {
	.vbnb-property-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.vbnb-property-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Property card ──────────────────────────────────────────────────────── */
.vbnb-property-card {
	background-color: var(--vbnb-white);
	border-radius: var(--vbnb-radius);
	box-shadow: var(--vbnb-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease;
}

.vbnb-property-card:hover {
	box-shadow: var(--vbnb-shadow-lg);
}

.vbnb-property-card__image-link {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.vbnb-property-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.vbnb-property-card:hover .vbnb-property-card__image {
	transform: scale(1.04);
}

.vbnb-property-card__image--placeholder {
	background-color: var(--vbnb-bg);
}

.vbnb-property-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.vbnb-property-card__neighborhood {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--vbnb-gold);
	margin-bottom: 0.35rem;
}

.vbnb-property-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	line-height: 1.3;
}

.vbnb-property-card__title a {
	color: var(--vbnb-dark);
	text-decoration: none;
}

.vbnb-property-card__title a:hover,
.vbnb-property-card__title a:focus-visible {
	color: var(--vbnb-gold);
}

.vbnb-property-card__stats {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
	font-size: 0.875rem;
	color: var(--vbnb-text-muted);
}

.vbnb-property-card__stat {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.vbnb-property-card__footer {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.vbnb-property-card__price {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--vbnb-dark);
}

.vbnb-property-card__price-unit {
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--vbnb-text-muted);
}

.vbnb-property-card__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.vbnb-property-card__actions .vbnb-btn {
	flex: 1;
	font-size: 0.875rem;
	padding: 0.55rem 0.75rem;
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.vbnb-archive .navigation.pagination {
	margin-top: 2.5rem;
	text-align: center;
}

.vbnb-archive__empty {
	text-align: center;
	color: var(--vbnb-text-muted);
	font-size: 1.1rem;
	padding: 3rem 0;
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/* SINGLE PROPERTY                                                             */
/* ═══════════════════════════════════════════════════════════════════════════ */

.vbnb-single {
	background-color: var(--vbnb-bg);
}

/* ─── Gallery ────────────────────────────────────────────────────────────── */
.vbnb-gallery {
	background-color: var(--vbnb-dark);
}

.vbnb-gallery__main {
	display: grid;
	grid-template-rows: auto auto;
	max-height: 680px;
	overflow: hidden;
}

@media (min-width: 768px) {
	.vbnb-gallery__main {
		grid-template-columns: 2fr 1fr;
		grid-template-rows: 1fr 1fr;
		max-height: 520px;
	}
}

.vbnb-gallery__hero-btn {
	position: relative;
	cursor: pointer;
	border: none;
	padding: 0;
	background: none;
	display: block;
	overflow: hidden;
	grid-row: 1;
}

@media (min-width: 768px) {
	.vbnb-gallery__hero-btn {
		grid-column: 1;
		grid-row: 1 / 3;
	}
}

.vbnb-gallery__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 16 / 9;
	transition: transform 0.35s ease;
}

.vbnb-gallery__hero-btn:hover .vbnb-gallery__hero-img,
.vbnb-gallery__hero-btn:focus-visible .vbnb-gallery__hero-img {
	transform: scale(1.03);
}

.vbnb-gallery__count {
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	background-color: rgb(0 0 0 / 0.6);
	color: var(--vbnb-white);
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.35rem 0.75rem;
	border-radius: var(--vbnb-radius);
}

.vbnb-gallery__thumbs {
	display: none;
}

@media (min-width: 768px) {
	.vbnb-gallery__thumbs {
		grid-column: 2;
		grid-row: 1 / 3;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(2, 1fr);
		gap: 3px;
	}
}

.vbnb-gallery__thumb-btn {
	cursor: pointer;
	border: none;
	padding: 0;
	background: none;
	overflow: hidden;
	display: block;
}

.vbnb-gallery__thumb-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.vbnb-gallery__thumb-btn:hover img,
.vbnb-gallery__thumb-btn:focus-visible img {
	transform: scale(1.05);
}

/* ─── Featured img fallback ──────────────────────────────────────────────── */
.vbnb-single__hero-img {
	max-height: 520px;
	overflow: hidden;
}

.vbnb-single__featured-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ─── Layout (content + sidebar) ─────────────────────────────────────────── */
.vbnb-single__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-top: 2.5rem;
	padding-bottom: 4rem;
	align-items: start;
}

@media (min-width: 900px) {
	.vbnb-single__layout {
		grid-template-columns: 1fr 340px;
	}
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.vbnb-breadcrumb {
	font-size: 0.85rem;
	color: var(--vbnb-text-muted);
	margin-bottom: 1.25rem;
}

.vbnb-breadcrumb a {
	color: var(--vbnb-gold);
	text-decoration: none;
}

.vbnb-breadcrumb a:hover,
.vbnb-breadcrumb a:focus-visible {
	text-decoration: underline;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.vbnb-single__header {
	margin-bottom: 2rem;
}

.vbnb-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.75rem;
}

.vbnb-single__title {
	font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
	font-weight: 700;
	color: var(--vbnb-dark);
	margin: 0 0 1.25rem;
	line-height: 1.2;
}

/* ─── Stats bar ──────────────────────────────────────────────────────────── */
.vbnb-stats-bar {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-size: 0.95rem;
	color: var(--vbnb-text-muted);
	background-color: var(--vbnb-white);
	border: 1px solid var(--vbnb-border);
	border-radius: var(--vbnb-radius);
	padding: 1rem 1.25rem;
}

.vbnb-stats-bar__item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.vbnb-stats-bar__item strong {
	color: var(--vbnb-dark);
	font-size: 1.05rem;
}

.vbnb-stats-bar__item--price strong {
	color: var(--vbnb-gold);
	font-size: 1.15rem;
}

/* ─── Description ────────────────────────────────────────────────────────── */
.vbnb-single__description {
	margin-top: 2rem;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--vbnb-text);
}

/* ─── Amenities ──────────────────────────────────────────────────────────── */
.vbnb-amenities {
	margin-top: 2.5rem;
	background-color: var(--vbnb-white);
	border: 1px solid var(--vbnb-border);
	border-radius: var(--vbnb-radius);
	padding: 1.75rem;
}

.vbnb-amenities__title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--vbnb-dark);
	margin: 0 0 1.25rem;
}

.vbnb-amenities__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.6rem;
}

@media (min-width: 480px) {
	.vbnb-amenities__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

.vbnb-amenities__item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.95rem;
	color: var(--vbnb-text);
}

.vbnb-amenities__check::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: var(--vbnb-gold);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%231C1C1C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
	background-size: 12px;
	background-repeat: no-repeat;
	background-position: center;
	flex-shrink: 0;
}

/* ─── Shared section title ───────────────────────────────────────────────── */
.vbnb-section-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--vbnb-dark);
	margin: 0 0 1.25rem;
}

/* ─── Units Included ─────────────────────────────────────────────────────── */
.vbnb-units {
	margin-top: 2.5rem;
	background-color: var(--vbnb-white);
	border: 1px solid var(--vbnb-border);
	border-radius: var(--vbnb-radius);
	padding: 1.75rem;
}

.vbnb-units__content {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--vbnb-text);
}

.vbnb-units__content p { margin: 0 0 0.5rem; }

/* ─── Nearby Spots ───────────────────────────────────────────────────────── */
.vbnb-nearby {
	margin-top: 2.5rem;
}

.vbnb-nearby__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}

@media (min-width: 600px) {
	.vbnb-nearby__grid { grid-template-columns: repeat(3, 1fr); }
}

.vbnb-nearby__item {
	position: relative;
	border: none;
	padding: 0;
	background: none;
	cursor: pointer;
	border-radius: var(--vbnb-radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	display: block;
}

.vbnb-nearby__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.vbnb-nearby__item:hover img,
.vbnb-nearby__item:focus-visible img {
	transform: scale(1.05);
}

.vbnb-nearby__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgb(0 0 0 / 0.65));
	color: var(--vbnb-white);
	font-size: 0.8rem;
	font-weight: 600;
	padding: 1rem 0.75rem 0.5rem;
	text-align: left;
}

/* ─── Booking sidebar card ───────────────────────────────────────────────── */
.vbnb-single__sidebar {
	position: sticky;
	top: 2rem;
}

.vbnb-booking-card {
	background-color: var(--vbnb-white);
	border: 1px solid var(--vbnb-border);
	border-radius: var(--vbnb-radius);
	padding: 1.75rem;
	box-shadow: var(--vbnb-shadow);
}

.vbnb-booking-card__price {
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--vbnb-dark);
	margin: 0 0 1.25rem;
	line-height: 1;
}

.vbnb-booking-card__price-unit {
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--vbnb-text-muted);
}

.vbnb-booking-card__note {
	font-size: 0.8rem;
	color: var(--vbnb-text-muted);
	margin: 0.75rem 0 1.25rem;
	text-align: center;
}

.vbnb-booking-card__features {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	border-top: 1px solid var(--vbnb-border);
	padding-top: 1.25rem;
}

.vbnb-booking-card__features li {
	font-size: 0.875rem;
	color: var(--vbnb-text-muted);
	padding: 0.3rem 0;
	padding-left: 1.25rem;
	position: relative;
}

.vbnb-booking-card__features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--vbnb-gold);
	font-weight: 700;
}

.vbnb-booking-card__back-link {
	text-align: center;
	margin-top: 1rem;
}

.vbnb-booking-card__back-link a {
	font-size: 0.875rem;
	color: var(--vbnb-text-muted);
	text-decoration: none;
}

.vbnb-booking-card__back-link a:hover,
.vbnb-booking-card__back-link a:focus-visible {
	color: var(--vbnb-gold);
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/* LIGHTBOX                                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

.vbnb-lightbox {
	position: fixed;
	inset: 0;
	background-color: rgb(0 0 0 / 0.93);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vbnb-lightbox[hidden] {
	display: none;
}

.vbnb-lightbox__img-wrap {
	max-width: 90vw;
	max-height: 85vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vbnb-lightbox__img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
}

.vbnb-lightbox__close,
.vbnb-lightbox__prev,
.vbnb-lightbox__next {
	position: fixed;
	background: none;
	border: none;
	color: var(--vbnb-white);
	cursor: pointer;
	font-size: 2.5rem;
	padding: 0.5rem;
	line-height: 1;
	transition: color 0.15s;
}

.vbnb-lightbox__close:hover,
.vbnb-lightbox__prev:hover,
.vbnb-lightbox__next:hover {
	color: var(--vbnb-gold);
}

.vbnb-lightbox__close {
	top: 1rem;
	right: 1.5rem;
	font-size: 2rem;
}

.vbnb-lightbox__prev {
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 3rem;
}

.vbnb-lightbox__next {
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 3rem;
}

.vbnb-lightbox__counter {
	position: fixed;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgb(255 255 255 / 0.6);
	font-size: 0.85rem;
	margin: 0;
}

/* ─── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
	.vbnb-property-card {
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}
}
