:root {
	--bg: #070707;
	--card: #111;
	--card2: #171717;
	--gold: #c99a42;
	--gold2: #e2bd72;
	--text: #f4f0e8;
	--muted: #a8a29a;
	--line: #2a2a2a
}

* {
	box-sizing: border-box
}

html {
	scroll-behavior: smooth
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Inter, Arial, sans-serif
}
.card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}
a {
	color: inherit;
	text-decoration: none
}

.header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 7%;
	background: rgba(7, 7, 7, .86);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line)
}

.logo {
	display: grid;
	line-height: .9;
	color: var(--gold2);
	letter-spacing: 5px
}

.logo span {
	font-family: Georgia, serif;
	font-size: 31px
}

.logo small {
	font-size: 10px
}

.nav {
	display: flex;
	gap: 28px;
	text-transform: uppercase;
	font-size: 12px
}

.nav a:hover {
	color: var(--gold2)
}

.menu-btn {
	display: none;
	background: none;
	color: white;
	border: 0;
	font-size: 26px
}

.hero {
	min-height: 680px;
	background: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .45)), url('../img/image4.png') center/cover;
	display: flex;
	align-items: center;
	padding: 7%
}

.hero-content {
	max-width: 650px
}

.hero h1 {
	font-size: clamp(42px, 7vw, 82px);
	line-height: 1.03;
	margin: 0 0 24px
}

.hero h1 span {
	color: var(--gold2)
}

.hero p {
	font-size: 19px;
	line-height: 1.6;
	color: #ddd;
	max-width: 560px
}

.btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 14px 24px;
	border-radius: 4px;
	text-transform: uppercase;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .4px
}

.gold {
	background: linear-gradient(135deg, var(--gold2), var(--gold));
	color: #111
}

.outline {
	border: 1px solid var(--gold);
	color: var(--gold2)
}

.hero-actions {
	display: flex;
	gap: 14px;
	margin-top: 30px
}

/* ==========================================
   BENEFICIOS
========================================== */

.benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	padding: 34px 7%;
	background: #0d0d0d;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.benefits article {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 15px;
	row-gap: 5px;
	align-items: start;
	min-width: 0;
}

.benefits article > span {
	grid-column: 1;
	grid-row: 1 / 3;

	width: 52px;
	height: 52px;

	display: grid;
	place-items: center;

	border: 1px solid var(--gold);
	border-radius: 50%;

	color: var(--gold2);
	font-size: 27px;
	line-height: 1;
}

.benefits h3 {
	grid-column: 2;
	grid-row: 1;

	margin: 0;
	color: var(--text);
	font-size: 15px;
	line-height: 1.3;
}

.benefits p {
	grid-column: 2;
	grid-row: 2;

	margin: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.55;
}

.section {
	padding: 72px 7%;
	border-bottom: 1px solid var(--line)
}

.section-head {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: end;
	margin-bottom: 28px
}

.section h2 {
	font-size: 30px;
	text-transform: uppercase;
	margin: 0 0 8px
}

.section p {
	color: var(--muted);
	line-height: 1.6
}

.categories,
.filters {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 24px
}

.cat,
.filters select,
.map-section select {
	background: var(--card);
	border: 1px solid var(--line);
	color: var(--text);
	padding: 14px 18px;
	border-radius: 6px
}

.cat.active {
	border-color: var(--gold);
	color: var(--gold2)
}

/* ==========================================
   CARRUSEL DE PROPIEDADES
========================================== */

.properties-carousel {
	position: relative;
}

.properties-viewport {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.properties-viewport::-webkit-scrollbar {
	display: none;
}

.property-grid {
	display: flex;
	gap: 18px;
	width: max-content;
	padding: 4px 0 12px;
}

.property-grid .card {
	flex: 0 0 calc((min(86vw, 1400px) - 54px) / 4);
	width: calc((min(86vw, 1400px) - 54px) / 4);
	scroll-snap-align: start;
}

.properties-arrow {
	position: absolute;
	top: 50%;
	z-index: 20;
	width: 48px;
	height: 58px;
	display: grid;
	place-items: center;
	transform: translateY(-50%);
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 8px;
	background: rgba(0, 0, 0, .78);
	color: white;
	font-size: 30px;
	cursor: pointer;
}

.properties-arrow:hover {
	border-color: var(--gold);
	color: var(--gold2);
	background: rgba(0, 0, 0, .95);
}

.properties-arrow-left {
	left: -24px;
}

.properties-arrow-right {
	right: -24px;
}

.properties-arrow:disabled {
	opacity: .3;
	cursor: not-allowed;
}

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden
}

.card-img {
	height: 190px;
	background-size: cover;
	background-position: center;
	position: relative
}

.tag {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--gold2);
	color: #111;
	border-radius: 5px;
	padding: 7px 10px;
	font-size: 11px;
	font-weight: 900
}

.card-body {
	padding: 18px
}

.card h3 {
	margin: 0 0 8px
}

