/* RateHawk Date Picker */
.ratehawk-date-picker {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.ratehawk-date-picker__title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin: 0 0 12px 0;
}

.ratehawk-date-picker__inputs {
  display: flex;
  gap: 10px;
}

.ratehawk-date-picker__field {
  flex: 1;
}

.ratehawk-date-picker__label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5a5a5a;
  margin-bottom: 4px;
}

.ratehawk-date-picker__input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #333;
  cursor: pointer;
  box-sizing: border-box;
}

.ratehawk-date-picker__input:focus {
  outline: 2px solid #169EAE;
  outline-offset: -1px;
  border-color: #169EAE;
}

.ratehawk-date-picker__input.PAactive {
  border-color: #169EAE;
}

.ratehawk-date-picker__calendar {
  margin-top: 12px;
}

.ratehawk-date-picker__calendar.PACalendar {
  position: static;
  background: #fff;
  border-radius: 3px;
  box-shadow: none;
  padding: 0;
}

/* PACalendar month nav (RateHawk column only) */
.ratehawk-sidebar-col .PACalendar header.PAheader .PAHprev,
.ratehawk-sidebar-col .PACalendar header.PAheader .PAHnext {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
}

.ratehawk-date-picker__nights {
  margin-top: 8px;
  font-size: 12px;
  color: #0e7490;
  font-weight: 600;
  min-height: 18px;
}

@media (max-width: 480px) {
  .ratehawk-date-picker__inputs {
    flex-direction: column;
    gap: 8px;
  }
}

/* ── Guest Selector ── */

.ratehawk-guest-selector {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.ratehawk-guest-selector__title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
  margin: 0 0 12px;
}

.ratehawk-guest-selector__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.ratehawk-guest-selector__row-label {
  font-size: 14px;
  color: #333;
}

.ratehawk-guest-selector__row-hint {
  display: block;
  font-size: 11px;
  color: #5a5a5a;
  font-weight: 400;
}

.ratehawk-guest-selector__stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ratehawk-guest-selector__btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  padding: 0;
  transition: border-color 0.15s, color 0.15s;
}

.ratehawk-guest-selector__btn:hover:not(:disabled) {
  border-color: #169EAE;
  color: #169EAE;
}

.ratehawk-guest-selector__btn:focus {
  outline: 2px solid #169EAE;
  outline-offset: -1px;
}

.ratehawk-guest-selector__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ratehawk-guest-selector__count {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.ratehawk-guest-selector__ages {
  padding: 8px 0 4px;
}

.ratehawk-guest-selector__age-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  gap: 8px;
}

.ratehawk-guest-selector__age-row label {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
}

.ratehawk-guest-selector__age-select {
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 4px 8px;
  color: #333;
  background: #fff;
  min-width: 80px;
}

.ratehawk-guest-selector__age-select:focus {
  outline: 2px solid #169EAE;
  outline-offset: -1px;
  border-color: #169EAE;
}

.ratehawk-guest-selector__summary {
  margin-top: 8px;
  font-size: 12px;
  color: #0e7490;
  font-weight: 600;
  min-height: 18px;
}

.ratehawk-guest-selector__error {
  font-size: 11px;
  color: #d32f2f;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .ratehawk-guest-selector__age-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ratehawk-guest-selector__age-select {
    width: 100%;
  }
}

/* =============================================
   Rate Display Component
   ============================================= */

.ratehawk-rate-display {
  padding: 16px 0;
  border-top: 1px solid #eee;
  margin: 0 20px;
}

.ratehawk-rate-display__search-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: #117a8a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.ratehawk-rate-display__search-btn:hover:not(:disabled) {
  background: #127f8c;
}

.ratehawk-rate-display__search-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.ratehawk-rate-display__search-hint {
  text-align: center;
  font-size: 12px;
  color: #636363;
  margin: 8px 0 0;
}

/* Loading */
.ratehawk-rate-display__loading {
  text-align: center;
  padding: 24px 0;
}

.ratehawk-rate-display__loading p {
  font-size: 13px;
  color: #666;
  margin: 12px 0 0;
}

.ratehawk-rate-display__spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #eee;
  border-top-color: #169EAE;
  border-radius: 50%;
  animation: rh-spin 0.8s linear infinite;
}

