.hotel-inventory-page {
  min-width: 0;
  overflow-x: hidden;
  padding-bottom: 88px;
  background: #eef3f9;
}

.hotel-inventory-content {
  display: grid;
  gap: 34px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.25rem, -12.0833rem + 16.6667vw, 2.5rem);
}

.hotel-inventory-content *,
.hotel-card,
.hotel-card label,
.room-grid,
.rate-card {
  min-width: 0;
}

.hotel-page-title h1 {
  margin: 0 0 6px;
  color: #191c1e;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.hotel-page-title p {
  margin: 0;
  color: #464555;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}

.hotel-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hotel-card {
  border: 1px solid #d9e1ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(17, 35, 62, 0.09);
}

.hotel-top-grid .hotel-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.hotel-card-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
  color: #0c57cf;
}

.hotel-card-title h2,
.section-heading h2 {
  margin: 0;
  color: #141b2b;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.hotel-card-title svg,
.section-heading svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.hotel-card label,
.hotel-status-control,
.blackout-row,
.meal-section,
.amenity-section {
  display: grid;
  gap: 8px;
}

.hotel-card label > span,
.hotel-status-control > span,
.blackout-row > span,
.meal-section > span,
.amenity-section > span {
  color: #434654;
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
}

.hotel-card input,
.hotel-card select,
.hotel-card textarea {
  width: 100%;
  border: 1px solid #dfe6ef;
  border-radius: 7px;
  color: #111827;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  outline: none;
}

.hotel-card input,
.hotel-card select {
  height: 42px;
  padding: 0 13px;
}

.hotel-card select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

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

.hotel-status-control > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  height: 42px;
  border-radius: 7px;
  background: #eef2ff;
}

.hotel-status-control label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hotel-status-control input,
.pill-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hotel-status-control label span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #556176;
  font-size: 12px;
  font-weight: 700;
}

.hotel-status-control input:checked + span {
  color: #fff;
  background: #0655cf;
  border-radius: 7px;
}

.media-card {
  align-content: start;
}

.hotel-upload-box {
  position: relative;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1.5px dashed #aabbe3;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  text-align: center;
  cursor: pointer;
}

.hotel-upload-box input,
.hotel-media-empty input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hotel-upload-box svg {
  width: 28px;
  height: 28px;
  color: #b5bfd2;
  stroke-width: 2.1;
}

.hotel-upload-box strong {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.hotel-upload-box span {
  color: #424b5b;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 500;
}

.hotel-upload-cover {
  grid-column: 1 / -1;
  min-height: 152px;
  margin-bottom: 8px;
}

.hotel-media-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hotel-media-thumb,
.hotel-media-empty {
  position: relative;
  display: grid;
  place-items: center;
  height: 104px;
  border: 1px solid #cbd5e5;
  border-radius: 7px;
  overflow: hidden;
  background: #edf0ff;
}

.hotel-media-thumb {
  background-position: center;
  background-size: cover;
}

.hotel-media-thumb.pool {
  background-image: url("../images/hero_section.png");
}

.hotel-media-thumb.room {
  background-image: url("../images/login-background-2.png");
}

.hotel-media-empty {
  border-style: dashed;
}

.hotel-media-empty svg {
  width: 18px;
  height: 18px;
  color: #b7bed1;
}

.location-card h3 {
  margin: 4px 0 -2px;
  color: #7b8393;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.refundable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 13px;
  border-radius: 7px;
  background: #fff;
}

.refundable-row strong,
.publish-option strong {
  display: block;
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.refundable-row small,
.publish-option small {
  display: block;
  margin-top: 3px;
  color: #8992a4;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 500;
}

.hotel-toggle {
  position: relative;
  width: 35px;
  height: 21px;
  display: block;
}

.hotel-toggle input {
  opacity: 0;
}

.hotel-toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8deea;
}

.hotel-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.hotel-toggle input:checked + span {
  background: #0655cf;
}

.hotel-toggle input:checked + span::after {
  transform: translateX(14px);
}

.input-suffix {
  position: relative;
}

.input-suffix em {
  position: absolute;
  right: 12px;
  bottom: 13px;
  color: #b4bdcc;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.policy-editor textarea {
  height: 111px;
  padding: 15px 13px;
  resize: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid #dfe6ef;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #eef2ff;
  color: #111827;
  font-size: 11px;
}

.blackout-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 11px;
  border: 1px solid #d8def0;
  border-radius: 7px;
  background: #f0f2ff;
}

.blackout-row button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  color: #3f4a5d;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.blackout-row button svg {
  width: 13px;
  height: 13px;
  color: #e55f70;
}

.blackout-row a {
  color: #0759d2;
  font-size: 12px;
  font-weight: 700;
}

.publish-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publish-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  min-height: 67px;
  padding: 17px 14px;
  border-radius: 7px;
  background: #eef2ff;
}

.publish-option input,
.amenity-grid input {
  width: 16px;
  height: 16px;
  accent-color: #0759d2;
}

.amenities-card {
  grid-column: 1;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #d6deea;
  border-radius: 999px;
  color: #1d2736;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.pill-row input:checked + span {
  color: #fff;
  border-color: #0759d2;
  background: #0759d2;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.amenity-grid label,
.amenity-grid button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 35px;
  padding: 0 10px;
  border: 1px solid #dfe6ef;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
}

