/* =========================================================
   KKF Hotels Directory
   Version: 1.0.0
   Loads after kkf-trip-basket.css and reuses its tokens.
   ========================================================= */

.kkf-hotels {
  --h-sun: var(--kkf-sun, #f0522b);
  --h-mango: var(--kkf-mango, #f7941d);
  --h-ink: var(--kkf-ink, #17211f);
  --h-soft: var(--kkf-ink-soft, #5f6f6a);
  --h-line: var(--kkf-line, #ecdfd3);
  --h-sand: var(--kkf-sand, #fbf6f0);
  --h-teal: var(--kkf-teal, #0e6e63);
  --h-ease: 0.22s cubic-bezier(0.32, 0.72, 0.35, 1);

  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--kkf-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  color: var(--h-ink);
}

.kkf-hotels *,
.kkf-hotels *::before,
.kkf-hotels *::after {
  box-sizing: border-box;
}

/* =========================================================
   Hero
   ========================================================= */

.kkf-hotels-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 18px;
  padding: 32px 34px;
  border-radius: var(--kkf-radius-lg, 24px);
  background:
    radial-gradient(120% 150% at 100% 0%, #ffb347 0%, rgba(255, 179, 71, 0) 55%),
    linear-gradient(115deg, #f7941d 0%, #f0522b 52%, #d63e1c 100%);
  color: #fff;
  box-shadow: 0 14px 40px -18px rgba(23, 33, 31, 0.28);
}

.kkf-hotels-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60px -10%;
  height: 180px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.22) 0 26px,
    rgba(255, 255, 255, 0) 26px 52px
  );
  -webkit-mask-image: radial-gradient(60% 100% at 50% 100%, #000, transparent 72%);
  mask-image: radial-gradient(60% 100% at 50% 100%, #000, transparent 72%);
  transform: rotate(-3deg);
  pointer-events: none;
}

.kkf-hotels-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.kkf-hotels .kkf-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.kkf-hotels-hero h2 {
  margin: 0;
  font-family: var(--kkf-font-display, "Fraunces", Georgia, serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(120, 40, 10, 0.28);
}

.kkf-hotels-hero-sub {
  margin: 10px 0 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.93);
  font-size: 15px;
  line-height: 1.6;
}

.kkf-hotels-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.kkf-hotels-hero-stats:empty {
  display: none;
}

.kkf-hotels-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13.5px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.kkf-hotels-stat strong {
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

/* =========================================================
   Search bar
   ========================================================= */

.kkf-hotels-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 0 14px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Sticky fails inside an ancestor that clips overflow, so make
   sure nothing in this component does. */
.kkf-hotels,
.kkf-hotels-layout,
.kkf-hotels-main {
  overflow: visible;
}

.kkf-hotels-searchrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px 130px;
  gap: 10px;
  padding: 10px;
  border: 2px solid var(--h-mango);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px -26px rgba(23, 33, 31, 0.5);
}

.kkf-hotels-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--h-sand);
}

.kkf-hotels-field label {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--h-soft);
}

#kkfHotelsSearch {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--h-ink);
  appearance: none;
}

#kkfHotelsSearch:focus {
  outline: none;
}

#kkfHotelsSearch::-webkit-search-cancel-button {
  display: none;
}

.kkf-guests {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kkf-guests-btn {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1.5px solid var(--h-line);
  border-radius: 50%;
  background: #fff;
  color: var(--h-ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--h-ease), background var(--h-ease),
    color var(--h-ease);
}

.kkf-guests-btn:hover {
  border-color: var(--h-sun);
  background: var(--h-sun);
  color: #fff;
}

.kkf-guests-value {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.kkf-hotels-search-btn {
  min-height: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--h-mango), var(--h-sun));
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--h-ease);
}

.kkf-hotels-search-btn:hover {
  transform: translateY(-1px);
}

/* =========================================================
   Layout
   ========================================================= */

.kkf-hotels-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.kkf-hotels-filters {
  position: sticky;
  top: 118px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border: 1px solid var(--h-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(23, 33, 31, 0.04);
}

.kkf-hotels-filters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--h-line);
}

.kkf-hotels-filters-head h3 {
  margin: 0;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 18px;
  font-weight: 600;
}

.kkf-hotels-reset {
  border: 0;
  background: none;
  padding: 0;
  color: var(--h-sun);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.kkf-hotels-reset:hover {
  text-decoration: underline;
}

.kkf-filter-group + .kkf-filter-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--h-line);
}

.kkf-filter-group h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-soft);
}

.kkf-filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
}

.kkf-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--h-ease);
}