@keyframes rh-spin {
  to { transform: rotate(360deg); }
}

/* Error */
.ratehawk-rate-display__error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 12px;
  margin-top: 12px;
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ratehawk-rate-display__error:not([hidden]) {
  display: flex;
}

.ratehawk-rate-display__error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.ratehawk-rate-display__error-msg {
  font-size: 13px;
  color: #991b1b;
  flex: 1;
}

.ratehawk-rate-display__retry-btn {
  background: none;
  border: 1px solid #dc2626;
  color: #dc2626;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}

.ratehawk-rate-display__retry-btn:hover {
  background: #dc2626;
  color: #fff;
}

/* Controls */
.ratehawk-rate-display__controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 8px;
  gap: 8px;
}

.ratehawk-rate-display__controls:not([hidden]) {
  display: flex;
}

.ratehawk-rate-display__count {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

.ratehawk-rate-display__sort {
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 4px 8px;
  color: #333;
  background: #fff;
}

.ratehawk-rate-display__sort:focus {
  outline: 2px solid #169EAE;
  outline-offset: -1px;
  border-color: #169EAE;
}

/* Rate card */
.ratehawk-rate-display__card {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.ratehawk-rate-display__card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ratehawk-rate-display__card-header {
  background: #f7f7f7;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ratehawk-rate-display__room-name {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ratehawk-rate-display__allotment {
  font-size: 11px;
  color: #dc2626;
  font-weight: 600;
  white-space: nowrap;
}

.ratehawk-rate-display__card-body {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ratehawk-rate-display__meal {
  font-size: 12px;
  color: #555;
}

.ratehawk-rate-display__cancellation {
  font-size: 11px;
  color: #999;
}

.ratehawk-rate-display__cancellation.--free {
  color: #0d7a32;
  font-weight: 600;
}

.ratehawk-rate-display__cancellation.--nonrefundable {
  color: #999;
}

.ratehawk-rate-display__card-footer {
  padding: 10px 12px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ratehawk-rate-display__pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ratehawk-rate-display__price-per-night {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.ratehawk-rate-display__price-per-night small {
  font-size: 11px;
  font-weight: 400;
  color: #999;
}

.ratehawk-rate-display__price-total {
  font-size: 11px;
  color: #999;
}

.ratehawk-rate-display__book-btn {
  padding: 8px 16px;
  background: #117a8a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.ratehawk-rate-display__book-btn:hover {
  background: #127f8c;
}

.ratehawk-rate-display__book-btn:disabled {
  background: #a0c4c8;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Tax/fee breakdown toggle */
.ratehawk-rate-display__breakdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 0;
  margin-top: 2px;
  color: #169EAE;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.ratehawk-rate-display__breakdown-toggle:hover {
  color: #127f8c;
  text-decoration: underline;
}

.ratehawk-rate-display__breakdown-arrow {
  display: inline-block;
  font-size: 10px;
  transition: transform 0.2s ease;
}

.ratehawk-rate-display__breakdown-arrow.--open {
  transform: rotate(180deg);
}

/* Tax/fee breakdown panel */
.ratehawk-rate-display__breakdown {
  background: #fafafa;
  padding: 10px 12px;
  border-top: 1px solid #eee;
}

.ratehawk-rate-display__breakdown[hidden] {
  display: none;
}

.ratehawk-rate-display__breakdown-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: #555;
  padding: 2px 0;
}

.ratehawk-rate-display__breakdown-line.--extra {
  color: #b45309;
}

.ratehawk-rate-display__breakdown-line.--total {
  font-weight: 700;
  color: #333;
  font-size: 13px;
  padding-top: 4px;
}

.ratehawk-rate-display__breakdown-incl {
  font-size: 10px;
  color: #999;
  margin-left: 4px;
}

.ratehawk-rate-display__breakdown-extra {
  font-size: 10px;
  color: #b45309;
  margin-left: 4px;
}

.ratehawk-rate-display__breakdown-divider {
  border: none;
  border-top: 1px dashed #ddd;
  margin: 6px 0;
}

/* Cancellation policy toggle */
.ratehawk-rate-display__cancellation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 0;
  margin-top: 2px;
  color: #169EAE;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.ratehawk-rate-display__cancellation-toggle:hover {
  color: #127f8c;
  text-decoration: underline;
}

.ratehawk-rate-display__cancellation-arrow {
  display: inline-block;
  font-size: 10px;
  transition: transform 0.2s ease;
}

.ratehawk-rate-display__cancellation-arrow.--open {
  transform: rotate(180deg);
}

/* Cancellation policy details panel */
.ratehawk-rate-display__cancellation-details {
  background: #f0fafb;
  padding: 10px 12px;
  border-top: 1px solid #d4eef1;
}

.ratehawk-rate-display__cancellation-details[hidden] {
  display: none;
}

.ratehawk-rate-display__cancellation-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: #555;
  padding: 2px 0;
}

.ratehawk-rate-display__cancellation-line.--free {
  color: #27ae60;
}

/* Booking success cancellation section */
.ratehawk-booking-success__cancellation {
  margin-top: 16px;
  text-align: left;
  border: 1px solid #d4eef1;
  border-radius: 6px;
  padding: 14px;
  background: #f0fafb;
}

.ratehawk-booking-success__cancellation[hidden] {
  display: none;
}

.ratehawk-booking-success__cancellation-title {
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 8px;
}

.ratehawk-booking-success__cancellation-summary {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.ratehawk-booking-success__cancellation-deadline {
  font-size: 12px;
  color: #27ae60;
  margin-bottom: 4px;
}

.ratehawk-booking-success__cancellation-penalty {
  font-size: 12px;
  color: #555;
  margin-bottom: 2px;
}

/* Prebook overlay */
.ratehawk-rate-display__prebook-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ratehawk-rate-display__prebook-overlay[hidden] {
  display: none;
}

.ratehawk-rate-display__prebook-modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ratehawk-rate-display__prebook-modal h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #333;
}

.ratehawk-rate-display__prebook-modal p {
  font-size: 13px;
  color: #666;
  margin: 0 0 16px;
}

.ratehawk-rate-display__prebook-loading {
  text-align: center;
  padding: 16px 0;
}

.ratehawk-rate-display__prebook-prices {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.ratehawk-rate-display__prebook-price {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
}

.ratehawk-rate-display__prebook-price.--old {
  background: #f7f7f7;
}

.ratehawk-rate-display__prebook-price.--new {
  background: #fef3c7;
}

.ratehawk-rate-display__prebook-label {
  display: block;
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.ratehawk-rate-display__prebook-amount {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.ratehawk-rate-display__prebook-actions {
  display: flex;
  gap: 10px;
}

.ratehawk-rate-display__prebook-accept {
  flex: 1;
  padding: 10px 16px;
  background: #117a8a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.ratehawk-rate-display__prebook-accept:hover {
  background: #127f8c;
}

.ratehawk-rate-display__prebook-reject {
  flex: 1;
  padding: 10px 16px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ratehawk-rate-display__prebook-reject:hover {
  border-color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .ratehawk-rate-display__card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ratehawk-rate-display__book-btn {
    text-align: center;
  }

  .ratehawk-rate-display__controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .ratehawk-rate-display__sort {
    width: 100%;
  }

  .ratehawk-rate-display__breakdown-line {
    font-size: 11px;
  }

  .ratehawk-rate-display__breakdown-line.--total {
    font-size: 12px;
  }

  .ratehawk-rate-display__prebook-prices {
    flex-direction: column;
    gap: 8px;
  }

  .ratehawk-rate-display__prebook-actions {
    flex-direction: column;
  }

  .ratehawk-rate-display__prebook-badge {
    font-size: 10px;
  }
}

/* ── Prebook: direction-aware (increase / decrease) ────────── */

.ratehawk-rate-display__prebook-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
}

.ratehawk-rate-display__prebook-icon svg {
  width: 24px;
  height: 24px;
  display: none;
}

/* Increase direction */
.ratehawk-rate-display__prebook-content.--increase .ratehawk-rate-display__prebook-icon {
  background: #fef3c7;
}

.ratehawk-rate-display__prebook-content.--increase .ratehawk-rate-display__prebook-icon-increase {
  display: block;
  color: #d97706;
}

.ratehawk-rate-display__prebook-content.--increase #rh-prebook-heading {
  color: #92400e;
}

/* Decrease direction */
.ratehawk-rate-display__prebook-content.--decrease .ratehawk-rate-display__prebook-icon {
  background: #dcfce7;
}

.ratehawk-rate-display__prebook-content.--decrease .ratehawk-rate-display__prebook-icon-decrease {
  display: block;
  color: #16a34a;
}

.ratehawk-rate-display__prebook-content.--decrease #rh-prebook-heading {
  color: #166534;
}

/* New-price box variants */
.ratehawk-rate-display__prebook-price.--new.--new-increase {
  background: #fef3c7;
}

.ratehawk-rate-display__prebook-price.--new.--new-decrease {
  background: #dcfce7;
}

/* Percentage badge pill */
.ratehawk-rate-display__prebook-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
  line-height: 1.4;
}

.ratehawk-rate-display__prebook-badge.--badge-increase {
  background: #fde68a;
  color: #92400e;
}

.ratehawk-rate-display__prebook-badge.--badge-decrease {
  background: #bbf7d0;
  color: #166534;
}

/* Savings line */
.ratehawk-rate-display__prebook-savings {
  background: #f0fdf4;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: #166534;
  text-align: center;
  margin-bottom: 16px;
}

/* Accept button green variant (for decrease) */
.ratehawk-rate-display__prebook-accept.--accept-decrease {
  background: #16a34a;
}

.ratehawk-rate-display__prebook-accept.--accept-decrease:hover {
  background: #15803d;
}

/* ── No-availability panel ─────────────────────────────────── */

.ratehawk-rate-display__no-avail {
  display: none;
  background: #f0fafb;
  border: 1px solid #b2e0e6;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  margin-top: 12px;
}

.ratehawk-rate-display__no-avail[aria-hidden="false"] {
  display: block;
}

.ratehawk-rate-display__no-avail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: #e0f4f6;
  border-radius: 50%;
}

.ratehawk-rate-display__no-avail-icon svg {
  width: 24px;
  height: 24px;
  stroke: #2a9d8f;
  fill: none;
}

.ratehawk-rate-display__no-avail-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.ratehawk-rate-display__no-avail-hint {
  font-size: 13px;
  color: #555;
  margin: 0 0 16px;
  line-height: 1.45;
}

.ratehawk-rate-display__no-avail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ratehawk-rate-display__no-avail-enquire {
  display: inline-block;
  width: 100%;
  padding: 10px 16px;
  background: #2a9d8f;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.ratehawk-rate-display__no-avail-enquire:hover {
  background: #238578;
}

.ratehawk-rate-display__no-avail-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.ratehawk-rate-display__no-avail-whatsapp:hover {
  background: #1fb855;
  color: #fff;
  text-decoration: none;
}

.ratehawk-rate-display__no-avail-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ── Enquiry modal overlay ─────────────────────────────────── */

.ratehawk-rate-display__enquiry-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
}