.amenity-grid button {
  color: #0759d2;
}

.add-more-field input {
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 0 0 8px;
  height: 28px;
}

.hotel-form-stack {
  display: grid;
  gap: 18px;
  max-width: 1420px;
  width: 100%;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 6px;
}

.section-icon.blue {
  color: #0a59d5;
  background: #dfe7ff;
}

.section-icon.green {
  color: #087b55;
  background: #39dda2;
}

.room-card,
.rate-card {
  padding: 24px 24px 24px;
}

.room-grid,
.rate-top-grid,
.rate-bottom-grid {
  display: grid;
  gap: 16px 22px;
}

.room-grid {
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
}

.room-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.room-grid .wide {
  grid-column: span 2;
}

.room-divider {
  height: 1px;
  margin: 26px 0;
  background: #e7ebf2;
}

.room-grid label,
.rate-card label,
.validity-field {
  display: grid;
  gap: 8px;
}

.room-grid span,
.rate-card label span,
.validity-field > span {
  color: #465364;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
}

.room-grid input,
.room-grid select,
.rate-card input,
.rate-card select {
  height: 40px;
  width: 100%;
  border: 1px solid #dfe6ef;
  border-radius: 7px;
  padding: 0 13px;
  color: #111827;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  outline: none;
}

.room-grid select,
.rate-card select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 13px) 17px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.room-grid label:nth-child(4) select {
  color: #0759d2;
  font-weight: 800;
}

.unit-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
}

.unit-field input {
  border-right: 0;
  border-radius: 7px 0 0 7px;
}

.unit-field select {
  border-radius: 0 7px 7px 0;
  background-color: #eef2ff;
}

.room-upload,
.rate-upload {
  min-height: 150px;
  margin-top: 24px;
}

.outline-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 55px;
  border: 2px dashed #075eff;
  border-radius: 14px;
  color: #0759d2;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.outline-add-btn svg {
  width: 16px;
  height: 16px;
}

.rate-heading {
  margin-top: 39px;
}

.rate-top-grid {
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 22px;
}

.price-panel {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
  padding: 18px 18px 20px;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
}

.rate-bottom-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 26px;
}

.selling-price span {
  color: #0759d2 !important;
  font-weight: 800 !important;
}

.selling-price input {
  color: #fff;
  border-color: #0b5ee7;
  background: #0b5ee7;
  font-weight: 800;
}

.validity-field {
  grid-column: span 2;
}

.validity-field > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hotel-inventory-footer {
  position: fixed;
  right: 0;
  bottom: 0;
width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  padding: 12px 28px;
  border-top: 1px solid #e1e6ef;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 18px rgba(33, 51, 83, 0.05);
}

.hotel-inventory-footer p {
  margin: 0;
  color: #5c6573;
  font-size: 12px;
  font-weight: 500;
}

.hotel-inventory-footer > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.hotel-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 19px;
  border: 1px solid #dce3ec;
  border-radius: 999px;
  color: #111827;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.hotel-footer-btn svg {
  width: 14px;
  height: 14px;
}

.hotel-footer-btn.primary {
  min-width: 184px;
  color: #fff;
  border-color: #0759d2;
  background: #0759d2;
}

@media (max-width: 1320px) {
  .hotel-top-grid {
    gap: 26px;
  }

  .room-grid,
  .room-grid-six,
  .rate-bottom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .price-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .hotel-top-grid {
    grid-template-columns: 1fr;
  }

  .amenities-card {
    grid-column: auto;
  }

  .rate-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .hotel-inventory-footer {
    left: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 22px;
  }

  .hotel-inventory-footer > div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hotel-footer-btn {
    flex: 1 1 150px;
  }
}

@media (max-width: 760px) {
  .hotel-inventory-page {
    padding-bottom: 0;
  }

  .hotel-inventory-content {
    gap: 24px;
    padding: 20px 14px 0;
  }

  .hotel-page-title h1 {
    font-size: 22px;
    line-height: 1.12;
  }

  .hotel-page-title p {
    font-size: 12px;
  }

  .hotel-top-grid .hotel-card,
  .room-card,
  .rate-card {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    border-radius: 14px;
  }

  .span-2,
  .room-grid .wide,
  .validity-field {
    grid-column: auto;
  }

  .hotel-media-row,
  .room-grid,
  .room-grid-six,
  .rate-top-grid,
  .price-panel,
  .rate-bottom-grid,
  .validity-field > div {
    grid-template-columns: 1fr;
  }

  .hotel-media-thumb,
  .hotel-media-empty {
    height: 130px;
  }

  .amenity-grid {
    grid-template-columns: 1fr;
  }

  .blackout-row > div,
  .pill-row {
    align-items: stretch;
    flex-direction: column;
  }

  .blackout-row a {
    padding: 4px 0;
  }

  .outline-add-btn {
    min-height: 48px;
    border-radius: 12px;
  }

  .hotel-inventory-footer {
    position: static;
    margin-top: 30px;
    padding: 16px 14px;
  }

  .hotel-inventory-footer > div,
  .hotel-footer-btn,
  .hotel-footer-btn.primary {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hotel-status-control > div,
  .publish-card {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hotel-status-control label span {
    min-height: 38px;
  }

  .section-heading {
    align-items: flex-start;
  }
}
