@font-face {
  font-family: "Poppins-Thin";
  src: url("../fonts/Poppins/Poppins-Thin.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins-Medium";
  src: url("../fonts/Poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins-SemiBold";
  src: url("../fonts/Poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 700;
  font-style: bold;
  font-display: swap;
}

@font-face {
  font-family: "Poppins-Bold";
  src: url("../fonts/Poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: bold;
  font-display: swap;
}

@font-face {
  font-family: "Poppins-Light";
  src: url("../fonts/Poppins/Poppins-Light.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Primary Colors */
  --primary-500: #ff5b8c;
  --primary-800: #b33763;
  --primary-200: #ffc5dd;
  --white: #ffffff;

  /* Grey Scale */
  --grey-900: #1a1a1a;
  --grey-700: #3a3a3a;
  --grey-550: #6f7380;
  --grey-400: #d4d4d8;
  --grey-100: #f4f4f5;

  /* Text Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #3a3a3a;
  --text-tertiary: #6b7280;
  --text-disabled: #d1d5db;
  --text-on-primary: #ffffff;

  /* Background Colors */
  --bg-body: #faf7f2;
  --bg-section: #f3ede5;
  --bg-cards: #fffcf8;
  --bg-hover: #f8f4ee;
  --bg-active: #f3eee8;

  /* Border Colors */
  --border-default: #e5dcd3;
  --border-subtle: #f5efea;

  /* Success */
  --success-primary: #22c55e;
  --success-subtle: #dcfce7;

  /* Warning */
  --warning-primary: #f59e0b;
  --warning-subtle: #fef3c7;

  /* Error */
  --error-primary: #ef4444;
  --error-subtle: #fee2e2;
}

:root {
  /* Font Family */
  --font-family:
    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Font Sizes */
  --font-size-h1: 48px;
  --font-size-h2: 36px;
  --font-size-h25: 32px;
  --font-size-h3: 24px;
  --font-size-h4: 20px;
  --font-size-body-large: 18px;
  --font-size-body: 16px;
  --font-size-body-small: 14px;
  --font-size-caption: 12px;

  /* Line Heights */
  --line-height-h1: 56px;
  --line-height-h2: 44px;
  --line-height-h3: 32px;
  --line-height-h4: 28px;
  --line-height-body-large: 28px;
  --line-height-body: 24px;
  --line-height-body-small: 20px;
  --line-height-caption: 16px;

  /* Letter Spacing */
  --letter-spacing-h1: -0.5px;
  --letter-spacing-default: 0px;
}

/* Typography Classes */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-default);
  font-weight: var(--font-weight-regular);
}

h1,
.text-h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-h1);
}

h2,
.text-h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-default);
}

h3,
.text-h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-default);
}

h4,
.text-h4 {
  font-size: var(--font-size-h4);
  line-height: var(--line-height-h4);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-default);
}

.text-body-large {
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-body-large);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--letter-spacing-default);
}

.text-body {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--letter-spacing-default);
}

.text-body-small {
  font-size: var(--font-size-body-small);
  line-height: var(--line-height-body-small);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--letter-spacing-default);
}

.text-caption {
  font-size: var(--font-size-caption);
  line-height: var(--line-height-caption);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--letter-spacing-default);
}

/* Font Weight Utilities */
.font-regular {
  font-weight: var(--font-weight-regular);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  text-decoration: none;
}

header {
  position: relative;
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 204px;
  margin: 20px 0px 40px;
}

input[type="submit"] {
  cursor: pointer;
}

/* LEFT */
.logo {
  display: flex;
  align-items: center;
}

/* CENTER — true center */
#headerForm {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  width: 422px;
  height: 50px;
  padding: 11px 14px;
}

/* RIGHT */
.options {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

#headerForm input {
  border: none;
  color: var(--text-primary);
  font-size: var(--font-size-body);
  font-family: var(--font-family);
  padding-left: 30px;
}

#headerForm input:focus {
  outline: none;
  border: none;
  color: var(--text-primary);
}

input::placeholder {
  color: var(--grey-550);
}

.options {
  position: relative;
  display: flex;
  width: 64px;
  gap: 16px;
}

.drop-down {
  position: absolute;
  top: 30px;
  left: 58px;
  width: 200px;
  display: flex;
  flex-direction: column;
  /* gap: 6px; */
  /* padding: 16px 12px; */
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  max-height: 0;
  transition: all 300ms;
  opacity: 0;
  background-color: #fff;
}

.dropAnimate {
  max-height: 375px;
  opacity: 1;
  z-index: 0;
}

.drop-down a {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 18px 14px;
  /* 👈 THIS fixes it */
  border-radius: 8px;
  transition:
    background-color 200ms,
    color 200ms;
}