.ratehawk-rate-display__enquiry-overlay[aria-hidden="false"] {
  display: flex;
}

.ratehawk-rate-display__enquiry-modal {
  position: relative;
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ratehawk-rate-display__enquiry-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: border-color 0.2s, color 0.2s;
}

.ratehawk-rate-display__enquiry-close:hover {
  border-color: #999;
  color: #333;
}

.ratehawk-rate-display__enquiry-modal h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a1a1a;
}

.ratehawk-rate-display__enquiry-modal .ratehawk-rate-display__enquiry-subtext {
  font-size: 13px;
  color: #666;
  margin: 0 0 20px;
}

/* Enquiry modal: keep Gravity Forms using theme/global styles (no teal overrides) */
.ratehawk-rate-display__enquiry-modal .gform_wrapper {
  margin: 0 !important;
}

/* ── Mobile adjustments ─────────────────────────────────── */

@media (max-width: 768px) {
  .ratehawk-rate-display__enquiry-modal {
    width: 95%;
    padding: 20px 16px;
  }

  .ratehawk-rate-display__no-avail {
    padding: 20px 12px;
  }
}

/* ── Inline enquiry: same visual language as theme sidebar + GF12 (sidebar_calculator) ─ */

.ratehawk-enquiry-inline {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.ratehawk-enquiry-inline[hidden] {
  display: none;
}

.ratehawk-enquiry-inline__header {
  text-align: left;
  padding: 8px 0 4px;
}

.ratehawk-enquiry-inline__icon {
  display: none;
}

.ratehawk-enquiry-inline__header h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #333;
}