.kkf-filter-row:hover {
  background: var(--h-sand);
}

.kkf-filter-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--h-sun);
}

.kkf-filter-row span {
  flex: 1 1 auto;
  min-width: 0;
}

.kkf-filter-row em {
  color: var(--h-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.kkf-star-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.kkf-star-chip {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding: 8px 4px;
  border: 1.5px solid var(--h-line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--h-ink);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--h-ease), background var(--h-ease),
    color var(--h-ease);
}

.kkf-star-chip:hover {
  border-color: #f6c9b6;
}

.kkf-star-chip.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, var(--h-mango), var(--h-sun));
  color: #fff;
}

.kkf-filter-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 34px 10px 14px;
  border: 1.5px solid var(--h-line);
  border-radius: 12px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317211f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right 12px center / 15px 15px no-repeat;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--h-ink);
  cursor: pointer;
  appearance: none;
}

.kkf-filter-select:focus {
  outline: none;
  border-color: var(--h-sun);
}

/* =========================================================
   Results header
   ========================================================= */

.kkf-hotels-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.kkf-hotels-head h2 {
  margin: 0;
  font-family: var(--kkf-font-display, "Fraunces", Georgia, serif);
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.kkf-hotels-headtools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kkf-hotels-count {
  margin: 0;
  font-family: var(--kkf-font-display, "Fraunces", Georgia, serif);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}

.kkf-hotels-filters-toggle {
  display: none;
  min-height: 42px;
  padding: 10px 18px;
  border: 1.5px solid var(--h-line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.kkf-hotels-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.kkf-hotels-chips:empty {
  display: none;
}

.kkf-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--h-line);
  border-radius: 999px;
  background: var(--h-sand);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--h-ink);
  cursor: pointer;
  transition: border-color var(--h-ease), color var(--h-ease);
}

.kkf-active-chip span {
  color: var(--h-soft);
  font-size: 15px;
  line-height: 1;
}

.kkf-active-chip:hover {
  border-color: var(--h-sun);
  color: var(--h-sun);
}

/* =========================================================
   Hotel card
   ========================================================= */

.kkf-hotels-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kkf-hotel-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  overflow: hidden;
  border: 1px solid var(--h-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(23, 33, 31, 0.05);
  transition: transform var(--h-ease), box-shadow var(--h-ease),
    border-color var(--h-ease);
  animation: kkf-hotel-in 0.34s ease both;
}

.kkf-hotel-card:hover {
  transform: translateY(-2px);
  border-color: #f6c9b6;
  box-shadow: 0 24px 48px -28px rgba(23, 33, 31, 0.5);
}

.kkf-hotel-card-media {
  position: relative;
  display: block;
  min-height: 210px;
  background: var(--h-sand);
  overflow: hidden;
}

.kkf-hotel-card-media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0.35, 1);
}

.kkf-hotel-card:hover .kkf-hotel-card-media img {
  transform: scale(1.05);
}

.kkf-hotel-card-noimage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #ffd9a8, #f8a65c);
  color: #fff;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 17px;
  font-weight: 600;
}

.kkf-hotel-card-photos {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.72);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.kkf-hotel-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  min-width: 0;
}

.kkf-hotel-card-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.kkf-hotel-card-title {
  font-family: var(--kkf-font-display, "Fraunces", Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--h-ink) !important;
  text-decoration: none;
}

.kkf-hotel-card-title:hover {
  color: var(--h-sun) !important;
}

.kkf-hotel-card-stars {
  color: var(--h-mango);
  font-size: 13px;
  letter-spacing: 1px;
}

.kkf-hotel-card-place {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.kkf-hotel-card-region {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--kkf-teal-wash, #eaf5f3);
  color: var(--h-teal);
  font-weight: 700;
}

.kkf-hotel-card-region::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.kkf-hotel-card-address {
  color: var(--h-soft);
}

.kkf-hotel-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--h-soft);
  font-size: 13.5px;
  line-height: 1.55;
}

.kkf-hotel-card-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.kkf-hotel-card-facilities li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--h-line);
  border-radius: 999px;
  background: var(--h-sand);
  font-size: 12px;
  font-weight: 600;
  color: var(--h-ink);
}

.kkf-hotel-card-facilities li::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6e63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.kkf-hotel-card-facilities .kkf-hotel-card-more {
  background: none;
  border-style: dashed;
  color: var(--h-soft);
}

.kkf-hotel-card-facilities .kkf-hotel-card-more::before {
  display: none;
}

.kkf-hotel-card-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.kkf-hotel-card-note {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--kkf-teal-wash, #eaf5f3);
  color: var(--h-teal);
  font-size: 12px;
  font-weight: 700;
}

