.rr-resorts-v2 {
  --rr-cyan: #00c6ff;
  --rr-cyan-hover: #00a9d9;
  --rr-cyan-soft: #e8faff;
  --rr-cyan-line: #9beaff;
  --rr-navy: #0b1b2b;
  --rr-navy-hover: #142d44;
  --rr-text: #172b3d;
  --rr-muted: #5e6c78;
  --rr-line: #d9e3ea;
  --rr-soft: #f4f7f9;
  --rr-white: #fff;
  --rr-overlay: rgba(11, 27, 43, 0.72);
  --rr-sticky-offset: 16px;
  color: var(--rr-text);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0 0 32px;
  max-width: none;
  position: sticky;
  top: var(--rr-sticky-offset);
  width: 100%;
  z-index: 90;
}

.rr-resorts-v2 *,
.rr-resorts-v2 *::before,
.rr-resorts-v2 *::after {
  box-sizing: border-box;
}

.admin-bar .rr-resorts-v2 {
  --rr-sticky-offset: 48px;
}

.rr-resorts-v2__preview-note {
  background: var(--rr-cyan-soft);
  border: 1px solid var(--rr-cyan-line);
  border-radius: 9px;
  color: var(--rr-navy);
  display: table;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 6px 10px;
}

.rr-resorts-v2__toolbar {
  align-items: center;
  background: var(--rr-white);
  border: 1px solid var(--rr-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 27, 43, 0.09);
  display: grid;
  gap: 12px;
  grid-template-areas: "filters count sort finder compare";
  grid-template-columns: minmax(118px, 0.72fr) minmax(170px, 1fr) minmax(210px, 1.25fr) minmax(150px, 0.9fr) minmax(125px, 0.75fr);
  padding: 14px;
  width: 100%;
}

.rr-resorts-v2__count {
  align-items: center;
  color: var(--rr-muted);
  display: flex;
  font-size: 15px;
  gap: 0.35em;
  grid-area: count;
  justify-content: flex-start;
  line-height: 1.3;
  margin: 0;
  min-height: 48px;
  padding: 0 8px;
}

.rr-resorts-v2__count strong {
  color: var(--rr-navy);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.rr-resorts-v2__button,
.rr-resorts-v2__sort select,
.rr-resorts-v2 input {
  min-height: 48px;
}

.rr-resorts-v2__button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--rr-white);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 650;
  justify-content: center;
  line-height: 1.25;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.rr-resorts-v2__button:hover {
  color: var(--rr-white);
  transform: translateY(-1px);
}

.rr-resorts-v2__button--accent {
  background: var(--rr-cyan);
  color: var(--rr-navy);
  grid-area: filters;
}

.rr-resorts-v2__button--accent:hover,
.rr-resorts-v2__button--accent:focus-visible {
  background: var(--rr-cyan-hover);
  color: var(--rr-white);
}

.rr-resorts-v2__button-icon {
  display: block;
  flex: 0 0 16px !important;
  height: 16px !important;
  max-height: 16px !important;
  max-width: 16px !important;
  min-height: 16px;
  min-width: 16px;
  transition: transform 180ms ease;
  width: 16px !important;
}