.ratehawk-enquiry-inline__header p {
  font-size: 13px;
  color: #666;
  margin: 0 0 8px;
  line-height: 1.4;
}

.ratehawk-enquiry-inline__form {
  padding: 0;
}

.ratehawk-enquiry-inline__form .gform_wrapper {
  margin: 0 !important;
}

/* Status hints (no nested “card”); subtle accent only when messaging matters */
.ratehawk-enquiry-inline[data-context="no-availability"] .ratehawk-enquiry-inline__header {
  border-left: 3px solid #f0c040;
  padding-left: 10px;
}

.ratehawk-enquiry-inline[data-context="api-error"] .ratehawk-enquiry-inline__header,
.ratehawk-enquiry-inline[data-context="permanent-error"] .ratehawk-enquiry-inline__header {
  border-left: 3px solid #e07050;
  padding-left: 10px;
}

/* ── GF12 in RateHawk column only (theme uses 50% / 70–30 inline-block globally) ─ */
.ratehawk-sidebar-col .gform_wrapper ul.gform_fields > li.gfield,
.ratehawk-sidebar-col .gform_wrapper ul li#field_12_2,
.ratehawk-sidebar-col .gform_wrapper ul li#field_12_3,
.ratehawk-sidebar-col .gform_wrapper ul li#field_12_6,
.ratehawk-sidebar-col .gform_wrapper ul li#field_12_8,
.ratehawk-sidebar-col .gform_wrapper ul li#field_12_9,
.ratehawk-sidebar-col .gform_wrapper ul li#field_12_10,
.ratehawk-sidebar-col .gform_wrapper ul li#field_12_11 {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  box-sizing: border-box;
}

