/* Generell layout */
.bno-booking-search-wrapper {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.bno-booking-search-form {
  background: #ffffff;
  border-radius: 30px;
  padding: 24px 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 1.6fr 1.6fr 1fr 1.6fr auto;
  grid-column-gap: 16px;
  align-items: end;
}

.bno-booking-search-form .bno-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f7f7f;
  margin-bottom: 4px;
}

.bno-booking-search-form .bno-field input,
.bno-booking-search-form .bno-field select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  font-size: 14px;
}

.bno-booking-search-form .bno-field-submit {
  text-align: right;
}

.bno-button {
  background: #00284d;
  color: #fff;
  border-radius: 999px;
  border: none;
  padding: 12px 26px;
  font-size: 14px;
  cursor: pointer;
}

.bno-button:hover {
  background: #00407d;
}

/* NYTT: tydelig disabled/loading-state */
.bno-button[disabled] {
  opacity: 0.65;
  cursor: wait;
}

/* Resultatside */
.bno-booking-results {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.bno-results-filters {
  background: #ffffff;
  border-radius: 24px;
  padding: 16px 20px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}

/* Beskytt mot theme-CSS som kan gi content-box og/eller min-width som skaper overlapping */
.bno-results-filters .bno-filter-field,
.bno-results-filters .bno-filter-field * {
  box-sizing: border-box;
}

.bno-results-filters .bno-filter-field {
  flex: 1 1 150px;
  min-width: 0;
}

.bno-filter-field[data-bno-filter="bedrooms"],
.bno-filter-field[data-bno-filter="beds"] {
  flex: 0 0 140px;
  min-width: 120px;
  max-width: 140px;
}

.bno-results-filters .bno-filter-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f7f7f;
  margin-bottom: 4px;
}

.bno-results-filters .bno-filter-field input,
.bno-results-filters .bno-filter-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 8px 10px;
  font-size: 13px;
}

.bno-filter-actions {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* NYTT: Map open button (booking.com-ish) */
.bno-map-open {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
}

.bno-map-open:hover {
  border-color: #bdbdbd;
}

.bno-results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  margin-top: 16px;
}

.bno-results-summary {
  font-size: 14px;
  color: #555;
}

.bno-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  grid-column-gap: 32px;
}

.bno-results-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bno-room-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.bno-card-gallery {
  position: relative;
  overflow: hidden;
}

.bno-card-gallery-main img {
  display: none;
  width: 100%;
  height: 320px;
  object-fit: cover;
  cursor: zoom-in;
}

.bno-card-gallery-main img.bno-gallery-img-active {
  display: block;
}

.bno-card-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.bno-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  padding: 0;
  cursor: pointer;
}

.bno-dot-active {
  width: 18px;
  background: #ffffff;
}

.bno-room-card-body {
  padding: 18px 22px 20px;
}

.bno-room-card-title {
  font-size: 18px;
  margin: 0 0 4px;
}

.bno-room-card-subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.bno-room-card-meta {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.bno-room-card-features {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.bno-room-card-actions {
  margin-top: 12px;
}

.bno-room-card-actions .bno-button {
  padding: 10px 20px;
}

/* NYTT: Kart blir "kort" + sticky, ikke uendelig langt */
.bno-results-map {
  height: 560px;
  max-height: calc(100vh - 180px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  position: sticky;
  top: 24px;
}

/* --- Lightbox / popup for bilder --- */
.bno-lightbox {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.72);
  padding: 24px;
}

.bno-lightbox.bno-lightbox-open {
  display: flex;
}

.bno-lightbox-inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bno-lightbox-img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}

.bno-lightbox-caption {
  color: #fff;
  font-size: 14px;
  opacity: 0.9;
  text-align: center;
}

.bno-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-size: 20px;
  line-height: 40px;
}

.bno-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-size: 20px;
  line-height: 44px;
}

.bno-lightbox-prev { left: -10px; }
.bno-lightbox-next { right: -10px; }

.bno-lightbox-nav[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* --- NYTT: Kart-modal (stor kartvisning) --- */
.bno-map-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  background: rgba(0,0,0,0.55);
  padding: 18px;
}

.bno-map-modal.bno-map-modal-open {
  display: block;
}

.bno-map-modal-inner {
  width: min(1200px, 96vw);
  height: min(760px, 92vh);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.bno-map-modal-map {
  width: 100%;
  height: 100%;
}

.bno-map-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.95);
  color: #111;
  font-size: 20px;
  line-height: 42px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Responsiv */
@media (max-width: 1024px) {
  .bno-booking-search-form {
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 16px;
  }

  .bno-results-layout {
    grid-template-columns: 1fr;
    grid-row-gap: 18px;
  }

  /* På mobil/tablet: kart-kolonnen blir normal boks (ikke sticky) */
  .bno-results-map {
    position: relative;
    top: auto;
    height: 360px;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .bno-card-gallery-main img { height: 280px; }

  .bno-booking-search-form {
    grid-template-columns: 1fr;
  }

  .bno-lightbox {
    padding: 14px;
  }
  .bno-lightbox-prev { left: 6px; }
  .bno-lightbox-next { right: 6px; }
  .bno-lightbox-close { right: 6px; top: 6px; }

  .bno-map-modal {
    padding: 10px;
  }
}