:root {
  --cb-bg: #fff;
  --cb-text: #1f2937;
  --cb-muted: #6b7280;
  --cb-border: #e5e7eb;
  --cb-primary: #174261;
  --cb-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius: 16px
}

.popup-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999999;
}

.cb-overlay.open {
  display: flex;
}

.cb-dialog {
  width: 100%;
  max-width: 720px;
  /* background: var(--cb-bg); */
  /* background:transparent rgba(255,255,255,0.1); */
  background: rgb(255 255 255 / 66%);
  backdrop-filter: blur(70px);

  color: var(--cb-text);
  border-radius: var(--radius);
  box-shadow: var(--cb-shadow);
  padding: 24px 24px 28px;
  position: relative;
}

.cb-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--cb-border);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

#cb-title {
  margin: 4px 0 2px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.cb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.cb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cb-field span {
  font-weight: 600;
  font-size: 14px;
}

.cb-field input,
.cb-field select,
.cb-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--cb-border);
  outline: none;
  font-size: 14px;
  background: #fff;
}

.cb-field input:focus,
.cb-field select:focus,
.cb-field textarea:focus {
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 3px rgba(23, 66, 97, 0.1);
}

.cb-span-2 {
  grid-column: span 2;
}

.cb-check {
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.cb-check input {
  width: 16px;
  height: 16px;
}

.cb-submit {
  margin-top: 10px;
  width: 160px;
  height: 44px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--cb-primary);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cb-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.cb-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-right-color: transparent;
  display: none;
  animation: cb-spin 0.8s linear infinite;
}

.cb-submit.loading .cb-spinner {
  display: inline-block;
}

.cb-submit.loading .cb-submit-text {
  opacity: 0.8;
}

/* .cb-status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 14px;
} */

.cb-status.ok {
  color: #065f46;
}

.cb-status.err {
  color: #991b1b;
}

.cb-error {
  color: #b91c1c;
  min-height: 16px;
  font-size: 12px;
}

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


@media (max-width: 768px) {
  .cb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "name name"
      "email phone"
      "location room"
      "message message"
      "human human";
    gap: 14px 16px;
  }

  .cb-name {
    grid-area: name;
    grid-column: 1 / span 2;
  }

  .cb-email {
    grid-area: email;
  }

  .cb-phone {
    grid-area: phone;
  }

  .cb-location {
    grid-area: location;
  }

  .cb-roomType {
    grid-area: room;
  }

  .cb-message {
    grid-area: message;
    grid-column: 1 / span 2;
  }

  .cb-human {
    grid-area: human;
    grid-column: 1 / span 2;
  }

}

@media (max-width: 768px) {
  .cb-grid {
    display: grid;
    grid-template-columns:  1fr;
    grid-template-areas:
      "name name"
      "email phone"
      "location room"
      "message message"
      "human human";
    gap: 14px 16px;
  }

  /* Full name takes entire row */
  .cb-name {
    grid-area: name !important;
    grid-column: 1 / -1 !important; /* force full row */
  }

  /* Email left, Phone right */
  .cb-email {
    grid-area: email !important;
  }
  .cb-phone {
    grid-area: phone !important;
  }

  /* Location left, Room Type right */
  .cb-location {
    grid-area: location !important;
  }
  .cb-roomType {
    grid-area: room !important;
  }

  /* Special Request full row */
  .cb-message {
    grid-area: message !important;
    grid-column: 1 / -1 !important; /* force full row */
  }

  /* Human check full row */
  .cb-human {
    grid-area: human !important;
    grid-column: 1 / -1 !important;
  }

  /* Inputs mobile friendly */
  .cb-field input,
  .cb-field select,
  .cb-field textarea {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
  }

  /* Submit button full width */
  .cb-submit {
    width: 100%;
    height: 48px;
    font-size: 15px;
    border-radius: 30px;
    margin-top: 20px;
  }
}


.results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.result-item:hover {
  background: #f7f9fc;
}

.result-thumb {
  width: 50px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.result-title {
  font-size: 14px;
  font-weight: 600;
}

.result-meta {
  font-size: 12px;
  color: #555;
}

/* property cart section */

:root {
  --gap-lg: 24px;
  --gap-md: 24px;
  --gap-sm: 16px;
  --gap-xs: 8px;
  --arrow-btn-width: 40px;
  --arrow-btn-height: 40px;
  --arrow-space: 16px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  margin: 0;
  background: #fff;
}

.section-title {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 0;
  font-size: 2.5rem;
  font-weight: bold;
  color: #222;
}

.section-subtitle {
  text-align: center;
  color: #52a6db;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 32px;
}

.slider-container {
  position: relative;
  max-width: 1240px;
  margin: 0 auto 48px;
  box-sizing: border-box;
}

.cards-viewport {
  overflow: hidden;
  margin: 0 auto;
  flex: 0 0 auto;
}

/* 4 cards */
.cards-viewport {
  width: calc(4 * 291px + 3 * 24px);
}

@media (min-width: 993px) and (max-width: 1200px) {
  .cards-viewport {
    width: calc(3 * 250px + 2 * 24px);
  }
}

@media (min-width: 650px) and (max-width: 992px) {
  .cards-viewport {
    width: calc(2 * 210px + 1 * 16px);
  }
}

@media (max-width: 649px) {
  .cards-viewport {
    width: 203px;
  }
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.55, 0, 0.1, 1);
  will-change: transform;
}

.slider-track>.card:not(:last-child) {
  margin-right: 24px;
}

@media (min-width: 650px) and (max-width: 992px) {
  .slider-track>.card:not(:last-child) {
    margin-right: 16px;
  }
}

@media (max-width: 649px) {
  .slider-track>.card:not(:last-child) {
    margin-right: 0;
  }
}

.slider-arrows {
  position: absolute;
  right: 0;
  bottom: -70px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 2;
  gap: 10px;
  padding: 0 0 8px 0;
}

.arrow-btn {
  width: var(--arrow-btn-width);
  height: var(--arrow-btn-height);
  border: none;
  background: #f2f2f2;
  color: #333;
  border-radius: 4px;
  font-size: 1.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  user-select: none;
  margin: 0;
}

.arrow-btn:active {
  background: #e2e2e2;
}

.card {
  width: 291px;
  height: 310px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(32, 35, 48, 0.07);
  border: 1px solid #f2f2f2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  font-size: 1rem;
  padding: 0;
  margin: 0;
  transition: box-shadow 0.2s;
}

.card-img-outer {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 4px 4px 0 0;
  position: relative;
}

.card-img-inner {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  background: #f5f5f5;
  position: relative;
}

.card-img-inner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
  display: block;
}

.guest-favourite {
  position: absolute;
  top: 18px;
  left: 20px;
  background: #52a6db;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 10px;
  z-index: 1;
}

.card-content1 {
  padding: 14px 16px 0 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0;
}

.row-title-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.apt-title {
  font-size: 1.04rem;
  font-weight: 600;
  color: #222;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 12px;
}

.apt-price {
  color: #52a6db;
  font-size: 1.04rem;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
}

.apt-price span {
  color: #444;
  font-size: 1.04rem;
  font-weight: 400;
  margin-left: 2px;
}

.apt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #777;
  font-size: 13px;
  margin-bottom: 20px;
}

.apt-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-actions {
  margin-top: auto;
  margin-bottom: 17px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.book-now-btn {
  width: 70px;
  height: 21px;
  border-radius: 4px;
  border: 1px solid #183153;
  background: #fff;
  color: #183153;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  padding: 0;
}

.book-now-btn:hover {
  background: #183153;
  color: #fff;
}