.ratehawk-sidebar-col .gform_wrapper ul.gform_fields li.gfield {
  padding-right: 0 !important;
}

.ratehawk-sidebar-col .gform_wrapper .ginput_container,
.ratehawk-sidebar-col .gform_wrapper .ginput_container_text,
.ratehawk-sidebar-col .gform_wrapper .ginput_container_email,
.ratehawk-sidebar-col .gform_wrapper .ginput_container_phone,
.ratehawk-sidebar-col .gform_wrapper .ginput_container_select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.ratehawk-sidebar-col .gform_wrapper input[type="text"],
.ratehawk-sidebar-col .gform_wrapper input[type="email"],
.ratehawk-sidebar-col .gform_wrapper input[type="tel"],
.ratehawk-sidebar-col .gform_wrapper input[type="number"],
.ratehawk-sidebar-col .gform_wrapper select,
.ratehawk-sidebar-col .gform_wrapper textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.ratehawk-sidebar-col .gform_wrapper .chosen-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.ratehawk-sidebar-col .sidebar .gform_wrapper .gform_footer {
  margin-top: 1.25rem !important;
  clear: both;
}

.ratehawk-sidebar-col .sidebar .gform_wrapper .gform_footer .gform_button.button {
  width: 100% !important;
  box-sizing: border-box;
}

/* ── Guest Details Form ─────────────────────────────────── */

/* =============================================
   Guest Details Form
   ============================================= */

.ratehawk-guest-form {
  padding: 15px 20px;
}

/* ── Booking summary card ── */

.ratehawk-guest-form__summary {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.ratehawk-guest-form__summary-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin: 0;
  padding: 10px 14px;
  background: #f7f7f7;
  border-bottom: 1px solid #e5e5e5;
}

.ratehawk-guest-form__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
  padding: 8px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.ratehawk-guest-form__summary-row:last-child {
  border-bottom: none;
}

.ratehawk-guest-form__summary-row strong {
  color: #333;
  font-weight: 600;
}

.ratehawk-guest-form__summary-row.--total {
  background: #f7f7f7;
  padding: 10px 14px;
}

