.market-page {
  padding-bottom: 48px;
}

.market-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.market-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  flex: 1 1 280px;
  justify-content: flex-end;
}

.market-filters .announcement-search {
  flex: 1 1 220px;
  max-width: 320px;
  margin: 0;
}

.market-active-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}

.market-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fff;
}

.market-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.market-table th,
.market-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.market-table th {
  background: #faf7f6;
  color: #222;
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.market-table tbody tr:hover {
  background: #fff8f6;
}

.market-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.market-status.is-active {
  background: #e8f7ee;
  color: #166534;
}

.market-status.is-inactive {
  background: #f3f3f3;
  color: #666;
}

.market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.market-actions form {
  margin: 0;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.market-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-bottom: 18px;
}

.market-check-field {
  display: flex;
  align-items: flex-end;
}

.market-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
}

.hotel-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
}

.hotel-modal-dialog {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
}

.hotel-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.hotel-modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
}

.hotel-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #475569;
  padding: 0 4px;
}

.hotel-modal-body {
  padding: 18px;
}

.hotel-modal-body h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.hotel-modal-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
}

@media (max-width: 767.98px) {
  .market-form-grid {
    grid-template-columns: 1fr;
  }

  .market-filters {
    justify-content: stretch;
  }

  .market-filters .announcement-search {
    max-width: none;
  }
}