.price {
	color: var(--gold2);
	font-size: 20px;
	font-weight: 900
}

.meta {
	display: flex;
	gap: 12px;
	color: var(--muted);
	font-size: 13px;
	margin-top: 12px
}

.map-box {
	height: 410px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: radial-gradient(circle at center, rgba(201, 154, 66, .16), transparent 35%), linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1600&q=80') center/cover;
	position: relative;
	overflow: hidden
}

.pin {
	position: absolute;
	color: var(--gold2);
	font-size: 30px;
	text-shadow: 0 0 12px #000
}

.split {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 30px;
	align-items: center
}

.split-img,
.about {
	min-height: 310px;
	background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .25)), url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1400&q=80') center/cover;
	border-radius: 8px
}

.split ul {
	color: var(--muted);
	line-height: 2
}

/* ==========================================
   PUBLICA TU PROPIEDAD
========================================== */

.publish-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 7%;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .93) 0%,
            rgba(0, 0, 0, .72) 45%,
            rgba(0, 0, 0, .25) 100%
        ),
        url("../img/image5.png") center / cover no-repeat;

    border-bottom: 1px solid var(--line);
}

.publish-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.publish-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--gold2);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.publish-content h2 {
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 75px);
    line-height: 1.03;
    text-transform: none;
}

.publish-content h2 span {
    color: var(--gold2);
}

.publish-content p {
    max-width: 600px;
    margin: 0;
    color: #ddd;
    font-size: 19px;
    line-height: 1.7;
}

.publish-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 28px 0 32px;
}

.publish-benefits span {
    color: #f1f1f1;
    font-size: 15px;
}

.publish-benefits span::first-letter {
    color: var(--gold2);
}

/* ==========================================
   CARRUSEL DE ALBERGUES
========================================== */

.shelters-carousel {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.shelters-viewport {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.shelters-viewport::-webkit-scrollbar {
	display: none;
}

.shelter-grid {
	display: flex;
	gap: 18px;
	width: max-content;
	padding: 4px 0 12px;
}

.shelter-grid .card {
	flex: 0 0 calc((86vw - 36px) / 3);
	width: calc((86vw - 36px) / 3);
	scroll-snap-align: start;
}

.shelters-arrow {
	position: absolute;
	top: 50%;
	z-index: 20;
	width: 48px;
	height: 58px;
	display: grid;
	place-items: center;
	transform: translateY(-50%);
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 8px;
	background: rgba(0, 0, 0, .8);
	color: white;
	font-size: 30px;
	cursor: pointer;
}

.shelters-arrow:hover {
	border-color: var(--gold);
	color: var(--gold2);
	background: rgba(0, 0, 0, .95);
}

.shelters-arrow-left {
	left: 8px;
}

.shelters-arrow-right {
	right: 8px;
}

.shelters-arrow:disabled {
	opacity: .25;
	cursor: not-allowed;
}

.shelter .card-img {
	height: 220px
}

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-top: 28px;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 20px;
}

.stats article {
	text-align: center;
	min-width: 0;
}

.stats strong {
	display: block;
	color: var(--gold2);
	font-size: 25px;
	line-height: 1.1;
}

.stats span {
	display: block;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.3;
}

.about {
	display: flex;
	align-items: center;
	padding: 60px;
	max-width: none
}

.about div {
	max-width: 520px
}

.contact {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 30px
}

.contact form {
	display: grid;
	gap: 12px
}

.contact input,
.contact textarea {
	background: #0d0d0d;
	border: 1px solid var(--line);
	padding: 15px;
	color: var(--text);
	border-radius: 4px
}

.contact textarea {
	min-height: 130px
}

.footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 35px 7%;
	color: var(--muted)
}

@media(max-width:900px) {
.benefits {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	padding: 25px 4%;
}

.benefits article {
	grid-template-columns: 42px minmax(0, 1fr);
	column-gap: 9px;
}

.benefits article > span {
	width: 38px;
	height: 38px;
	font-size: 20px;
}

.benefits h3 {
	font-size: 11px;
}

.benefits p {
	font-size: 9px;
	line-height: 1.35;
}
	.stats {
	grid-template-columns: repeat(4, 1fr);
	padding: 15px;
	gap: 8px;
}

.stats strong {
	font-size: 20px;
}

.stats span {
	font-size: 11px;
}

	.shelter-grid .card {
	flex: 0 0 calc((86vw - 18px) / 2);
	width: calc((86vw - 18px) / 2);
}
	.property-grid .card {
	flex: 0 0 calc((86vw - 18px) / 2);
	width: calc((86vw - 18px) / 2);
}

.properties-arrow-left {
	left: 8px;
}

.properties-arrow-right {
	right: 8px;
}
	.publish-hero {
    min-height: 520px;
    padding: 70px 7%;
    background-position: 65% center;
}

.publish-content {
    max-width: 100%;
}

.publish-content h2 {
    font-size: 45px;
}

.publish-content p {
    font-size: 17px;
}

.publish-benefits {
    flex-direction: column;
    gap: 12px;
}
	.menu-btn {
		display: block
	}
	.nav {
		display: none;
		position: absolute;
		top: 72px;
		right: 7%;
		left: 7%;
		background: #101010;
		border: 1px solid var(--line);
		padding: 20px;
		flex-direction: column
	}
	.nav.open {
		display: flex
	}
	.shelter-grid,
	.split,
	.contact {
		grid-template-columns: 1fr;
	}
	.hero {
		min-height: 560px
	}
	.footer {
		flex-direction: column;
		gap: 20px
	}
	.section-head {
		align-items: start;
		flex-direction: column
	}
}