.ratehawk-guest-form__summary-row.--total strong {
  font-size: 16px;
  font-weight: 700;
  color: #0e7490;
}

/* ── Section title ── */

.ratehawk-guest-form__section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin: 0 0 14px;
}

/* ── Form fields ── */

.ratehawk-guest-form__form fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.ratehawk-guest-form__row {
  display: flex;
  gap: 10px;
}

.ratehawk-guest-form__row > .ratehawk-guest-form__field {
  flex: 1;
  min-width: 0;
}

.ratehawk-guest-form__field {
  margin-bottom: 14px;
}

.ratehawk-guest-form__field label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #5a5a5a;
  margin-bottom: 5px;
}

.ratehawk-guest-form__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #636363;
}

.ratehawk-guest-form__field input[type="text"],
.ratehawk-guest-form__field input[type="email"],
.ratehawk-guest-form__field input[type="tel"],
.ratehawk-guest-form__field textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ratehawk-guest-form__field input:focus,
.ratehawk-guest-form__field textarea:focus {
  outline: none;
  border-color: #169EAE;
  box-shadow: 0 0 0 2px rgba(22, 158, 174, 0.15);
}

.ratehawk-guest-form__field input.--invalid,
.ratehawk-guest-form__field textarea.--invalid {
  border-color: #d32f2f;
}

.ratehawk-guest-form__field input.--invalid:focus {
  border-color: #d32f2f;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15);
}

.ratehawk-guest-form__error {
  display: block;
  font-size: 11px;
  color: #d32f2f;
  min-height: 16px;
  margin-top: 3px;
}

/* ── Phone group ── */

.ratehawk-guest-form__phone-group {
  display: flex;
  gap: 6px;
}

.ratehawk-guest-form__phone-code {
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 9px 6px;
  color: #333;
  background: #fff;
  min-width: 120px;
  max-width: 160px;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ratehawk-guest-form__phone-code:focus {
  outline: none;
  border-color: #169EAE;
  box-shadow: 0 0 0 2px rgba(22, 158, 174, 0.15);
}

.ratehawk-guest-form__phone-group input[type="tel"] {
  flex: 1;
  min-width: 0;
}

/* ── Textarea ── */

.ratehawk-guest-form__field textarea {
  resize: vertical;
  min-height: 60px;
}

/* ── Action buttons ── */

.ratehawk-guest-form__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.ratehawk-guest-form__submit {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: #117a8a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
}

.ratehawk-guest-form__submit:hover {
  background: #127f8c;
}

.ratehawk-guest-form__submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.ratehawk-guest-form__back {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-align: center;
}

.ratehawk-guest-form__back:hover {
  border-color: #169EAE;
  color: #169EAE;
}

/* ── Guest form mobile ────────────────────────────────── */

@media (max-width: 480px) {
  .ratehawk-guest-form__row {
    flex-direction: column;
    gap: 0;
  }

  .ratehawk-guest-form__phone-code {
    min-width: 90px;
    max-width: 110px;
    font-size: 12px;
  }
}

/* ── Booking form error ─────────────────────────────── */

/* ── Session countdown warning ── */

.ratehawk-guest-form__countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #fef9e7;
  border: 1px solid #f0d87e;
  border-radius: 6px;
  color: #7d6608;
  font-size: 13px;
  line-height: 1.4;
  animation: rh-countdown-fadein 0.3s ease;
}

.ratehawk-guest-form__countdown[hidden] {
  display: none;
}

.ratehawk-guest-form__countdown svg {
  flex-shrink: 0;
  color: #b7950b;
}

.ratehawk-guest-form__countdown strong {
  font-variant-numeric: tabular-nums;
}

.ratehawk-guest-form__countdown.--urgent {
  background: #fdf0ef;
  border-color: #f5c6cb;
  color: #c0392b;
}

.ratehawk-guest-form__countdown.--urgent svg {
  color: #c0392b;
}

@keyframes rh-countdown-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ratehawk-guest-form__booking-error {
  color: #c0392b;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fdf0ef;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}

/* ── Payment Form ─────────────────────────────────────── */

.ratehawk-payment-form__summary {
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 18px;
}

.ratehawk-payment-form__summary-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ratehawk-payment-form__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: #555;
}