.drop-down a:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.drop-down a:last-child {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
}

.drop-down span {
  font-size: var(--font-size-body-small);
}

.show {
  display: block;
}

.hide {
  display: none;
}

.user-icon {
  cursor: pointer;
}

/* MAIN */
main h4 {
  text-align: center;
  width: 600px;
}

.cards-container {
  width: 80%;
  margin: 0 auto;
  margin-top: 80px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 80px;
}

.title {
  font-family: "Poppins-Thin";
  color: var(--text-secondary);
  opacity: 0.8;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 auto;
  width: 800px;
}

.property-card {
  width: 291px;
  height: 400px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.property-card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.property-image img {
  width: 291px;
  height: 180px;
  border-radius: 12px 12px 0 0;
}

.property-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 13px;
}

.property-info .property-title {
  text-align: left;
}

.property-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rooms-bathrooms-wrap {
  display: flex;
  justify-content: space-between;
  padding-right: 8px;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 8px;
}

.property-footer .property-price {
  font-size: var(--font-size-h4);
}

.property-footer .property-price span {
  font-family: "Poppins-Medium";
  font-weight: var(--font-weight-medium);
}

.property-btn {
  background-color: var(--primary-500);
  color: var(--text-on-primary);
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-family: "Poppins";
  font-size: var(--font-size-body-small);
  transition: background-color 0.3s ease;
}

.property-btn:hover {
  background-color: var(--primary-800);
}

.property-header {
  margin: 0 auto;
  width: 1056px;
  height: auto;
  display: grid;
  gap: 5px;
  column-gap: 10px;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: repeat(4, 264px);
}

.property-header img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.img-main {
  grid-area: 1 / 1 / 3 / 3;
}

.img-main > img {
  border-radius: 8px;
}

.property-main {
  display: grid;
  align-items: start;
  column-gap: 35px;
  row-gap: 40px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(6, auto) 120px;
  margin: 25px auto 0px;
  width: 1130px;
  padding-left: 36px;
}

.specs {
  grid-column: 1 / 2;
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 2px;
}

.specs > span {
  font-size: 32px;
  color: var(--text-primary);
  grid-row-start: 1;
}

.specs > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta {
  grid-row-start: 1;
  grid-column-start: 2;
  width: 523px;
  height: 355px;
  padding: 27px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 12px;
  background-color: #f0ede8;
}

.dates {
  display: flex;
  flex-direction: column;
  height: 160px;
  border-radius: 10px;
  background-color: white;
}

.dates div {
  /* padding-left: 10px; */
  padding-top: 3px;
}

.dates > div {
  height: 50%;
}

.dates .arrive {
  display: flex;
}

.dates .arrive div:first-child {
  border-right: 1px solid var(--grey-400);
}

.price_per_night {
  font-family: "Poppins-Bold";
  font-size: var(--font-size-h3);
}

.guests {
  padding-left: 10px;
  border-top: 1px solid var(--grey-400);
}

#guests {
  border: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  display: flex;
  justify-content: space-between;
  width: 100%;

  background-image: url("../img/arrow-down1.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-left: 5px;
  /* space for arrow */
  padding-top: 10px;
}

.arrive {
  display: flex;
  cursor: pointer;
}

.date-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 10px;
}

input[type="date"] {
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

input[type="date"]:focus {
  outline: none;
}

/* hide native icon but keep click */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

/* focus feedback */
.arrive-end:focus-within {
  border-color: #111;
}

#guests:focus {
  outline: none;
  border-color: #111;
}

.cta a {
  text-decoration: none;
  text-align: center;
  width: 100%;
  background-color: var(--primary-500);
  color: var(--text-on-primary);
  padding: 14px 24px;
  border-radius: 10px;
}

.cta a:hover {
  background-color: var(--primary-800);
}

/* ── Booking panel: date-range picker ───────────────────────── */
.property-main .cta {
  height: auto;
}

.booking-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Align the date field, guests box and button to one column width. */
.booking-form > * {
  width: 430px;
  max-width: 100%;
}

/* Trigger field that opens the calendar popover */
.date-field-wrap {
  position: relative;
}

.date-field {
  width: 100%;
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--grey-400);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-family);
  text-align: left;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.date-field:hover {
  border-color: var(--grey-550);
}

.date-field[aria-expanded="true"] {
  border-color: var(--primary-800);
  box-shadow: 0 0 0 1px var(--primary-800);
}

.date-field-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
}

.date-field-divider {
  width: 1px;
  background: var(--grey-400);
}