.rr-resorts-v2__button--finder {
  background: linear-gradient(135deg, var(--rr-navy) 0%, #123b54 100%);
  border-color: rgba(0, 198, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  gap: 9px;
  grid-area: finder;
}

.rr-resorts-v2__button--finder:hover,
.rr-resorts-v2__button--finder:focus-visible {
  background: linear-gradient(135deg, #10263a 0%, #16506c 100%);
  border-color: rgba(0, 198, 255, 0.62);
  box-shadow: 0 6px 16px rgba(11, 27, 43, 0.14);
  color: var(--rr-white);
}

.rr-resorts-v2__button--finder:hover .rr-resorts-v2__button-icon,
.rr-resorts-v2__button--finder:focus-visible .rr-resorts-v2__button-icon {
  transform: rotate(10deg) scale(1.05);
}

.rr-resorts-v2__button--compare {
  background: var(--rr-cyan);
  border-color: var(--rr-cyan);
  color: var(--rr-navy);
  gap: 8px;
  grid-area: compare;
}

.rr-resorts-v2__button--compare:hover,
.rr-resorts-v2__button--compare:focus-visible {
  background: #33d2ff;
  border-color: #33d2ff;
  box-shadow: 0 6px 16px rgba(0, 198, 255, 0.18);
  color: var(--rr-navy);
}

.rr-resorts-v2__button--compare:hover .rr-resorts-v2__button-icon,
.rr-resorts-v2__button--compare:focus-visible .rr-resorts-v2__button-icon {
  transform: translateX(2px);
}

.rr-resorts-v2__button--secondary {
  background: var(--rr-soft);
  border-color: var(--rr-line);
  color: var(--rr-text);
}

.rr-resorts-v2__button--secondary:hover,
.rr-resorts-v2__button--secondary:focus-visible {
  background: #e8eef2;
  color: var(--rr-text);
}

.rr-resorts-v2__sort {
  display: block;
  grid-area: sort;
  min-width: 0;
  position: relative;
}

.rr-resorts-v2__sort::after {
  color: var(--rr-navy);
  content: "⌄";
  font-size: 18px;
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-56%);
}

.rr-resorts-v2__sort select,
.rr-resorts-v2 input {
  background: var(--rr-white);
  border: 1px solid #b9c7d1;
  border-radius: 11px;
  color: var(--rr-text);
  font: inherit;
  font-size: 14px;
  padding: 10px 38px 10px 13px;
}

.rr-resorts-v2__sort select {
  appearance: none;
  cursor: pointer;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.rr-resorts-v2__no-results {
  background: var(--rr-soft);
  border: 1px solid var(--rr-line);
  border-radius: 12px;
  color: var(--rr-text);
  margin: 22px 0 0;
  padding: 20px;
  text-align: center;
}

.rr-resorts-v2__sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.rr-resorts-v2__dialog {
  background: transparent;
  border: 0;
  max-height: min(860px, calc(100vh - 32px));
  max-width: 760px;
  overflow: visible;
  padding: 0;
  width: calc(100% - 32px);
}

.rr-resorts-v2__dialog::backdrop {
  background: var(--rr-overlay);
}

.rr-resorts-v2__dialog-panel {
  background: var(--rr-white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(11, 27, 43, 0.32);
  max-height: min(860px, calc(100vh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
}

.rr-resorts-v2__dialog-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--rr-line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 18px;
}

.rr-resorts-v2__dialog-heading {
  min-width: 0;
}

.rr-resorts-v2__dialog-header h2 {
  color: var(--rr-navy);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  margin: 0;
}

.rr-resorts-v2__dialog-intro {
  color: var(--rr-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.rr-resorts-v2__dialog-close {
  align-items: center;
  background: var(--rr-soft);
  border: 1px solid var(--rr-line);
  border-radius: 50%;
  color: var(--rr-navy);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 26px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.rr-resorts-v2__filter-form {
  display: grid;
  gap: 16px;
}

.rr-resorts-v2__fieldset {
  border: 1px solid var(--rr-line);
  border-radius: 14px;
  margin: 0;
  min-width: 0;
  padding: 16px;
}

.rr-resorts-v2__fieldset legend {
  color: var(--rr-navy);
  font-size: 15px;
  font-weight: 700;
  padding: 0 7px;
}

.rr-resorts-v2__countries {
  display: grid;
  gap: 6px 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rr-resorts-v2__country {
  align-items: center;
  border-radius: 8px;
  color: var(--rr-text);
  display: flex;
  font-size: 14px;
  gap: 9px;
  min-height: 44px;
  padding: 4px;
}

.rr-resorts-v2__country:hover {
  background: var(--rr-soft);
}

.rr-resorts-v2__country input {
  accent-color: var(--rr-cyan);
  flex: 0 0 22px;
  min-height: 22px;
  min-width: 22px;
}

.rr-resorts-v2__range {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rr-resorts-v2__range label {
  display: grid;
  gap: 6px;
}

.rr-resorts-v2__range label span {
  color: var(--rr-muted);
  font-size: 13px;
  font-weight: 600;
}

.rr-resorts-v2__range input {
  padding-right: 12px;
  width: 100%;
}

.rr-resorts-v2__form-actions {
  background: var(--rr-white);
  border-top: 1px solid var(--rr-line);
  bottom: -24px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1.2fr);
  justify-content: end;
  margin: 2px -24px -24px;
  padding: 16px 24px 24px;
  position: sticky;
}

.rr-resorts-v2__form-actions .rr-resorts-v2__button--accent {
  grid-area: auto;
}

.rr-resorts-v2 :focus-visible {
  box-shadow: 0 0 0 6px rgba(0, 198, 255, 0.38);
  outline: 3px solid var(--rr-navy);
  outline-offset: 3px;
}

.rr-resorts-v2-scroll-lock {
  overflow: hidden !important;
}

.rr-resorts-v2-enabled .resorts-grid [data-rr-resort-id][hidden],
.rr-resorts-v2-enabled .resorts-grid .e-loop-item[hidden] {
  display: none !important;
}

.rr-resorts-v2-admin-preview.rr-resorts-v2-preview-ready .elementor-element-e7fd6c4,
.rr-resorts-v2-archive-live.rr-resorts-v2-preview-ready .elementor-element-e7fd6c4 {
  display: none !important;
}

.rr-resorts-v2-archive-live .rr-resorts-v2 {
  position: static;
  top: auto;
}


.rr-resorts-v2__dialog-header h2:focus,
.rr-resorts-v2__dialog-header h2:focus-visible {
  box-shadow: none;
  outline: none;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .rr-resorts-v2__toolbar {
    gap: 9px;
    grid-template-areas:
      "count count count count"
      "filters sort finder compare";
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px;
  }

  .rr-resorts-v2__count {
    border-bottom: 1px solid var(--rr-line);
    font-size: 14px;
    justify-content: center;
    min-height: 38px;
    padding: 0 8px 10px;
  }

  .rr-resorts-v2__button,
  .rr-resorts-v2__sort select {
    font-size: 13px;
    min-height: 44px;
  }
}

@media (max-width: 767px) {
  .rr-resorts-v2 {
    margin-bottom: 22px;
    position: static;
    width: 100%;
  }

  .rr-resorts-v2__toolbar {
    gap: 7px;
    grid-template-areas:
      "count count"
      "filters sort"
      "finder compare";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 9px;
  }

  .rr-resorts-v2__count {
    font-size: 13px;
    justify-content: center;
    min-height: 30px;
    padding: 0 4px 2px;
  }

  .rr-resorts-v2__count strong {
    font-size: 16px;
  }

  .rr-resorts-v2__button,
  .rr-resorts-v2__sort select {
    font-size: 12.5px;
    min-height: 40px;
    padding-inline: 8px;
  }

  .rr-resorts-v2__button-icon {
    flex-basis: 15px !important;
    height: 15px !important;
    max-height: 15px !important;
    max-width: 15px !important;
    min-height: 15px;
    min-width: 15px;
    width: 15px !important;
  }

  .rr-resorts-v2__dialog {
    max-height: calc(100dvh - 40px);
    width: calc(100% - 40px);
  }

  .rr-resorts-v2__dialog-panel {
    border-radius: 18px;
    max-height: calc(100dvh - 40px);
    padding: 15px;
  }

  .rr-resorts-v2__dialog-header {
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 13px;
  }

  .rr-resorts-v2__dialog-header h2 {
    font-size: 23px;
  }

  .rr-resorts-v2__dialog-intro {
    font-size: 13px;
  }

  .rr-resorts-v2__countries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rr-resorts-v2__country {
    min-height: 40px;
  }

  .rr-resorts-v2__form-actions {
    bottom: -15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 2px -15px -15px;
    padding: 12px 15px 15px;
  }
}

@media (max-width: 374px) {
  .rr-resorts-v2__toolbar {
    gap: 8px;
    padding: 10px;
  }

  .rr-resorts-v2__button,
  .rr-resorts-v2__sort select {
    min-height: 46px;
    padding-inline: 8px;
  }

  .rr-resorts-v2__countries {
    grid-template-columns: 1fr;
  }

  .rr-resorts-v2__range {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .admin-bar .rr-resorts-v2 {
    --rr-sticky-offset: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rr-resorts-v2__button {
    transition: none;
  }
}