@media(max-width:560px) {
.benefits {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	padding: 25px 4%;
}

.benefits article {
	grid-template-columns: 42px minmax(0, 1fr);
	column-gap: 9px;
}

.benefits article > span {
	width: 38px;
	height: 38px;
	font-size: 20px;
}

.benefits h3 {
	font-size: 11px;
}

.benefits p {
	font-size: 9px;
	line-height: 1.35;
}
	.stats {
	grid-template-columns: repeat(4, 1fr);
	padding: 15px;
	gap: 8px;
}

.stats strong {
	font-size: 20px;
}

.stats span {
	font-size: 11px;
}

	.shelter-grid .card {
	flex: 0 0 calc((86vw - 18px) / 2);
	width: calc((86vw - 18px) / 2);
}
	.property-grid .card {
	flex: 0 0 calc((86vw - 18px) / 2);
	width: calc((86vw - 18px) / 2);
}

.properties-arrow-left {
	left: 8px;
}

.properties-arrow-right {
	right: 8px;
}
	.publish-hero {
    min-height: 520px;
    padding: 70px 7%;
    background-position: 65% center;
}

.publish-content {
    max-width: 100%;
}

.publish-content h2 {
    font-size: 45px;
}

.publish-content p {
    font-size: 17px;
}

.publish-benefits {
    flex-direction: column;
    gap: 12px;
}
	.menu-btn {
		display: block
	}
	.nav {
		display: none;
		position: absolute;
		top: 72px;
		right: 7%;
		left: 7%;
		background: #101010;
		border: 1px solid var(--line);
		padding: 20px;
		flex-direction: column
	}
	.nav.open {
		display: flex
	}
	.shelter-grid,
	.split,
	.contact {
		grid-template-columns: 1fr;
	}
	.hero {
		min-height: 560px
	}
	.footer {
		flex-direction: column;
		gap: 20px
	}
	.section-head {
		align-items: start;
		flex-direction: column
	}
}


.map-layout {
	display: grid;
	grid-template-columns: 1.8fr .75fr;
	gap: 18px
}

.map-box {
	height: 330px
}

.map-box #googleMap,
.map-fallback {
	position: absolute;
	inset: 0
}

.map-box #googleMap {
	z-index: 1
}

.map-fallback {
	z-index: 0
}

.map-fallback {
	background: radial-gradient(circle at center, rgba(201, 154, 66, .16), transparent 35%), linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1600&q=80') center/cover
}

.map-results {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 12px;
	display: grid;
	gap: 10px;
	max-height: 520px;
	overflow: auto
}

.map-item {
	text-align: left;
	background: #0b0b0b;
	border: 1px solid var(--line);
	color: var(--text);
	border-radius: 8px;
	padding: 14px;
	cursor: pointer
}

.map-item:hover {
	border-color: var(--gold)
}

.map-item strong,
.map-item span,
.map-item em {
	display: block
}

.map-item span {
	color: var(--muted);
	margin: 6px 0
}

.map-item em {
	color: var(--gold2);
	font-style: normal;
	font-weight: 800
}

.map-results {
    display: flex;
    flex-direction: column;
}

.map-results-list {
    display: grid;
    gap: 10px;
}

.map-empty {
    padding: 25px 15px;
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.map-pagination {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.map-pagination-info {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.map-pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.map-page-button {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0b0b0b;
    color: var(--text);
    cursor: pointer;
}

.map-page-button:hover:not(:disabled) {
    border-color: var(--gold);
    color: var(--gold2);
}

.map-page-button.active {
    border-color: var(--gold);
    background: var(--gold);
    color: #111;
    font-weight: 900;
}

.map-page-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.map-info {
	color: #111;
	min-width: 180px
}

.map-info a {
	color: #8a5a00;
	font-weight: 800
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: #f7f1e5;
	color: #111
}

.leaflet-control-attribution {
	background: rgba(0, 0, 0, .6)!important;
	color: #aaa!important
}

.leaflet-control-attribution a {
	color: #e2bd72!important
}

@media(max-width:900px) {
	.map-layout {
		grid-template-columns: 1fr
	}
	.map-box {
		height: 430px
	}
	.map-results {
		max-height: none
	}
}
@media(max-width:560) {
	.map-layout {
		grid-template-columns: 1fr
	}
	.map-box {
		height: 330px
	}
	.map-results {
		max-height: none
	}
}