.ratehawk-payment-form__summary-row.--total {
  border-top: 1px solid #ddd;
  margin-top: 6px;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.ratehawk-payment-form__countdown[hidden] {
  display: none;
}

.ratehawk-payment-form__countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #fef9e7;
  border: 1px solid #f0d87e;
  border-radius: 6px;
  color: #7d6608;
  font-size: 13px;
  line-height: 1.4;
  animation: rh-countdown-fadein 0.3s ease;
}

.ratehawk-payment-form__countdown svg {
  flex-shrink: 0;
  color: #b7950b;
}

.ratehawk-payment-form__countdown strong {
  font-variant-numeric: tabular-nums;
}

.ratehawk-payment-form__countdown.--urgent {
  background: #fdf0ef;
  border-color: #f5c6cb;
  color: #c0392b;
}

.ratehawk-payment-form__countdown.--urgent svg {
  color: #c0392b;
}

/* ── Secure header ── */

.ratehawk-payment-form__secure-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.ratehawk-payment-form__secure-header svg {
  color: #169EAE;
  flex-shrink: 0;
}

.ratehawk-payment-form__section-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

/* ── Form fields ── */

.ratehawk-payment-form__field {
  margin-bottom: 14px;
}

.ratehawk-payment-form__field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5a5a5a;
  margin-bottom: 5px;
}

.ratehawk-payment-form__field input {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ratehawk-payment-form__field input:focus {
  outline: none;
  border-color: #169EAE;
  box-shadow: 0 0 0 2px rgba(22, 158, 174, 0.15);
}

.ratehawk-payment-form__field input.--invalid {
  border-color: #d32f2f;
}

.ratehawk-payment-form__error {
  display: block;
  font-size: 12px;
  color: #d32f2f;
  margin-top: 4px;
  min-height: 0;
}

/* ── Card number with brand indicator ── */

.ratehawk-payment-form__card-input-wrap {
  position: relative;
}

.ratehawk-payment-form__card-input-wrap input {
  padding-right: 70px;
}

.ratehawk-payment-form__card-brand {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  pointer-events: none;
}

/* ── Expiry + CVV side-by-side row ── */

.ratehawk-payment-form__row {
  display: flex;
  gap: 12px;
}

.ratehawk-payment-form__row .ratehawk-payment-form__field {
  flex: 1;
  min-width: 0;
}

/* ── Secure badge ── */

.ratehawk-payment-form__secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #888;
  margin-bottom: 16px;
}

.ratehawk-payment-form__secure-badge svg {
  color: #169EAE;
  flex-shrink: 0;
}

/* ── Action buttons ── */

.ratehawk-payment-form__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.ratehawk-payment-form__submit {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: #117a8a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
}

.ratehawk-payment-form__submit:hover {
  background: #127f8c;
}

.ratehawk-payment-form__submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.ratehawk-payment-form__back {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-align: center;
}

.ratehawk-payment-form__back:hover {
  border-color: #169EAE;
  color: #169EAE;
}

.ratehawk-payment-form__tokenize-error {
  color: #c0392b;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fdf0ef;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}

/* ── Booking finishing overlay ────────────────────────── */

.ratehawk-booking-finishing {
  text-align: center;
  padding: 32px 16px;
}

.ratehawk-booking-finishing__spinner {
  margin: 0 auto 16px;
}

.ratehawk-booking-finishing__title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 8px;
}

.ratehawk-booking-finishing__desc {
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.4;
  margin: 0 0 16px;
}

.ratehawk-booking-finishing__error {
  margin-top: 16px;
  padding: 12px;
  background: #fdf0ef;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  text-align: center;
}

.ratehawk-booking-finishing__error p {
  color: #c0392b;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.ratehawk-booking-finishing__retry {
  display: inline-block;
  padding: 8px 20px;
  background: #117a8a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ratehawk-booking-finishing__retry:hover {
  background: #137f8c;
}

/* ── Booking success view ────────────────────────────── */

.ratehawk-booking-success {
  text-align: center;
  padding: 32px 16px;
}

.ratehawk-booking-success__icon {
  margin: 0 auto 12px;
}