.date-field-val {
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.date-field-val.is-empty {
  color: var(--text-tertiary);
  font-weight: var(--font-weight-regular);
}

/* Popover holding the calendar (the .cal-card brings its own shadow) */
.cal-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.cal-popover[hidden] {
  display: none;
}

.booking-form .guests {
  border-top: none;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--grey-400);
  padding: 8px 10px;
}

.reserve-btn {
  border: none;
  cursor: pointer;
  text-align: center;
  background-color: var(--primary-500);
  color: var(--text-on-primary);
  padding: 14px 24px;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  transition: background-color 0.15s, opacity 0.15s;
}

.reserve-btn:hover:not(:disabled) {
  background-color: var(--primary-800);
}

.reserve-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.amenities {
  grid-column-start: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.amenities div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 20px;
  column-gap: 10px;
}

.amenities div div {
  display: flex;
  gap: 10px;
}

.amenities div div > img {
  width: 28px;
  height: 28px;
}

.amenities .amenities-title {
  font-family: "Poppins-Medium";
  font-size: var(--font-size-body-large);
  color: var(--text-primary);
}

.host-info {
  grid-column-start: 1;
  grid-row-start: 3;
  display: flex;
  align-items: center;
  gap: 36px;
  color: var(--text-primary);
}

.host-info img {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 16 / 9;
}

.host-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.host-details div {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.host-name {
  font-size: var(--font-size-body);
  font-family: "Poppins-SemiBold";
}

.host-sub {
  font-size: 11px;
  font-family: "Poppins-Medium";
  color: var(--text-secondary);
}

.host-details div span {
  line-height: 1.1;
}

.host-lang {
  font-size: 10px;
  color: var(--text-primary);
}

.map-wrapper {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.map-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-title span {
  font-family: "Poppins-Medium";
  color: var(--text-primary);
  font-size: var(--font-size-h3);
}

#map {
  height: 345px;
  border-radius: 12px;
}

.location-desc {
  color: var(--text-primary);
}

/* FOOTER */

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background-color: var(--primary-200);
  height: 215px;
  margin-top: 60px;
  padding: 0 153px;
}

.footer-logo {
  position: relative;
}

.footer-logo .info {
  position: absolute;
  color: var(--text-on-primary);
  font-size: var(--font-size-body-small);
  display: flex;
  flex-direction: column;
  left: 18px;
}

footer .contact {
  justify-self: center;
  text-decoration: none;
  color: white;
  background-color: var(--primary-500);
  border-radius: 5px;
  padding: 10px 32px;
}

footer .media {
  justify-self: end;
  display: flex;
  gap: 24px;
}

footer .media a {
  text-decoration: none;
  transition: transform 300ms;
}

footer .media a:hover {
  transform: scale(1.1);
}

/* PAGINATION */


.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin-top: 50px;
}
/* ── Nav row ── */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Base button ── */
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-default);
  background-color: var(--bg-cards);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;
  user-select: none;
  outline: none;
}

/* ── Hover state ── */
.page-btn:hover:not(.active):not(:disabled) {
  background-color: var(--bg-hover);
  border-color: var(--primary-200);
  color: var(--primary-500);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 91, 140, 0.12);
}

/* ── Focus-visible state (keyboard) ── */
.page-btn:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* ── Active / selected page ── */
.page-btn.active {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--text-on-primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 91, 140, 0.35);
  cursor: default;
}

/* ── Pressed state ── */
.page-btn:active:not(.active):not(:disabled) {
  transform: translateY(0);
  background-color: var(--bg-active);
  box-shadow: none;
}

/* ── Disabled state ── */
.page-btn:disabled {
  color: var(--text-disabled);
  border-color: var(--border-subtle);
  background-color: var(--grey-100);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ── Nav arrow buttons (slightly muted text) ── */
.page-btn.nav-btn {
  color: var(--text-tertiary);
  font-size: 16px;
}

.page-btn.nav-btn:hover:not(:disabled) {
  color: var(--primary-500);
}

/* ── Ellipsis ── */
.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-tertiary);
  font-size: 16px;
  letter-spacing: 1px;
  user-select: none;
  pointer-events: none;
}

.fav-icon {
  position: relative;
  top: -67px;
  right: -475px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  padding: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fav-icon:hover {
  background-color: rgba(255, 255, 255, 0.65);
  transform: scale(1.08);
}

.fav-icon img {
  width: 26px;
  height: 26px;
}

.fav-icon.active {
  background-color: rgba(255, 80, 80, 0.85);
}

.fav-icon.active:hover {
  background-color: rgba(255, 80, 80, 0.95);
}

.fav-icon.active img {
  filter: brightness(0) invert(1); /* pone el icono en blanco si es SVG/PNG oscuro */
}