/* right column */

.kkf-hotel-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px 20px;
  border-left: 1px dashed var(--h-line);
  background: linear-gradient(180deg, #fff, var(--h-sand));
  text-align: right;
}

.kkf-hotel-card-sleeps {
  margin-bottom: auto;
  padding: 4px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--h-line);
  color: var(--h-soft);
  font-size: 11.5px;
  font-weight: 700;
}

.kkf-hotel-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.kkf-hotel-card-from,
.kkf-hotel-card-night {
  color: var(--h-soft);
  font-size: 12px;
}

.kkf-hotel-card-price strong {
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.kkf-hotel-card-ask {
  font-size: 20px !important;
}

.kkf-hotel-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--h-mango), var(--h-sun));
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px -14px rgba(240, 82, 43, 0.95);
  transition: transform var(--h-ease);
}

.kkf-hotel-card-cta:hover {
  transform: translateY(-2px);
}

.kkf-hotel-card-rooms {
  color: var(--h-soft);
  font-size: 11.5px;
}

/* =========================================================
   Skeletons, empty, pagination
   ========================================================= */

.kkf-hotel-skeleton {
  animation: none;
  pointer-events: none;
}

.kkf-hotel-skeleton .kkf-hotel-card-media,
.kkf-skel-line {
  background: linear-gradient(
    100deg,
    var(--h-sand) 30%,
    #f2e9df 50%,
    var(--h-sand) 70%
  );
  background-size: 220% 100%;
  animation: kkf-hotels-shimmer 1.3s linear infinite;
}

.kkf-skel-line {
  display: block;
  height: 13px;
  border-radius: 7px;
}

.kkf-skel-line.is-title {
  height: 22px;
  width: 55%;
}

.kkf-skel-line.is-short {
  width: 40%;
}

.kkf-skel-line.is-price {
  height: 40px;
  width: 100%;
  margin-top: auto;
}

.kkf-hotels-empty {
  padding: 54px 24px;
  border: 1.5px dashed var(--h-line);
  border-radius: 20px;
  background: var(--h-sand);
  text-align: center;
}

.kkf-hotels-empty strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 20px;
  font-weight: 600;
}

.kkf-hotels-empty p {
  margin: 0 0 18px;
  color: var(--h-soft);
  font-size: 14.5px;
}

.kkf-hotels-more {
  margin-top: 22px;
  text-align: center;
}

.kkf-hotels-more-btn {
  min-height: 50px;
  padding: 14px 32px;
  border: 1.5px solid var(--h-line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--h-ink);
  cursor: pointer;
  transition: border-color var(--h-ease), background var(--h-ease),
    transform var(--h-ease);
}

.kkf-hotels-more-btn:hover {
  transform: translateY(-2px);
  border-color: var(--h-sun);
  background: var(--kkf-sun-wash, #fff1ea);
  color: var(--kkf-sun-deep, #c33b16);
}

@keyframes kkf-hotel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes kkf-hotels-shimmer {
  from { background-position: 130% 0; }
  to { background-position: -30% 0; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .kkf-hotels-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .kkf-hotels-filters {
    position: static;
    display: none;
  }

  .kkf-hotels-filters.is-open {
    display: block;
    margin-bottom: 16px;
  }

  .kkf-hotels-filters-toggle {
    display: inline-flex;
    align-items: center;
  }

  .kkf-hotel-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .kkf-hotel-card-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-left: 0;
    border-top: 1px dashed var(--h-line);
    text-align: left;
  }

  .kkf-hotel-card-sleeps {
    margin-bottom: 0;
  }

  .kkf-hotel-card-cta {
    width: auto;
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .kkf-hotels-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    border-radius: var(--kkf-radius, 16px);
  }

  .kkf-hotels-hero-stats {
    margin-top: 16px;
  }
}

@media (max-width: 720px) {
  .kkf-hotels-searchrow {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  .kkf-hotels-search-btn {
    min-height: 50px;
  }

  .kkf-hotel-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .kkf-hotel-card-media {
    min-height: 190px;
    aspect-ratio: 16 / 10;
  }

  .kkf-hotel-card-body {
    padding: 15px 16px;
  }

  .kkf-hotel-card-title {
    font-size: 18px;
  }

  .kkf-hotel-card-side {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
  }

  .kkf-hotel-card-cta {
    flex: 1 1 auto;
    justify-content: center;
  }

  .kkf-hotels-head h2 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kkf-hotels * {
    animation: none !important;
    transition: none !important;
  }
}