.ratehawk-booking-success__title {
  font-size: 18px;
  font-weight: 700;
  color: #27ae60;
  margin: 0 0 6px;
}

.ratehawk-booking-success__subtitle {
  font-size: 13px;
  color: #7f8c8d;
  margin: 0 0 20px;
}

.ratehawk-booking-success__details {
  text-align: left;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}

.ratehawk-booking-success__detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
}

.ratehawk-booking-success__detail:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.ratehawk-booking-success__label {
  color: #7f8c8d;
  font-weight: 500;
}

.ratehawk-booking-success__value {
  color: #2c3e50;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

/* ── Payment form mobile ─────────────────────────────── */

@media (max-width: 480px) {
  .ratehawk-payment-form__row {
    flex-direction: column;
    gap: 0;
  }
}

/* ── RateHawk Mobile / Responsive ──────────────────────── */

/* Hide old mobile fallback for RateHawk properties (double-class beats Bootstrap visible-xs) */
.mobile_pdp_info.rh-mobile-hidden {
  display: none !important;
}

/* ── Sidebar column layout (mobile) ────────────────────── */
@media (max-width: 767px) {
  .ratehawk-sidebar-col {
    width: 100%;
    float: none;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 20px;
  }

  /* Touch targets: guest stepper buttons */
  .ratehawk-guest-selector__btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 20px;
  }

  /* Touch targets: calendar nav arrows (RateHawk column only) */
  .ratehawk-sidebar-col .PAHprev,
  .ratehawk-sidebar-col .PAHnext {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none;
  }

  /* Touch targets: calendar day cells */
  .PAmonth span[data-value] {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Touch targets: form buttons */
  .ratehawk-sidebar-col .btn,
  .ratehawk-rate-display__search-btn,
  .ratehawk-rate-display__prebook-accept,
  .ratehawk-rate-display__prebook-reject,
  .ratehawk-guest-form__submit,
  .ratehawk-guest-form__back,
  .ratehawk-payment-form__submit,
  .ratehawk-payment-form__back {
    min-height: 44px;
    font-size: 16px;
  }

  /* Calendar: full width, no overflow */
  .PACalendar {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .PAmonth {
    width: 100%;
  }

  .PAweek span {
    font-size: 13px;
  }

  /* Form inputs: prevent iOS auto-zoom */
  .ratehawk-sidebar-col input,
  .ratehawk-sidebar-col select,
  .ratehawk-sidebar-col textarea,
  .ratehawk-payment-form input,
  .ratehawk-payment-form select {
    font-size: 16px !important;
    min-height: 44px;
    padding: 8px 12px;
  }

  /* Overlays / modals */
  .ratehawk-rate-display__prebook-overlay,
  .ratehawk-booking-finishing,
  .ratehawk-booking-success {
    max-width: 95vw;
    width: 95vw;
    padding: 16px;
    box-sizing: border-box;
  }

  .ratehawk-rate-display__prebook-overlay .btn {
    width: 100%;
    margin-bottom: 8px;
  }

  /* Overflow prevention */
  .ratehawk-date-picker,
  .ratehawk-guest-selector,
  .ratehawk-rate-display,
  .ratehawk-rate-display__prebook-overlay,
  .ratehawk-payment-form,
  .ratehawk-booking-finishing,
  .ratehawk-booking-success,
  .sidebar,
  .propertysingle-sidebar {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
}

/* ── Rate cards: small phones ──────────────────────────── */
@media (max-width: 480px) {
  .ratehawk-rate-card__book-btn {
    width: 100%;
    margin-top: 8px;
  }

  .ratehawk-rate-card__header {
    flex-wrap: wrap;
  }

  .ratehawk-rate-card__name {
    width: 100%;
    margin-bottom: 4px;
  }
}

/* ── PDP: never pin RateHawk sidebar (theme main.js adds .sticky to .propertysingle-sidebar) ─ */
@media (min-width: 768px) {
  .ratehawk-sidebar-col .propertysingle-sidebar,
  .ratehawk-sidebar-col .propertysingle-sidebar.sticky,
  .ratehawk-sidebar-col .propertysingle-sidebar.bottomed {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
  }
}
